anomalyco / anomalyco/opencode

`prompt_stash` keybind is displayed but not dispatched

Open
#41,732 2 comments 0 reactions 1 assignee View on GitHub

@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
  1. Create ~/.config/opencode/tui.json:
    {
      "$schema": "https://opencode.ai/tui.json",
      "keybinds": {
        "prompt_stash": "ctrl+s"
      }
    }
    
  2. Restart OpenCode.
  3. Type text into the prompt.
  4. Press Ctrl-S.
Screenshot and/or share link

https://opncd.ai/share/5bsf06D0

Operating System

Windows 11

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.