bug: exiting tui on windows has improper exit sequence handling #3306

Open
opened 2026-02-16 17:39:35 -05:00 by yindo · 4 comments
Owner

Originally created by @rekram1-node on GitHub (Dec 4, 2025).

Originally assigned to: @kommander on GitHub.

@rekram1-node formating works now.

But there is the problem, when I /exit opencode in the git bash on windows I see this (as I wrote above, this are a mouse events)

Image

This was not in v0.15.x. I need to close and open my git bash.

Originally posted by @somera in #3751

Originally created by @rekram1-node on GitHub (Dec 4, 2025). Originally assigned to: @kommander on GitHub. > @rekram1-node formating works now. > > But there is the problem, when I `/exit` opencode in the git bash on windows I see this (as I wrote above, this are a mouse events) > > <img width="825" height="227" alt="Image" src="https://github.com/user-attachments/assets/41a6fcc9-8ea9-4935-b1af-15bc2323d26b" /> > > This was not in `v0.15.x`. I need to close and open my git bash. _Originally posted by @somera in [#3751](https://github.com/sst/opencode/issues/3751#issuecomment-3611477597)_
yindo added the opentuibug labels 2026-02-16 17:39:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 4, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2999: Provide means to disable Ctrl-C (exact same crash on Windows with improper exit sequence)
  • #3294: Panic: close of closed channel in status component cleanup (core infrastructure issue causing exit failures)
  • #3213: Bug: opencode run and TUI exits hang on v0.15+ (broader exit sequence regression in v0.15+/v1.0)
  • #3763: [Windows] interactive call breaking tui (Windows TUI stability issues in v1.0)
  • #4430: Phantom input on startup again (Windows Terminal mouse events similar to your screenshot)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 4, 2025): This issue might be a duplicate of existing issues. Please check: - #2999: Provide means to disable Ctrl-C (exact same crash on Windows with improper exit sequence) - #3294: Panic: close of closed channel in status component cleanup (core infrastructure issue causing exit failures) - #3213: Bug: `opencode run` and TUI exits hang on v0.15+ (broader exit sequence regression in v0.15+/v1.0) - #3763: [Windows] interactive call breaking tui (Windows TUI stability issues in v1.0) - #4430: Phantom input on startup again (Windows Terminal mouse events similar to your screenshot) Feel free to ignore if none of these address your specific case.
Author
Owner

@somera commented on GitHub (Dec 17, 2025):

When this will be fixed?

@somera commented on GitHub (Dec 17, 2025): When this will be fixed?
Author
Owner

@blank038 commented on GitHub (Dec 19, 2025):

The issue has been reproducible since v1.0.127, I first encountered it when upgrading from v1.0.126 to v1.0.127.
Initially, I thought it was a software conflict on my end, but I later confirmed the problem by switching back to v1.0.126, which works normally.
As of v1.0.169, this issue still persists.

Supplement: The /exit command operates successfully, while employing Ctrl + C precipitates the aforementioned issue. This phenomenon was observed within a test environment consisting of PowerShell integrated with opencode v1.0.185.

@blank038 commented on GitHub (Dec 19, 2025): The issue has been reproducible since `v1.0.127`, I first encountered it when upgrading from `v1.0.126` to `v1.0.127`. Initially, I thought it was a software conflict on my end, but I later confirmed the problem by switching back to `v1.0.126`, which works normally. As of `v1.0.169`, this issue still persists. Supplement: The /exit command operates successfully, while employing Ctrl + C precipitates the aforementioned issue. This phenomenon was observed within a test environment consisting of PowerShell integrated with opencode v1.0.185.
Author
Owner

@SamuelMiller commented on GitHub (Jan 16, 2026):

I get the same issue on Windows 11. Opencode crashes and then the terminal starts to spit out characters as shown on the above image.

@SamuelMiller commented on GitHub (Jan 16, 2026): I get the same issue on Windows 11. Opencode crashes and then the terminal starts to spit out characters as shown on the above image.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3306