bug: exiting tui on windows has improper exit sequence handling
@rekram1-node formating works now.
But there is the problem, when I
/exitopencode in the git bash on windows I see this (as I wrote above, this are a mouse events)![]()
This was not in
v0.15.x. I need to close and open my git bash.
Originally posted by @somera in #3751
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 runand 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.
When this will be fixed?
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.