Skip to content

[Bug]: Steer on a Local ACP command agent cancels its running tools, with no way for an agent that steers natively to opt in #39326

Closed as not planned

Description

@danielphan2003

Note

🤖 Claude Opus 5.5 responding on behalf of @danielphan2003

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. Add a Local ACP command instance for an agent that steers natively, e.g. Autolith: executable autolith, argument acp.
  2. Start a thread and send a prompt that runs a long tool call (a shell command, a subagent).
  3. While it runs, send a follow-up with Steer.

Expected behavior

The follow-up reaches the running turn, and the tool call keeps running. Autolith already does this for its own terminal and over ACP: its extension _autolith/steer admits text "for the running turn's next safe boundary" (src/acp/input.lisp).

T3 already has two ways to deliver that, as hooks on AcpAdapterV2Flavor (packages/provider-acp/src/server/adapter.ts):

  • steersWithPrompt(initializeResult): a second session/prompt while one runs; the agent ends the running prompt with end_turn and carries the turn on under the new one. Antigravity uses it.
  • steering.send: an agent method that queues text into the running turn. Kiro (_kiro.dev/commands/steer) and Grok use it.

Neither is reachable from the ACP Registry / Local ACP command flavor, so an agent there has no way to say it supports steering.

Actual behavior

The ACP Registry flavor uses AcpProviderCapabilitiesV2 (supportsActiveSteering: false, supportsSteeringByInterruptRestart: true) and sets neither hook. A Steer therefore sends session/cancel and then a new session/prompt with the follow-up. The agent cancels its running tool calls and subagents before it sees the message, so a steer costs the work in flight.

This comes from reading main @ 4e39664248, and matches the maintainer's description on #34267 ("for non-Kiro ACP agents T3 steers by cancelling and restarting the turn"). #34267 is about Steer failing outright; this report is about the restart path itself, for agents that could take the message without a cancel.

Proposed fix: let an agent opt in from its initialize response, the way the registry flavor already recognizes Hermes from agentInfo. For example, agentCapabilities._meta could carry a T3-namespaced flag that turns on steersWithPrompt, and optionally a steer method name for steering.send (CodeBuddy Code's session/steer in #34267 and Autolith's _autolith/steer would both fit). Agents that don't advertise it keep today's interrupt-restart behavior. The key name is yours to choose; Autolith can advertise whatever T3 settles on.

Impact

Major degradation or frequent failure

Version or commit

main @ 4e39664 (also t3 v0.1.11-nightly.20261118.4890)

Environment

Linux (Fedora 44), T3 Code server; Local ACP command instance for Autolith 0.67.58 (autolith acp). Traced from source on both sides, not yet captured live.

Workaround

Queue instead of Steer (hold Cmd/Ctrl when sending, or set followUpBehavior: "queue"). The follow-up then waits for the whole turn to end.

Activity

  1. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

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