Repository navigation
fix(terminal): preserve OpenCode Ctrl+Enter on Windows - #33149
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
8fa7aec to
d55b216
Compare
Keeps tui-agent-config.ts under the 300-line limit with the OpenCode entry. Co-authored-by: Pr1p <[email protected]>
d55b216 to
149fd43
Compare
ELI5
On Windows, Orca sometimes sent
Ctrl+Enterto OpenCode as an ordinary Enter. That made OpenCode submit the prompt instead of treating the chord separately. Orca now sends the distinct Ctrl+Enter input sequence only to panes it can identify as OpenCode.What Changed
Before: In a local Windows ConPTY OpenCode pane,
Ctrl+Enterfell back to a carriage return (\r) unless the terminal had negotiated the Kitty keyboard protocol. Orca deliberately withholds that protocol from ordinary local ConPTY panes because some terminal programs cannot read it safely.After: A trusted OpenCode pane is included in Orca's existing, pane-scoped CSI-u allowlist.
Ctrl+Enteris sent as\x1b[13;5u; unknown panes and other agents retain the existing safe fallback.Why
This uses the existing Droid/Grok exception rather than re-enabling the Kitty protocol for all local Windows terminals. The latter would reintroduce compatibility risk for programs that do not understand CSI-u. The scope remains one verified consumer and one shortcut.
Linked Issue
Fixes #25372
Visual Proof
N/A — this is terminal input-byte behavior with focused automated coverage; no rendered UI changes.
Testing
The regression test verifies that OpenCode requires the same trusted pane evidence as existing CSI-u consumers. macOS, Linux, SSH, WSL, unknown local panes, and all non-OpenCode agent entries retain their established paths.
AI Disclosure
Implemented with GPT-5.
Review
The change adds a single declarative capability to an existing agent table and extends the table's authorization test. It does not change global keyboard-protocol advertisement, process detection, networking, files, or credentials.
Agent skill upstream boundary
Notes
opencode2,mimo-code, and Shift+Enter are intentionally unchanged: the issue only provides evidence for theopencodebinary's Ctrl+Enter behavior.Checklist
N/Awith reason