Ctrl+C during response causes terminal to print endless garbage and become unresponsive #7364

Open
opened 2026-02-16 18:06:57 -05:00 by yindo · 1 comment
Owner

Originally created by @IvanFan-Van on GitHub (Jan 23, 2026).

Originally assigned to: @kommander on GitHub.

Description

When using opencode in the terminal, if I accidentally press Ctrl+C while a response is still being streamed from the model, the opencode interface exits, but the terminal starts dumping continuous garbage output (usually mangled tokens / partial ANSI sequences / binary-like data).

Once this starts:

  • Further Ctrl+C, Ctrl+D, ESC, q, etc. have no effect
  • The terminal keeps spamming output indefinitely
  • The only way to stop it is to force-close the terminal tab/window or kill the process externally
Image

Plugins

No response

OpenCode version

1.1.34

Steps to reproduce

  1. Open opencode in your terminal
  2. Send a request that produces a reasonably long / slow response
  3. While the response is actively streaming (not yet finished), press Ctrl+C

Screenshot and/or share link

Image

Operating System

windows 11

Terminal

powershell

Originally created by @IvanFan-Van on GitHub (Jan 23, 2026). Originally assigned to: @kommander on GitHub. ### Description When using opencode in the terminal, if I accidentally press Ctrl+C while a response is still being streamed from the model, the opencode interface exits, but the terminal starts dumping continuous garbage output (usually mangled tokens / partial ANSI sequences / binary-like data). Once this starts: - Further **Ctrl+C**, **Ctrl+D**, **ESC**, **q**, etc. have no effect - The terminal keeps spamming output indefinitely - The only way to stop it is to force-close the terminal tab/window or kill the process externally <img width="2560" height="1504" alt="Image" src="https://github.com/user-attachments/assets/497a8971-2908-46f9-bf15-533bfb8003f4" /> ### Plugins _No response_ ### OpenCode version 1.1.34 ### Steps to reproduce 1. Open opencode in your terminal 2. Send a request that produces a reasonably long / slow response 3. While the response is actively streaming (not yet finished), press **Ctrl+C** ### Screenshot and/or share link <img width="2560" height="1504" alt="Image" src="https://github.com/user-attachments/assets/7e60df0a-ed17-4e52-97f5-13d060c62b86" /> ### Operating System windows 11 ### Terminal powershell
yindo added the windowsopentuibug labels 2026-02-16 18:06:57 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 23, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7364