You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(simulation): interpret named special keys in ui.press #37511
The canonical simulation action ui.press forwards its key string directly to OpenTUI mockInput.pressKey. Sending { "key": "escape" } types the literal word escape into the focused input instead of dispatching Escape.
This broke the OpenCode UI catalog after closing the command palette: the next slash command was entered into the still-open palette as escape/models.
Reproduction
Launch a simulated TUI through OpenCode Drive.
Open the command palette with ui.press for Ctrl+P.
Send ui.press with key: "escape".
Capture the terminal frame.
The palette remains open and its search contains escape.
Sending the raw escape byte "\u001b" works, but callers should not need transport-level key encoding for the protocol’s named key operation.
Expected
Named special keys such as escape are translated to the corresponding OpenTUI input event, with coverage for the canonical frontend simulation protocol.
Addressed by #37523. The simulation input path now normalizes named special-key presses before dispatch, covering the named-key behavior reported here with regression tests. Closing as resolved on the v2 branch.
Activity
opencode-agent commentedon Jul 22, 2026
Addressed by #37523. The simulation input path now normalizes named special-key presses before dispatch, covering the named-key behavior reported here with regression tests. Closing as resolved on the v2 branch.