Skip to content

Ctrl+Z closes/suspends OpenCode instead of undoing text input (Linux) #24817

Description

@bastndev

Description

Describe the bug
When pressing Ctrl+Z while typing in OpenCode on Linux, the application
closes/suspends instead of undoing the last typed character or action.
Ctrl+Z should behave as "undo" within the text input, not send SIGTSTP
to the process.

To Reproduce

  1. Open OpenCode in terminal
  2. Start typing any message
  3. Press Ctrl+Z to undo
  4. OpenCode suspends (fish shows: "Job X, 'opencode' has stopped")

Expected behavior
Ctrl+Z should undo the last typed text, similar to how it works in
other terminal applications (like vim, nano, etc.)

Screenshot
Image

Environment

Plugins

No response

OpenCode version

1.14.28

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Zorin os 18

Terminal

fish

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions