Problem#
A steer on a running Claude thread, from a person or from another agent through t3_thread_send, cancels the MCP tool calls Claude is running, including T3's own delegation and task tools. The adapter writes steers with priority: "now", which makes Claude Code abort in-flight MCP calls (a running Bash command is waited for). They come back as "The user doesn't want to take this action right now. STOP what you are doing…", so Claude treats an ordinary update as a refusal. #21895 has a log where one agent update cancelled five of seven parallel delegation calls.
This is a fresh port on current main that replaces #21158. #21158 was closed because it conflicted with main in 10 files. Since then main has gained steer acceptance status (#24785), the unconfirmed-steer notice on Stop (#23807), live model changes sent with a steer (#34564) and others. This version builds on that machinery instead of carrying #21158's own queue, receipts and orchestrator changes. It is one adapter change plus tests.
Change#
All of it is in ClaudeAdapterV2:
- Steers wait for a tool boundary.
steerTurn keeps the steer with its attachments and PDF budget reservation instead of writing it. It still sends the "pending" status, and still moves foreground subagents to the background so their calls end sooner.
- Delivery uses Claude's own
next input. A root PostToolBatch hook writes the held steers with priority: "next". The hook answers only after the SDK has written them to the CLI, so Claude adds them to the request after the batch finishes. A subagent's batch (agent_id set) is not a boundary of the root turn.
- A turn that ends first still gets the steer. If Claude finishes its turn before another boundary, the held steers are written after the result. Claude runs them as its next native turn, which stays part of the same T3 turn, and usage is billed across both parts. That reuses the segment accounting
main already had for steers.
- Delivery status comes from Claude. The existing
command_lifecycle / echo handling marks a steer delivered when Claude reports it started. Nothing new is persisted.
- Stop and restart are unchanged. Stop drops held steers without writing them, shows the existing #23807 notice and releases their PDF budget. Explicit restart and other providers are untouched.
- Removed: the handling of steers' aborted results (
aborted_tools / aborted_streaming) and the reply cut-off state, which only "now" steers could reach. Also the Claude message_steering replay fixture, which recorded the old interrupting protocol on Claude Code 2.1.111.
- Docs: one sentence in
docs/user/composer.md saying when Claude reads a steer.
activeSteeringInterruptsTools stays true for Claude on purpose. It also keeps notices (delegated-task completions and questions, goal command notices) queued rather than steered. Steering those would need the delivery receipt to wait until the steer is actually written, which is a separate change.
Scope#
Fixes #21895. Replaces #21158, closed for conflicts with a request for a fresh PR from current main.
Verification#
Live, with Claude Haiku 5.5 on Claude Code 2.1.322. I ran isolated dev servers for main and this branch and sent each steer from the web composer. The Claude session transcripts and each server's database show the same as the screenshots.
- A steer during a tool call. Claude called an MCP tool that takes 20 seconds, and I steered while it ran. On
main, the call came back as "The tool call was interrupted before a result was received", and Claude ran it again. With this change the call finished with its result. The steer stayed "waiting to be read" until then, and Claude read it in the next request of the same native turn. A steer during a 20-second Bash command behaved the same way: the command finished, and Claude's reply followed the steer. (On main with this CLI, a "now" steer waits for a running Bash command, but it still cancels MCP calls like the delegation calls in #21895.)
- A steer while Claude writes its final answer, with no tools. The steer was held until Claude finished its answer, then written after the result. Claude answered it in a second native turn, which T3 shows as one turn: one run, one provider turn, and the follow-up under "Continued".
Before (main) | After |
|---|
 |  |
More captures with this change
Steer during a 20-second Bash command:

Steer while Claude writes its final answer, without tools:

- New tests failed on
main first. On main, the adapter tests "holds a steer for Claude's next root tool boundary" and "runs a held steer within the turn when Claude ends it without a tool boundary" fail because the steer is written immediately with "now". Both pass with the fix.
- End-to-end through the orchestrator.
ClaudeAutomaticDelivery.integration.test.ts used to assert that an explicit or promoted steer cancels the four running task_status calls with the refusal text. It now asserts that all four complete, nothing is aborted, and the steer is written once with "next" at the boundary.
- Updated tests, same intent: existing steer tests for attachments, PDF budgets, compaction reservations, the Stop notice, acceptance status, live model changes and segment usage now drive a tool boundary first. A new case checks that a steer dropped by Stop frees its PDF pages for the next send.
- Checks:
vp run check:changed passed every stage: format, lint, knip, typecheck of 3 packages, and 410 tests in the 3 changed test files. ClaudeReplayFixtures.integration.test.ts passed (37 tests).
- Review: an independent review found no blocking issues. Two edge cases it raised are fixed here: a failed write now marks the steer cancelled instead of later reporting it delivered, and an interrupted
steerTurn no longer releases a reservation the held steer still owns.
Not checked: older Claude Code versions without PostToolBatch, which fall back to taking a steer after the reply ends, and steers sent by agents through t3_thread_send. Those use the same adapter path as the composer steers above.
Implemented with Claude Opus 5.5 in T3 Code/Claude Code, with an independent Claude Opus 5.5 review.
🤖 Generated with Claude Code
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
We couldn’t complete this review. Comment
@codex reviewto try again.93d2180ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.