opencode icon indicating copy to clipboard operation
opencode copied to clipboard

`session_interrupt` command doesn't work when binded in non-default

Open danilevy1212 opened this issue 1 month ago • 1 comments

Description

I'm my configuration, I have session interrupt binded to:

  "keybinds": {
    "session_interrupt": "<leader>esc"
  },

However, I cannot interrupt the session. If I remove the keybinding and use the default it does work though. The keybinding does not change the message in the bottom for interrupting session either.

Interrupt Session CTRL-P doesn't work with or without the binding either

OpenCode version

1.0.167

Steps to reproduce

  1. Add custom session interrupt keybinding to config:
   "keybinds": {
     "session_interrupt": "<leader>esc"
   }
  1. Start a session that can be interrupted
  2. Try esc - fails to interrupt
  3. Try CTRL-P interrupt session also fails to interrupt
  4. Remove custom binding, restart session
  5. Try default interrupt - works correctly
  6. Try CTRL-P interrupt session fails to interrupt

Screenshot and/or share link

Image

Operating System

Linux 6.18.0 NixOS x86_64

Terminal

Alacritty

danilevy1212 avatar Dec 18 '25 15:12 danilevy1212

For keybind-related issues, please also check our pinned keybinds documentation: #4997

github-actions[bot] avatar Dec 18 '25 15:12 github-actions[bot]