Skip to content

[Bug]: Steering a running turn while a request_secret card is open deadlocks at "Steer · waiting to be read" #40204

Open

Description

@AymanKhan9

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start a thread on a provider with active steering enabled (e.g., Claude Code or Codex, where supportsActiveSteering: true).
  2. Have the agent call request_secret, opening a pending secret card in the timeline (blocking the MCP tool call while waiting for the user).
  3. 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).

Secret card staying open while user steer is stuck at "Steer · waiting to be read"

Root cause

  • In apps/server/src/mcp/OrchestratorMcpService.ts (requestSecret), the MCP tool blocks in a poll loop waiting until either item.secretStatus !== "pending", the run becomes terminal, or current.rootNodeId !== nodeId (added in fix(server): a secret card closes after the steering restart that supersedes it #34634 for interrupt_restart steering).
  • In apps/server/src/orchestration-v2/Orchestrator.ts (dispatchSteerIntoRun), when steeringPolicy === "active_steering", the run keeps the same rootNodeId and emits provider-turn.steer without closing pending secret_request cards on that run.
  • Because active-steering providers (e.g., Claude Code using priority: "next" in ClaudeAdapterV2.ts, or Codex turn/steer) wait for the currently executing request_secret MCP 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)

Activity

  1. jndegens commented on Nov 21, 2026

    @jndegens

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions