opencode icon indicating copy to clipboard operation
opencode copied to clipboard

bug: exiting tui on windows has improper exit sequence handling

Open rekram1-node opened this issue 1 month ago • 3 comments

@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

rekram1-node avatar Dec 04 '25 18:12 rekram1-node

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] avatar Dec 04 '25 18:12 github-actions[bot]

When this will be fixed?

somera avatar Dec 17 '25 06:12 somera

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 avatar Dec 19 '25 09:12 blank038