opencode
opencode copied to clipboard
`session_interrupt` command doesn't work when binded in non-default
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
- Add custom session interrupt keybinding to config:
"keybinds": {
"session_interrupt": "<leader>esc"
}
- Start a session that can be interrupted
- Try
esc - fails to interrupt - Try CTRL-P interrupt session also fails to interrupt
- Remove custom binding, restart session
- Try default interrupt - works correctly
- Try CTRL-P interrupt session fails to interrupt
Screenshot and/or share link
Operating System
Linux 6.18.0 NixOS x86_64
Terminal
Alacritty
For keybind-related issues, please also check our pinned keybinds documentation: #4997