anomalyco / anomalyco/opencode
`prompt_stash` keybind is displayed but not dispatched
Open
@kommander is already working on this.
Since Aug 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
prompt_stash can be configured to Ctrl-S in ~/.config/opencode/tui.json. OpenCode correctly loads the binding and displays in commands window (Ctrl-P):
Stash prompt ctrl - s
However, pressing Ctrl-S while a prompt is written does nothing.
Though the same action DOES work as Ctrl-P → Stash prompt, so the command itself functions and the configured shortcut is recognized.
Ctrl-S works in Claude Code in the same terminal, so the terminal is capable of sending the key event.
Plugins
none, clean new install
OpenCode version
1.18.16
Steps to reproduce
- Create
~/.config/opencode/tui.json:{ "$schema": "https://opencode.ai/tui.json", "keybinds": { "prompt_stash": "ctrl+s" } } - Restart OpenCode.
- Type text into the prompt.
- Press Ctrl-S.
Screenshot and/or share link
https://opncd.ai/share/5bsf06D0
Operating System
Windows 11
Terminal
Windows Terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.