Skip to content

TUI prompts: Enter does not submit selected option in iTerm2 tmux -CC mode #28415

@dev-wantap

Description

@dev-wantap

Description

Summary

In iTerm2 tmux control mode (tmux -CC), OpenCode TUI prompts do not submit the selected option when pressing Enter.
The same prompt works normally when running OpenCode outside tmux.

Environment

  • OpenCode: 1.15.5
  • macOS: 26.1 (25B78)
  • iTerm2: 3.5.11
  • tmux: 3.6a
  • Mode: iTerm2 tmux integration / tmux -CC
  • tmux client: control=1

Expected

Enter submits the selected option.

Actual

Enter does not submit the selected option.
Other keys still respond, so this does not look like a complete keyboard-input freeze. Running OpenCode outside tmux works normally.

Related issues

This is similar to #28112, but different: in that issue Arrow + Enter submits a selection, while here Enter does not submit any option.
This is different from #24358, where all keyboard input is ignored. In this case, other keys still respond.

Plugins

"oh-my-openagent@4.2.2", "opencode-mystatus", "opencode-skill-creator", "@slkiser/opencode-quota"

OpenCode version

1.15.5

Steps to reproduce

  1. Start iTerm2 tmux integration with tmux -CC.
  2. Run opencode.
  3. Trigger an interactive prompt, such as a question prompt or permission prompt.
  4. Select any option.
  5. Press Enter.

Screenshot and/or share link

No response

Operating System

macOS: 26.1 (25B78)

Terminal

iTerm2: 3.5.11

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