opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Bug: Ctrl+C causes terminal UI rendering overlap on Windows Terminal (v1.1.16)

Open Gaaaamu opened this issue 2 days ago • 2 comments

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

Image

Environment

  • OpenCode Version: 1.1.16
  • Operating System: Windows 11 25H2
  • Terminal: Windows Terminal
  • Windows Terminal Version: 7.5.4 Steps to Reproduce
  1. Open OpenCode in Windows Terminal
  2. Type some input in the prompt
  3. Press Ctrl+C to cancel the input
  4. 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.

Gaaaamu avatar Jan 13 '26 08:01 Gaaaamu