Skip to content

Pressing Ctrl+C in input field outputs ANSI escape sequences/garbled text #7062

Closed

Description

@nibaijing

Description

Environment:

Application: opencode (Sisyphus)

Shell: Windows PowerShell

OS: Windows 11

Model: gemini-1.5-flash-8b

Description: When attempting to use the Ctrl+C keyboard shortcut within the opencode input field (specifically while using the Sisyphus interface), the terminal outputs a long string of garbled ANSI escape codes (e.g., [555;20;24M...) instead of copying text or sending an interrupt signal.

Steps to Reproduce:

Open opencode in a Windows PowerShell terminal.

Navigate to the input/chat box.

Press Ctrl+C.

Observe the garbled text outputting at the command prompt.

Expected Behavior: The shortcut should either copy the selected text or clear the current input line without printing raw terminal escape sequences.

Actual Behavior: A long string of numeric ANSI codes is printed to the terminal, making the interface difficult to use and cluttering the command line.

Image

Plugins

oh-my-opencode

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. Hona commented on Feb 12, 2026

    @Hona
    Member

    ctrl+c handling is now in as of 1.1.60

  4. Mohamed-Gomaa30 commented on Apr 2, 2026

    @Mohamed-Gomaa30

    I am trying to use the opencode on the anti-gravity code editor via lightning.ai, but there are still random numbers generated even after changing the version.

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