Describe the bug
When we send the session.interrupt command, the opencode TUI displays "press Esc again to interrupt".
I think this regressed with opencode v1.0 because it used to work immediately.
Steps To Reproduce
- Send a message to
opencode so it begins responding
- Select
session.interrupt command from opencode.nvim
- Must repeat step 2 to actually interrupt.
Expected Behavior
Selecting session.interrupt command a single time interrupts opencode.
Normally I don't like to work around opencode bugs, but this one is simple.
See lua/opencode/api/command.lua
Describe the bug
When we send the
session.interruptcommand, theopencodeTUI displays "press Esc again to interrupt".I think this regressed with
opencodev1.0 because it used to work immediately.Steps To Reproduce
opencodeso it begins respondingsession.interruptcommand fromopencode.nvimExpected Behavior
Selecting
session.interruptcommand a single time interruptsopencode.Normally I don't like to work around
opencodebugs, but this one is simple.See
lua/opencode/api/command.lua