[PR #10433] fix(opentui): handle SIGINT to prevent garbled output on Windows #13438

Open
opened 2026-02-16 18:18:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10433

State: open
Merged: No


Fixes #10414

Summary

  • Adds SIGINT handler in App component to properly cleanup renderer on Ctrl+C
  • Prevents 60 FPS render loop from continuing to output ANSI sequences after exit

Verification

  1. Ran bun dev on Windows
  2. Pressed Ctrl+C
  3. Terminal exited cleanly without garbled escape sequence output
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10433 **State:** open **Merged:** No --- Fixes #10414 ## Summary - Adds SIGINT handler in App component to properly cleanup renderer on Ctrl+C - Prevents 60 FPS render loop from continuing to output ANSI sequences after exit ## Verification 1. Ran `bun dev` on Windows 2. Pressed Ctrl+C 3. Terminal exited cleanly without garbled escape sequence output
yindo added the pull-request label 2026-02-16 18:18:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13438