Skip to content

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

Closed

Description

@Suldom

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 28, 2026
  2. github-actions commented on Jan 28, 2026

    @github-actions
    Contributor

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

    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.

  3. rekram1-node commented on Jan 28, 2026

    @rekram1-node
    Collaborator

    Did you read the network docs? Did u set NO_PROXY

  4. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions