mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #564] Bun.spawn() into an editor is extremely slow and drops inputs #153
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tspader on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/564
Shelling out to an editor makes the editor extremely slow. I've experienced this in opencode in the past, but it got fixed -- I'm not 100% sure, but I think with this commit, and between version 0.1.47 and 0.1.49 of opentui / 1.0.115 and 1.0.116 of opencode.
I'm writing a TUI which also shells out to an editor, and I noticed the same behavior: extremely slow/laggy keys, inputs getting eaten. Interestingly, opencode does not currently have this behavior on my setup. I made sure that I was pinned to the exact opentui versions they use (core + solid), and i made sure that I was setting everything up exactly like they do in the prompt widget.
opencode stuff:
https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/cli/cmd/tui/util/editor.ts
minimal repro:
run this against 0.1.74 of opentui; my program uses solid but the repro just uses core, still is broken for me
here's my environment; this is consistent across every terminal emulator i've tried (ghostty, alacritty, wezterm + bash, zsh + vim, nvim). my bash/nvim have configurations, but zsh/plain vim are completely stock. all of my terminal emulators are completely stock.
@kommander commented on GitHub (Jan 24, 2026):
Is
Bun.spawnfast enough/error free standalone without opentui? Mhh, it might be the stdout capture, but afaikrenderer.suspendpauses stdout capture. Needs checking.