nickjvandyke/opencode.nvim

bug: `session.interrupt` command requires two sends

Geschlossen

#257 geöffnet am 09.05.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Lua (127 Forks)auto 404
buggood first issue

Repository-Metriken

Stars
 (3.504 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 22h) (9 gemergte PRs in 30 T)

Beschreibung

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

  1. Send a message to opencode so it begins responding
  2. Select session.interrupt command from opencode.nvim
  3. 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

Contributor Guide