@khalilgharbaoui/opencode-claude-code-plugin 0.26.0 → 0.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khalilgharbaoui/opencode-claude-code-plugin",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "description": "Claude Code CLI provider plugin for opencode",
5
5
  "author": "Khalil Gharbaoui",
6
6
  "type": "module",
@@ -343,8 +343,9 @@ Names below become `mcp__opencode_proxy__<name>`; input config is case-insensiti
343
343
  A proxied call is held open until an event ends it, and the plugin listens to the
344
344
  `claude` process, the stream and the control protocol for those events rather than
345
345
  inferring failure from elapsed time: opencode's result resolves the call; an abort
346
- interrupts the CLI and rejects the turn's pending calls, even when it lands while
347
- opencode is running the tool; the next user message rejects what the previous turn left pending
346
+ interrupts the CLI and rejects the turn's pending calls, unless opencode still reports
347
+ the session busy (opencode 1.18 aborts the signal of every tool step while it runs the
348
+ tool, so busy means the call is being served, not refused); the next user message rejects what the previous turn left pending
348
349
  and tells the CLI; the process exiting, the chat being deleted, or opencode exiting
349
350
  rejects the rest. That is why `task` and `task_batch` carry no default deadline and a
350
351
  subagent runs to completion. Three timers remain and are distinct from that: the
@@ -352,7 +353,11 @@ optional per-tool deadlines above (a backstop the user chooses), the start and
352
353
  inactivity watchdogs (for a process that is alive but silent, which emits nothing to
353
354
  listen to; a CLI parked in a proxied call is exempt), and the connection keepalives
354
355
  (SSE comments or JSON whitespace every 15 s, so the CLI's HTTP client does not give up
355
- on a long call; they never extend a deadline). Do not present a raised deadline as the
356
+ on a long call; they never extend a deadline). A deadline that passes while opencode
357
+ still reports the session busy (a permission prompt the user has not answered, or the
358
+ tool still running) does not end the call: it logs `proxy call past its deadline, but
359
+ opencode is still serving it; waiting` at WARN once and is rechecked every minute. So an
360
+ unanswered permission prompt is not a reason to raise `proxyToolTimeoutMs`. Do not present a raised deadline as the
356
361
  fix for a long subagent; the default already waits for it. A deadline-free call is not
357
362
  silent while it waits: it logs `proxy call still waiting, no deadline` at WARN after
358
363
  five minutes and every five minutes after, with tool, call id and elapsed time. That