On V2, a Claude thread in Auto-accept edits never asks about anything. Commands and other non-edit tools run without approval, the same as Full access. The permission modes guide says Auto-accept edits "approves file edits automatically; other actions can still require approval".
I saw this with a Claude Sonnet 5 thread that I switched to Auto-accept edits. node -e "console.log(7*6)" and rm -f auto.txt both ran, and orchestration_v2_projection_runtime_requests had no new rows. The provider log shows the query opened with permissionMode: "acceptEdits" and a canUseTool callback.
Cause#
Claude's acceptEdits mode approves edits on its own and sends every other tool through canUseTool. The adapter's callback decides whether to ask with requiresClaudeApproval, which reads installPermissionCallback. That flag was true only for approval-required. In auto-accept-edits, the callback therefore answered allow for every tool without raising a request. The V1 Claude adapter asked in every mode except Full access.
Fix#
Set installPermissionCallback for auto-accept-edits as well. Edits still pass without a prompt because Claude approves them before the callback runs. Commands and other tools now raise a normal approval request. Supervised, Auto, and Full access are unchanged, and so are explicit approvalPolicy overrides.
Verification#
- New test
ClaudeAdapterV2 Auto-accept edits › asks before a command instead of allowing it. It opens a session in Auto-accept edits, calls the adapter's canUseTool for a Bash command, and checks that a command runtime request comes before any decision. Approving the request then allows the command.
- Without the fix it fails:
the command ran without asking: expected 'decision' to equal 'request'.
- With the fix it passes.
vp test run src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts: 119/119 pass.
vp test run src/orchestration-v2/testkit/ClaudeReplayFixtures.integration.test.ts: 3/3 pass.
vp test run src/orchestration-v2/testkit/OrchestratorReplayFixtures.integration.test.ts -t claude: 26 pass.
vp exec tsc --noEmit -p . in apps/server: no error TS or warning TS.
vp lint on the touched files: no new findings. The existing no-unused-vars warning on layer is on the base too.
knip --workspace apps/server --exports: clean.
- Not run: the full server suite. I did not re-check the web flow against the fixed build.
Model: Claude Opus 5.5 (Claude Code)
🤖 Generated with Claude Code
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result:
bcf55ea· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.