mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #405] OpenTUI zombie process #871
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#871
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 @imaai on GitHub (Dec 11, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/405
Originally assigned to: @msmps on GitHub.
OpenTUI application doesn't close properly leaving zombie processes in the background. Reproduced on my machine with
bun create tuiand thenbun dev. Also this happens regardless of--watchflag.https://github.com/user-attachments/assets/20aa1598-b638-427c-923b-a2bfc9ad368a
@kommander commented on GitHub (Dec 11, 2025):
The lifecycle behavior recently changed, the
bunx create tuitemplates might be out of date. The app must callrenderer.destroyfor it to shutdown properly.@imaai commented on GitHub (Dec 11, 2025):
@kommander Would you be able to provide a working example because I have already tried that and it doesn't seem to resolve an issue. I checked previous versions down to 0.1.50 on my machine and I always have this issue.
Should this work with such configuration out of the box?
@imaai commented on GitHub (Dec 11, 2025):
Even when triggering destroy manually it leaves dead process.
https://github.com/user-attachments/assets/b9c64f11-51eb-4725-acb7-e73f8d4d6e2d
@imaai commented on GitHub (Dec 11, 2025):
@kommander Okay this one resolved that. Is it the desired way?
@kommander commented on GitHub (Dec 11, 2025):
The process should shut down on its own if there is nothing keeping it alive. Is it react or solid you are using? Might be something still has an event listener somewhere. What OS are you on?
@imaai commented on GitHub (Dec 11, 2025):
I'm running react on macOS. and this is litreally everything in this test package
@kommander commented on GitHub (Dec 11, 2025):
@msmps do you have an idea if something needs to change for react maybe? I can't reproduce the issue and opencode shuts down fine as well.
@msmps commented on GitHub (Dec 12, 2025):
@kommander had a very quick look into this (on vacation) but it doesn't look specific to react... it's also happening for solid more so when using
bun run --watch🤔bun create tui --template solid reprobun run devorbun run --watch src/index.tsx@kommander commented on GitHub (Dec 13, 2025):
--watchnever really worked afaik. I'll check the shutdown behavior.@remorses commented on GitHub (Dec 14, 2025):
Fixed in https://github.com/sst/opentui/pull/383