Skip to content

[Bug]: ACP providers offer Steer but always fail with "does not support active-run steering" #34267

Open

Description

@qiuziz

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. Configure an ACP provider that is not Kiro, e.g. a local ACP command (CodeBuddy Code: cbc --acp).
  2. Start a thread and send a prompt that keeps the turn running for a while.
  3. While the turn is running, send another message from the composer (the default follow-up behavior is steer).
  4. The message appears in the timeline, then disappears back into the composer, the turn stops, and the thread no longer accepts messages.

Expected behavior

Either deliver the steer to the agent, or show "Queue message" instead of "Steer message" for providers that cannot steer. Sending must not drop the text or leave the thread unable to send.

Actual behavior

AcpAdapterV2.steerTurn returns ProviderAdapterSteerRunUnsupportedError whenever flavor.steering is undefined. Only the Kiro flavor installs a steering implementation (kiroSteering, _kiro.dev/commands/steer), so every other ACP provider fails on the first line of steerTurn. The client still offers "Steer message" and optimistically renders the message, so the failure presents as a lost message and the active turn ends.

Impact

Major degradation or frequent failure

Version or commit

0.1.8 (bf469bb19669)

Environment

macOS 27.0.1 (26A434), T3 Code (Beta) 0.1.8, provider acpRegistry with a local ACP command (CodeBuddy Code ACP), model deepseek-v4.1-flash

Logs or stack traces

steerTurn -> ProviderAdapterSteerRunUnsupportedError:
acpRegistry provider thread ... does not support active-run steering.

Relevant code: makeAcpAdapterV2 in the server bundle; steering is only provided by makeKiroAcpAdapterFlavor (steering: kiroSteering).

Workaround

  • Hold Cmd/Ctrl while clicking send to use Queue instead of Steer, or set followUpBehavior: "queue".
  • Restart the provider session to recover the thread.

Additional context

The agent side already supports this. CodeBuddy Code's ACP server implements session/steer with { sessionId, contentBlocks, clientUserMessageId?, expectedRequestId? } and returns { steered: true, ownerRequestId } (or { steered: false, reason } when the run is idle). It also exposes session/enqueue_followup, session/get_followup_queue, session/send_followup_now.

A generic ACP steering flavor mapped to session/steer would fix every ACP provider that implements it. If that is out of scope for now, the minimal fix is to not offer Steer (fall back to queue) when flavor.steering === undefined.

Activity

  1. juliusmarminge commented on Nov 11, 2026

    @juliusmarminge
    Member

    @qiuziz Could you attach the server log lines from the moment the steer failed (from the T3 Code logs directory, or the 'Provider error' shown in the thread)? For non-Kiro ACP agents T3 steers by cancelling and restarting the turn rather than calling steerTurn, so the 'does not support active-run steering' error should not be reachable. We need to see what CodeBuddy Code returned to the session/cancel and the new session/prompt.

  2. qiuziz commented on Nov 11, 2026

    @qiuziz
    Author

    Thanks. I checked the logs and the code path, and I believe the mismatch is that an explicit steer does not go through the interrupt+restart fallback.

    In this thread the last ACP calls before the thread stopped accepting messages were:

    09:04:38.565Z  request  session/set_config_option  started
    09:04:38.669Z  request  session/set_config_option  succeeded
    09:04:38.673Z  request  session/prompt            started
    09:04:38.732Z  request  session/prompt            succeeded  (59ms)
    

    There is no session/cancel anywhere in the ACP section of this thread (0 occurrences), and no second session/prompt after the steer. So CodeBuddy never saw a cancel and never received the steered text; the failure happens before any ACP request is sent.

    resolveDeliveryIntent returns steer_active immediately for an explicit steer, without consulting capabilities:

    if (deliveryIntent === "steer") return { type: "steer_active", targetRunId: activeRun.id };

    Only the auto branch checks supportsActiveSteering / supportsSteeringByInterruptRestart. AcpProviderCapabilitiesV2.turns is { supportsActiveSteering: false, supportsSteeringByInterruptRestart: true }, so an explicit Steer click reaches AcpAdapterV2.steerTurn, which returns ProviderAdapterSteerRunUnsupportedError because only the Kiro flavor has flavor.steering.

    That matches the UI: the optimistic message is removed, the turn ends, and the thread stays unable to send until restarted.

    Two questions:

    1. Should an explicit steer intent fall back to restart_active when the provider only supports interrupt+restart? Right now the capability branch is skipped for explicit steer.
    2. If you still want raw payloads, which log level captures ACP request/response bodies? The ACP server here is a local proxy, so I can also log the exact session/prompt result.

    The agent is CodeBuddy Code 2.180.0; it implements session/steer, but T3 does not reach it for this provider.

  3. qiuziz commented on Nov 11, 2026

    @qiuziz
    Author

    Correction after checking T3's own event store (statev2.sqlite -> orchestration_events).

    The restart path did run for the steer at 08:48:

    08:48:51.135Z  run-attempt 1  superseded
    08:48:51.406Z  run-attempt 2  running    reason=steering_restart
    08:48:51.464Z  run-attempt 2  cancelled  (58ms later)
    

    and the matching ACP calls:

    08:48:51.375Z  session/prompt            succeeded  (previous turn)
    08:48:51.429Z  session/set_config_option started
    08:48:51.440Z  session/prompt            started
    08:48:51.446Z  session/prompt            succeeded  (6ms)
    

    So the steer does go through interrupt+restart, and the new session/prompt returns in 6ms; T3 then marks attempt 2 cancelled 58ms after it starts. The failure is in that short prompt result or in how T3 treats it, not in steerTurn.

    Two corrections to my previous message:

    • The provider log only records ACP requests that carry an id. Notifications are not recorded, so "0 session/cancel" only means it was not logged, not that it was not sent.
    • I still do not have the session/prompt response body. T3 records ACP requests as { valueType, fieldCount } only.

    Following the same thread after that, every subsequent send created a run that completed within 200ms (one at 254ms) until the provider was switched back to Claude. So the "message disappears and the thread stops accepting input" behavior is reproducible on every attempt in that state.

    Which log level or setting records ACP request/response bodies? If there is none, I can capture the exact session/prompt result on the agent side (the ACP server here is a local proxy) and attach it.

  4. juliusmarminge commented on Nov 11, 2026

    @juliusmarminge
    Member

    @qiuziz Could you paste the full server log entry for the failed steer, including its stack trace, from the T3 Code logs directory? It is the line containing 'does not support active-run steering'. On current main an explicit Steer for a local ACP agent cancels the turn and sends a new session/prompt with your text, and never calls steerTurn. Your ACP log also shows session/prompt returning after 59ms. Does CodeBuddy Code's session/prompt respond before the agent finishes its work, or was that turn already over when you pressed Steer?

  5. qiuziz commented on Nov 11, 2026

    @qiuziz
    Author

    I cannot find that log line.

    I grepped the whole T3 logs directory (provider/*.log, server.trace.ndjson*, desktop.trace.ndjson*) for does not support active-run steering and got 0 hits. If it only appears in the thread's "Provider error" UI, I do not have it in the files; I can reproduce and capture the UI text if you tell me what to look for.

    On your session/prompt question: CodeBuddy does not return before the turn finishes. I measured it directly against the ACP agent:

    • normal prompt: stopReason=end_turn after 3.292s, 75 session/update notifications, 0 updates in the 3s after the response
    • after session/cancel, an immediate new session/prompt still took 1.569s and returned end_turn; a second one sent 2s later took 1.318s

    So the 6ms / 59ms responses are not streaming-before-completion. They mean the prompt ends almost immediately. In the 08:48 case the T3 event store shows attempt 1 superseded, attempt 2 running with reason=steering_restart, then cancelled 58ms later.

    I do not have the response body for that 6ms prompt. I can add a temporary log on the agent side (it is a local proxy here) and reproduce one Steer to capture the exact session/prompt result. Would that help?

  6. GurrehmatO commented on Nov 18, 2026

    @GurrehmatO

    Amp ACP: steer on a running turn errors the run and leaves the thread unusable

    Adding another repro on the acpRegistry provider path, on Amp, where the restarted prompt fails outright rather than returning in milliseconds.

    Environment

    • T3 Code Nightly 0.1.11-nightly.20261117.4825 (desktop app → local server, Windows 11 x64, Node v26.13.1)
    • Provider: acpRegistry, Amp ACP 0.13.0 (amp-acp.exe)
    • Thread: 4568a113-7b65-401e-a3e2-c9024747d2af

    Steps

    1. Start a turn on Amp that keeps running (long task).
    2. Send a follow-up from the composer while it's active (default behavior is steer).
    3. The run errors and never recovers — every later message in the thread errors too.
    4. Switching the same thread to an opencode agent via handoff runs fine, confirming the thread itself is healthy; Amp never runs in it again.

    ACP requests from provider/events.<thread>.log

    08:25:57.965Z  session/prompt  started
    08:26:01.576Z  session/prompt  failed   AcpRequestError   (3.6s)
    08:26:09.447Z  session/prompt  started
    08:26:10.596Z  session/prompt  failed   AcpRequestError   (1.1s)
    08:26:46.643Z  session/close   started
    

    Earlier prompts in the same thread succeed normally.

    Why this matters for Amp specifically
    Amp's ACP binary advertises native mid-turn steering in initialize → agentCapabilities._meta:

    • capability amp-acp/steering
    • method _amp/session/steer taking { sessionId, steerId, prompt }, returning queued | startedNewTurn | failed
    • notifications _amp/session/steer_applied / _amp/session/steer_failed

    T3's ACP-registry flavor installs no steering handler (provider-acp-registry/src/server/adapter.ts), so it inherits supportsActiveSteering: false / supportsSteeringByInterruptRestart: true from AcpProviderCapabilitiesV2 and takes the cancel+restart path. Implementing an Amp steering handler (like grokSteering / kiroSteering) would avoid the restart entirely for Amp.

    Two smaller observations:

    • The restarted session/prompt fails with AcpRequestError here, unlike the 6ms-success pattern in this issue, so Amp's error body may be worth capturing.
    • No newer nightly contains an ACP steering fix (checked 20261118.4877).

    Happy to capture the full session/prompt error body if you tell me where to look.

  7. ruhengChen commented on Nov 19, 2026

    @ruhengChen

    +1

  8. AndreyDeimos commented on Nov 22, 2026

    @AndreyDeimos

    Cross-linking a proposal that covers the registry/local side of this: #40862

    Short version: negotiatedCapabilities() already honours a flavour's steersWithPrompt (packages/provider-acp/src/server/adapter.ts:987), but only bespoke flavours (Antigravity) ever set it, and the registry flavour is built before initialize so an agent cannot announce it. Reading initializeResult.agentCapabilities._meta there would let an agent that absorbs a second session/prompt opt in, instead of falling back to cancel+restart.

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