Skip to content

Conversation

@anntnzrb
Copy link

@anntnzrb anntnzrb commented Dec 19, 2025

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")

@anntnzrb anntnzrb marked this pull request as ready for review December 19, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant