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

Closed
opened 2026-02-16 17:49:59 -05:00 by yindo · 0 comments
Owner

Originally created by @Gaaaamu on GitHub (Jan 13, 2026).

Originally assigned to: @kommander on GitHub.

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.
Originally created by @Gaaaamu on GitHub (Jan 13, 2026). Originally assigned to: @kommander on GitHub. 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](https://github.com/user-attachments/assets/f5faab41-2471-4ac6-b454-b72a942e3ce7) 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.
yindo added the windowsopentui labels 2026-02-16 17:49:59 -05:00
yindo closed this issue 2026-02-16 17:49:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5208