You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Ctrl+C causes serialization issues in CLI TUI version #9183
When pressing Ctrl+C in the CLI TUI version (not desktop), it causes serialization issues resulting in garbled characters or terminal state corruption.
Version
OpenCode CLI: v1.1.25
Platform: Windows
Expected Behavior
Ctrl+C should interrupt the current input or copy selected text without corrupting the terminal state.
Actual Behavior
Pressing Ctrl+C produces garbled characters or ECH sequences (\x1b[X) in the terminal, causing display issues.
Steps to Reproduce
Start opencode CLI
Type some text in the input
Press Ctrl+C to cancel
Observe garbled characters or corrupted display
Additional Context
This is the CLI/TUI version using @opentui/solid, not the desktop version using ghostty-web
A related fix for the desktop version exists in commit 9111005 but it only addresses ghostty-web serialization, not the CLI TUI
The CLI TUI uses @opentui/solid for rendering
Suggested Fix
The CLI version likely needs similar serialization fixes in the TUI component to properly handle control characters (like Ctrl+C / 0x03) during terminal state serialization.
+1, I’m seeing the same behavior on Windows with OpenCode CLI v1.1.25 (CLI/TUI using @opentui/solid, not the desktop/ghostty-web).
Ctrl+C intermittently results in garbled output / escape sequences like \x1b[X and sometimes corrupts the terminal state.
It doesn’t happen every time, but it reproduces with noticeable frequency during normal usage.
Activity
ValadaresX commentedon Jan 19, 2026
+1, I’m seeing the same behavior on Windows with OpenCode CLI v1.1.25 (CLI/TUI using @opentui/solid, not the desktop/ghostty-web).
Ctrl+C intermittently results in garbled output / escape sequences like \x1b[X and sometimes corrupts the terminal state.
It doesn’t happen every time, but it reproduces with noticeable frequency during normal usage.
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.