[FEATURE]: Configurable double-Esc interrupt window with bounds #3660

Open
opened 2026-02-16 17:41:02 -05:00 by yindo · 1 comment
Owner

Originally created by @anntnzrb on GitHub (Dec 19, 2025).

Originally assigned to: @kommander on GitHub.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently the double-Esc interrupt window in the TUI prompt is hardcoded to 5000ms (packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx). Users can't tune it: too short causes accidental aborts, too long makes cancel feel sluggish, and there are no guardrails.

Proposal:

  • Add a config field session_interrupt_timeout_ms with default 5000ms.
  • Validate bounds: min 500ms, max 10000ms; reject out-of-range values.
  • Wire it into the TUI interrupt timer so the window follows the config.
  • Document in the config reference.
  • Note: desktop and VS Code don't currently implement the double-Esc window; TUI is first, and those clients can adopt the same setting in follow-ups.

Acceptance:

  • Default behavior remains 5000ms.
  • Setting a value within bounds changes the double-Esc window accordingly.
  • Out-of-range values are rejected with a clear error.
Originally created by @anntnzrb on GitHub (Dec 19, 2025). Originally assigned to: @kommander on GitHub. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Currently the double-Esc interrupt window in the TUI prompt is hardcoded to 5000ms (`packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx`). Users can't tune it: too short causes accidental aborts, too long makes cancel feel sluggish, and there are no guardrails. Proposal: - Add a config field `session_interrupt_timeout_ms` with default 5000ms. - Validate bounds: min 500ms, max 10000ms; reject out-of-range values. - Wire it into the TUI interrupt timer so the window follows the config. - Document in the config reference. - Note: desktop and VS Code don't currently implement the double-Esc window; TUI is first, and those clients can adopt the same setting in follow-ups. Acceptance: - Default behavior remains 5000ms. - Setting a value within bounds changes the double-Esc window accordingly. - Out-of-range values are rejected with a clear error.
yindo added the opentui label 2026-02-16 17:41:02 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Dec 19, 2025): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3660