[Windows] Raw ANSI escape codes flooding console & "Unable to connect" errors during tool execution (v1.1.36) #7804

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

Originally created by @Suldom on GitHub (Jan 28, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I am encountering two critical issues when running OpenCode on Windows using an internal/custom LLM endpoint.
Console Flooding: The terminal output is flooded with raw ANSI escape codes (e.g., [38;2;..., [0m), making the interface unreadable. This appears to be raw token streaming mixed with unparsed color codes.
Tool Execution Failure: When the model attempts to call tools (e.g., glob), it fails with connection errors, possibly indicating that the agent runtime/sidecar process is unreachable or crashed.

Image Image Image

Additional Context
I am running this in a corporate intranet environment.
No proxy environment variables (HTTP_PROXY, etc.) are actively blocking localhost, but the error suggests a local networking/IPC failure between the UI and the tool execution service.
Hypothesis: The excessive stdout flooding might be blocking the IPC pipe, or the backend process responsible for tool execution is crashing silently (or failing to start) due to the Windows environment configuration.

Plugins

No response

OpenCode version

v1.1.36

Steps to reproduce

1.Launch: Run opencode in PowerShell.
2.Initial State: The TUI loads correctly. The layout, font colors, and interactive elements are displayed normally without any issues.
3.Interaction: Send a prompt that triggers a complex response or tool use (e.g., analyzing codebase).
4.The Crash: After running for a short while (during the streaming response), the UI layout suddenly breaks.
The screen starts printing raw content mixed with ANSI codes (e.g., [38;2;...) continuously.
The output scrolls infinitely and uncontrollable.
5.Termination: The session becomes unresponsive to normal commands, requiring a Ctrl+C to forcibly kill the process.

Screenshot and/or share link

No response

Operating System

windows10

Terminal

Windows powershell

Originally created by @Suldom on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I am encountering two critical issues when running OpenCode on Windows using an internal/custom LLM endpoint. Console Flooding: The terminal output is flooded with raw ANSI escape codes (e.g., [38;2;..., [0m), making the interface unreadable. This appears to be raw token streaming mixed with unparsed color codes. Tool Execution Failure: When the model attempts to call tools (e.g., glob), it fails with connection errors, possibly indicating that the agent runtime/sidecar process is unreachable or crashed. <img width="971" height="496" alt="Image" src="https://github.com/user-attachments/assets/63210d44-8974-4274-82ff-627abe372efd" /> <img width="963" height="491" alt="Image" src="https://github.com/user-attachments/assets/685dcdb5-4749-495c-9fa1-9d4860f3d4ca" /> <img width="693" height="250" alt="Image" src="https://github.com/user-attachments/assets/b4509817-7ab1-49be-9269-1b41785514e1" /> **Additional Context** I am running this in a corporate intranet environment. No proxy environment variables (HTTP_PROXY, etc.) are actively blocking localhost, but the error suggests a local networking/IPC failure between the UI and the tool execution service. Hypothesis: The excessive stdout flooding might be blocking the IPC pipe, or the backend process responsible for tool execution is crashing silently (or failing to start) due to the Windows environment configuration. ### Plugins _No response_ ### OpenCode version v1.1.36 ### Steps to reproduce 1.Launch: Run opencode in PowerShell. 2.Initial State: The TUI loads correctly. The layout, font colors, and interactive elements are displayed normally without any issues. 3.Interaction: Send a prompt that triggers a complex response or tool use (e.g., analyzing codebase). 4.The Crash: After running for a short while (during the streaming response), the UI layout suddenly breaks. The screen starts printing raw content mixed with ANSI codes (e.g., [38;2;...) continuously. The output scrolls infinitely and uncontrollable. 5.Termination: The session becomes unresponsive to normal commands, requiring a Ctrl+C to forcibly kill the process. ### Screenshot and/or share link _No response_ ### Operating System windows10 ### Terminal Windows powershell
yindo added the windowsopentuibug labels 2026-02-16 18:08:17 -05:00
Author
Owner

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

This issue might be a duplicate of existing issues. Please check:

  • #10783: OpenCode Crashes then outputs garbled tokens - Similar ANSI escape code flooding issue on Windows PowerShell 7 after context threshold
  • #10638: Input field disappears and error data is shown in the background - Windows display corruption during model response streaming
  • #10629: On Windows 11, running opencode in the IntelliJ IDEA terminal fails to display correctly - Windows terminal display issues

All three issues share similar Windows-specific TUI rendering problems during streaming/processing. Feel free to ignore if these don't address your specific tool execution failure symptoms.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #10783: OpenCode Crashes then outputs garbled tokens - Similar ANSI escape code flooding issue on Windows PowerShell 7 after context threshold - #10638: Input field disappears and error data is shown in the background - Windows display corruption during model response streaming - #10629: On Windows 11, running opencode in the IntelliJ IDEA terminal fails to display correctly - Windows terminal display issues All three issues share similar Windows-specific TUI rendering problems during streaming/processing. Feel free to ignore if these don't address your specific tool execution failure symptoms.
Author
Owner

@rekram1-node commented on GitHub (Jan 28, 2026):

Did you read the network docs? Did u set NO_PROXY

@rekram1-node commented on GitHub (Jan 28, 2026): Did you read the network docs? Did u set NO_PROXY
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7804