Skip to content

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

@nibaijing

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

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