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

Open
opened 2026-02-16 17:40:59 -05:00 by yindo · 1 comment
Owner

Originally created by @danilevy1212 on GitHub (Dec 18, 2025).

Originally assigned to: @kommander on GitHub.

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

Originally created by @danilevy1212 on GitHub (Dec 18, 2025). Originally assigned to: @kommander on GitHub. ### 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" } ``` 2. Start a session that can be interrupted 3. Try <leader>esc - fails to interrupt 4. Try CTRL-P interrupt session also fails to interrupt 5. Remove custom binding, restart session 6. Try default interrupt - works correctly 7. Try CTRL-P interrupt session fails to interrupt ### Screenshot and/or share link <img width="303" height="77" alt="Image" src="https://github.com/user-attachments/assets/731cf02d-5940-4bd3-b000-124f1f4a60a1" /> ### Operating System Linux 6.18.0 NixOS x86_64 ### Terminal Alacritty
yindo added the opentuibug labels 2026-02-16 17:40:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 18, 2025):

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

@github-actions[bot] commented on GitHub (Dec 18, 2025): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3646