[PR #5787] Add configurable double-Esc interrupt window #11586

Open
opened 2026-02-16 18:16:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5787

State: open
Merged: No


Summary

  • add session_interrupt_timeout_ms to TUI config (default 5000, bounds 500–10000) and document it
  • use the configured timeout for the prompt double-Esc interrupt window instead of the hardcoded 5s
  • add config tests for default, in-range acceptance, and out-of-range rejection

Example config:

{
  "$schema": "https://opencode.ai/config.json",
  "tui": {
    "session_interrupt_timeout_ms": 3000
  }
}

Fixes #5785

Testing

  • bun test packages/opencode/test/config/config.test.ts (fails: existing test "migrates autoshare to share field" expects "auto" but got "manual")
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5787 **State:** open **Merged:** No --- ## Summary - add `session_interrupt_timeout_ms` to TUI config (default 5000, bounds 500–10000) and document it - use the configured timeout for the prompt double-Esc interrupt window instead of the hardcoded 5s - add config tests for default, in-range acceptance, and out-of-range rejection Example config: ```json { "$schema": "https://opencode.ai/config.json", "tui": { "session_interrupt_timeout_ms": 3000 } } ``` Fixes #5785 ## Testing - bun test packages/opencode/test/config/config.test.ts (fails: existing test "migrates autoshare to share field" expects "auto" but got "manual")
yindo added the pull-request label 2026-02-16 18:16:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11586