Skip to content

[Bug]: Steering an fx turn cancels it and starts a new turn instead of joining it #46912

Done

Description

@wentsul

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. Enable fx (0.0.18) in T3 Code and start an fx thread.
  2. Send a prompt that keeps the turn running for a few seconds, for example: "Run the shell command sleep 20 once, then reply with one short sentence."
  3. While the turn is running, send a follow-up from the composer with the default follow-up behavior (Steer), for example: "Also include the word PINEAPPLE in your final sentence."

Expected behavior

The steer joins the running fx turn, as it does with Claude: it shows as waiting to be accepted, fx reads it at its next model boundary, and the running tool and turn continue.

Actual behavior

T3 Code cancels the running fx turn and starts a new one with the steer text. The cut-off turn is shown as "Superseded attempt — Cut off by a steer", and the running tool is cancelled.

Impact

Major degradation or frequent failure

Version or commit

T3 Code Nightly 0.1.14-nightly.20261201.5530 with fx 0.0.18.

The code paths below are unchanged on main at 0a5e0e3660e383a9bf224d935d32c082a6ebd03b.

Environment

macOS (Darwin 25.6.0), T3 Code Nightly desktop app with its local server, fx ACP provider.

Evidence and likely cause

fx's ACP documentation supports steering a running turn. The client sends a text session/prompt with _meta.fx.steer: true and checks agentCapabilities._meta.fx.steering in initialize first. fx applies the message at the next safe model boundary without cancelling. The steer request is answered when the turn ends: _meta.fx.steering: "absorbed", "dropped" if a cancel ended the turn first, or error -32600 if the turn ended on its own before taking it.

T3 Code never uses this, so fx falls back to interrupt and restart:

I drove fx acp 0.0.18 directly over ACP to confirm fx's side. It advertises the capability:

{ "agentCapabilities": { "_meta": { "fx": { "steering": true } } } }

Then I started a turn that ran sleep 4 and sent a steer 1.5 s in:

   497 out session/prompt id=3
  1999 out session/prompt id=4 _meta={"fx":{"steer":true}}
  2350 in  tool_call
  8545 in  tool_call_update
  8546 in  user_message_chunk "Also include the word PINEAPPLE…" _meta={"fx":{"steering":{"requestId":4}}}
 10200 in  result#3 {"stopReason":"end_turn"}
 10200 in  result#4 {"stopReason":"end_turn","_meta":{"fx":{"steering":"absorbed"}}}

The tool was not cancelled, and the reply included the steer. A steer sent while fx streamed its final reply, with no tool after it, was also absorbed. fx delivered it about 8 s later, in another model step.

The delivered steer arrives as a user_message_chunk tagged with the steer's JSON-RPC id in _meta.fx.steering.requestId. A client can use that to confirm delivery.

Requested direction

Would maintainers accept a fix that steers fx natively when its initialize advertises _meta.fx.steering?

A focused fix could:

  • Give the ACP steering hook an optional supported(initializeResult) check, so a flavor negotiates active steering per session.
  • Add an fx steering implementation: send the steer as session/prompt with _meta.fx.steer: true, and confirm delivery from the tagged user_message_chunk.
  • Mark fx steering text-only (activeSteeringAcceptsAttachments: false), so a steer with attachments still restarts the turn.
  • Keep interrupt and restart for fx versions that don't advertise steering.

Workaround

Hold Cmd/Ctrl while sending to queue the follow-up instead of steering, or set the follow-up behavior to Queue. The follow-up then waits for the turn to finish.

Additional context

Related but different: #34267, where ACP registry providers fail to steer at all. fx does not fail. It restarts the turn.

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