nickjvandyke/opencode.nvim

bug: `session.interrupt` command requires two sends

已關閉

#257 建立於 2026年5月9日

 (0 則留言) (0 個反應) (0 位負責人)Lua (127 個分叉)auto 404
buggood first issue

倉庫指標

星標
 (3,504 顆星)
PR 合併指標
 (平均合併 2天 22小時) (30 天內合併 9 個 PR)

描述

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

貢獻者指南