Repository navigation
Commit 7303dec
fix(acp): the opencode seat denies the
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]>task tool; a tool call the seat itself refused reaches the transcript (F-W1-002, BC-75 proposed) [fixall L4]1 parent b55e1f4 commit 7303dec
3 files changed
Lines changed: 145 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1458 | 1458 | | |
1459 | 1459 | | |
1460 | 1460 | | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
1461 | 1476 | | |
1462 | 1477 | | |
1463 | 1478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
414 | 422 | | |
415 | 423 | | |
416 | | - | |
| 424 | + | |
417 | 425 | | |
418 | 426 | | |
419 | 427 | | |
| |||
636 | 644 | | |
637 | 645 | | |
638 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
639 | 656 | | |
640 | 657 | | |
641 | 658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4248 | 4248 | | |
4249 | 4249 | | |
4250 | 4250 | | |
4251 | | - | |
4252 | | - | |
4253 | | - | |
4254 | | - | |
4255 | | - | |
4256 | | - | |
4257 | | - | |
4258 | | - | |
4259 | | - | |
4260 | | - | |
4261 | | - | |
4262 | | - | |
4263 | | - | |
| 4251 | + | |
4264 | 4252 | | |
4265 | 4253 | | |
4266 | 4254 | | |
| |||
4308 | 4296 | | |
4309 | 4297 | | |
4310 | 4298 | | |
4311 | | - | |
| 4299 | + | |
4312 | 4300 | | |
4313 | 4301 | | |
4314 | 4302 | | |
| |||
4317 | 4305 | | |
4318 | 4306 | | |
4319 | 4307 | | |
| 4308 | + | |
| 4309 | + | |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
| 4313 | + | |
| 4314 | + | |
| 4315 | + | |
| 4316 | + | |
| 4317 | + | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
4320 | 4322 | | |
4321 | 4323 | | |
4322 | 4324 | | |
4323 | 4325 | | |
4324 | 4326 | | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
4325 | 4357 | | |
4326 | 4358 | | |
4327 | 4359 | | |
| |||
15455 | 15487 | | |
15456 | 15488 | | |
15457 | 15489 | | |
| 15490 | + | |
| 15491 | + | |
| 15492 | + | |
| 15493 | + | |
| 15494 | + | |
| 15495 | + | |
| 15496 | + | |
| 15497 | + | |
| 15498 | + | |
| 15499 | + | |
| 15500 | + | |
| 15501 | + | |
| 15502 | + | |
| 15503 | + | |
| 15504 | + | |
| 15505 | + | |
| 15506 | + | |
| 15507 | + | |
| 15508 | + | |
| 15509 | + | |
| 15510 | + | |
| 15511 | + | |
| 15512 | + | |
| 15513 | + | |
| 15514 | + | |
15458 | 15515 | | |
15459 | 15516 | | |
15460 | 15517 | | |
| |||
16080 | 16137 | | |
16081 | 16138 | | |
16082 | 16139 | | |
| 16140 | + | |
| 16141 | + | |
| 16142 | + | |
| 16143 | + | |
| 16144 | + | |
| 16145 | + | |
| 16146 | + | |
| 16147 | + | |
| 16148 | + | |
| 16149 | + | |
| 16150 | + | |
| 16151 | + | |
| 16152 | + | |
| 16153 | + | |
| 16154 | + | |
| 16155 | + | |
| 16156 | + | |
| 16157 | + | |
| 16158 | + | |
| 16159 | + | |
| 16160 | + | |
| 16161 | + | |
| 16162 | + | |
| 16163 | + | |
| 16164 | + | |
| 16165 | + | |
| 16166 | + | |
| 16167 | + | |
| 16168 | + | |
| 16169 | + | |
| 16170 | + | |
| 16171 | + | |
| 16172 | + | |
| 16173 | + | |
| 16174 | + | |
| 16175 | + | |
| 16176 | + | |
| 16177 | + | |
| 16178 | + | |
| 16179 | + | |
| 16180 | + | |
16083 | 16181 | | |
16084 | 16182 | | |
16085 | 16183 | | |
| |||
0 commit comments