You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f782a6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(acp): the opencode seat denies the task tool; a tool call the seat itself refused reaches the transcript (F-W1-002, BC-75 proposed) [fixall L4]
opencode 1.17.18's ACP layer forwards a `permission.asked` only for sessions
it opened itself (`acp/permission.ts` process() → tryGet(sessionID) → return
when absent; the session store holds only session/new|load|resume|fork). A
`task` (explore) subagent's asks — six external_directory reads in the wave-1
P6 chat — never reached wicked-core and were never rejected either, so the
seat sat on a 600 s dead turn until the budget killed it. Upstream:
anomalyco/opencode#48232 (fix PRs #48326 / #37902 open).
One token in the one mechanism that already governs the seat:
OPENCODE_CONFIG_CONTENT `permission` gains `"task":"deny"` (wicked-council
registry) — the subagent is never spawned under ACP; the root session's own
asks are answered exactly as before. So the refusal is visible, handle_update
records a tool_call / tool_call_update that ends `status: failed` as
`[tool call failed] <title>: <the seat's text>` in the transcript (bounded like
a chunk — `push_bounded` factored out of the chunk arm; `locations` still
collected).
Tests: the registry pin (task = deny, read/edit/bash still ask, parsed as
JSON); a scripted ACP agent (`task_denied`) whose refused call must reach the
transcript while the turn still completes.
Register: BC-75 — proposed, user decision owed (a seat-visible tool denial).
Hand-authored under the disclosed exception.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
0 commit comments