Skip to content

Opencode Windows Character Spamming #8715

Closed as not planned
Closed as not planned

Description

@whglaser

Description

Recently switched to using Opencode on Windows. Previously was running under WSL. Same terminal, Wezterm.

When running Opencode in Windows, after exiting whether via /exit or Ctrl+C a stream of random characters is continually printed to my terminal.

Plugins

No response

OpenCode version

1.1.19

Steps to reproduce

Open wezterm
start opencode
Exit either with /exit or Ctrl+c
Watch your terminal get spammed with character sequences

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

wezterm

Activity

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

    @github-actions
    Contributor

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

    All three issues describe the same root cause: improper handling of Ctrl+C/exit on Windows leading to raw terminal escape sequences being printed after exiting OpenCode.

    Feel free to ignore if your specific case differs from these existing issues.

  3. kommander commented on Jan 19, 2026

    @kommander
    Collaborator

    Are you sure that happens with /exit? Ctrl+c is a known issue on windows.

  4. briansemrau commented on Feb 22, 2026

    @briansemrau

    I also experience this issue. Here is an example of what I am seeing after /exit in version 1.2.10:

    Image
  5. alMubarmij commented on Feb 26, 2026

    @alMubarmij

    Same problem on Windows and Linux!
    How to fix it?

  6. eduardozf commented on Mar 5, 2026

    @eduardozf

    Same problem here. I'm on Windows 11 and tried with "Windows Terminal", "Git Bash", "Msys" all have the same issue after exiting the app

  7. omiinaya commented on Mar 23, 2026

    @omiinaya

    same here. its mouse data being mishandled and wrongly thrown as text into the terminal

  8. LiuYYSS commented on Apr 12, 2026

    @LiuYYSS

    I can confirm that for linux opencode accessed via SSH from windows terminal app, this is still a problem when the session disconnect abnormally (e.g. connection issue, laptop/desktop auto-sleep, etc). Opencode version 1.4.3. Once bugged, the random charaters appear when moving the cursor. The solution to exit the bugged state is to re-open opencode and exit using /exit.

  9. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  10. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions