[Bug]: Steering a running turn while a request_secret card is open deadlocks at "Steer · waiting to be read"
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Start a thread on a provider with active steering enabled (e.g., Claude Code or Codex, where
supportsActiveSteering: true). - Have the agent call
request_secret, opening a pending secret card in the timeline (blocking the MCP tool call while waiting for the user). - Instead of saving or declining the secret card, type a steering message in the composer (e.g.
"No it only allows one key per model") and press Enter.
Expected behavior
Sending a user steer while a secret card is waiting should close/cancel the pending secret card so the blocking request_secret MCP tool call returns immediately, allowing the provider to read and act on the user's steer.
Actual behavior
The secret card stays open and pending, the sidebar stays stuck on Input, and the user's steer sits indefinitely at Steer · waiting to be read until the user manually clicks Decline or Stop (or waits for request_secret to time out after 10 minutes).

Root cause
- In
apps/server/src/mcp/OrchestratorMcpService.ts(requestSecret), the MCP tool blocks in a poll loop waiting until eitheritem.secretStatus !== "pending", the run becomes terminal, orcurrent.rootNodeId !== nodeId(added in #34634 forinterrupt_restartsteering). - In
apps/server/src/orchestration-v2/Orchestrator.ts(dispatchSteerIntoRun), whensteeringPolicy === "active_steering", the run keeps the samerootNodeIdand emitsprovider-turn.steerwithout closing pendingsecret_requestcards on that run. - Because active-steering providers (e.g., Claude Code using
priority: "next"inClaudeAdapterV2.ts, or Codexturn/steer) wait for the currently executingrequest_secretMCP tool call to return before reading the steer, both sides deadlock.
Impact
Major degradation or frequent failure
Version or commit
main @ 982bbcdfe1
Environment
Linux, T3 Code desktop (Electron) & web, Claude Opus 5.5 (and any provider with supportsActiveSteering: true)
A data point from the other side of this. Before #39018 (on 0.1.10), a user message sent while a request_secret card was open cancelled the card at once. The tool returned "The tool call was interrupted before a result was received". We saw this several times in one day, each time right after the user's message. The user had to wait for the agent to open a new card and type the secret again.
So cancelling the card on a steer, as proposed here, brings back that problem. People often send a short message ("one moment", "which password?") while they look up the secret.
Suggestion: deliver the steer to the agent, but keep the card open and fillable. If the agent's request_secret call has to return so the steer can be read, the card could stay in the timeline and deliver its value later as a follow-up, instead of being cancelled.
Environment: macOS desktop app connected to a remote Linux environment, Claude threads.
I hit this on the T3 Code macOS desktop app with a Claude Opus 5.5 thread. The agent opened a secret card that pointed me to a local web app. The local server was stopped, and I still needed login credentials, so I sent those blockers through the regular chat composer while the card was open.
The thread stayed in Input, the secret card stayed open, and my message stayed at Steer · waiting to be read. I expected the agent to receive the message and help me unblock the prerequisite while the secret still went through the secure input flow.
@jndegens can that PR be merged?