opencode
opencode copied to clipboard
Bug: Ctrl+C causes terminal UI rendering overlap on Windows Terminal (v1.1.16)
Bug Description Ctrl+C causes terminal UI rendering overlap on Windows Terminal. The terminal command prompt and OpenCode UI are interleaved, making it impossible to use the application properly. Screenshots
Environment
- OpenCode Version: 1.1.16
- Operating System: Windows 11 25H2
- Terminal: Windows Terminal
- Windows Terminal Version: 7.5.4 Steps to Reproduce
- Open OpenCode in Windows Terminal
- Type some input in the prompt
- Press Ctrl+C to cancel the input
- Observe the UI rendering overlap Expected Behavior When pressing Ctrl+C with input in the prompt, the application should either:
- Cancel the input and return to a clean prompt state, OR
- Exit the application gracefully Actual Behavior
- The terminal command prompt and OpenCode UI overlap
- The application becomes difficult to use
- The state is not properly reset Additional Context This issue is similar to #5071 which was closed with PR #5758, but the fix appears to be incomplete for this rendering overlap issue. The problem occurs every time Ctrl+C is pressed with input in the prompt.