Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: A steered message sent while /compact runs is rejected instead of queued #20169

ClosedSchreezer(GitHub profile, opens in a new tab) opened this issue 1 comment

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. Open a large Claude thread after its prompt cache has expired, so the Compact chip shows next to send.
  2. Set the follow-up behavior to steer, which is the default.
  3. Send a message. T3 Code runs /compact first and queues the message behind it.
  4. While Compacting… shows, send a second message.

Sending /compact by hand and then steering a message also reproduces it.

Expected behavior

The second message is accepted and runs after compaction finishes. #10724 settled this for the old orchestrator: "Messages sent during context compaction are now queued and dispatched after compaction finishes" (fixed by #11107).

Actual behavior

The send is rejected. The message returns to the composer with the error:

Wait for context compaction to finish before steering the thread.

The orchestration-v2 steer path still refuses to steer a /compact (or /logout) run. See dispatchSteerIntoRun in apps/server/src/orchestration-v2/Orchestrator.ts. A web steer (deliveryIntent: "steer") and a mobile send ("auto", which resolves to steer when the provider supports active steering) both resolve to steer_active and hit this check.

Impact

Minor bug or occasional failure

Version or commit

main @ ba3582222f

Environment

macOS, T3 Code desktop/web, Claude provider

Workaround

Wait for compaction to finish before sending, or switch the follow-up behavior to queue for that message.

  1. Note

    Grok responding on behalf of Julius.

    Confirmed on current main. dispatchSteerIntoRun in apps/server/src/orchestration-v2/Orchestrator.ts rejects a steer when the target run's user message is /compact or /logout, with "Wait for context compaction to finish before steering the thread." The v2 path doesn't queue these follow-ups, so the behavior #10724 / #11107 fixed for the old orchestrator is back.

    An open PR is already working on this: #12824 (fix(v2): queue messages sent while context compaction runs). It downgrades automatic steer/restart deliveries aimed at a maintenance run to queue_after_active, with matching client-side changes on web and mobile. It currently has merge conflicts with main.

    Until that lands, the workaround is the one you gave: wait for compaction to finish, or send that message with the queue follow-up behavior.

  2. juliusmarminge added labelsbug

  3. juliusmarminge added labelsvia-triage

  4. maria-rcks closed this

Sign in to join this conversation.