Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pingdotgg/t3code
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: pingdotgg/t3code
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/issue-25796
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 27, 2026

  1. test(server): reproduce #25796 steer offered mid-compaction

    This test reproduces #25796: a steer sent while Claude is
    compacting is offered to the SDK query at priority "now" right away, which
    aborts the compaction. The test expects the adapter to hold steers until
    the compact_result status arrives, then offer them in order.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    6a7da7a View commit details
    Browse the repository at this point in the history
  2. fix(claude): steers sent during compaction no longer abort it

    Claude Code aborts automatic compaction when a priority "now" user message
    arrives while it compacts, then restarts it. The adapter now holds steers
    on the active turn while its compaction runs and offers them, in order and
    still with priority "now", once the compaction result status (or a bare
    compact_boundary) arrives, so the steer is answered in the same turn.
    steerTurn returns immediately, so Stop is never queued behind compaction.
    Stop offers held steers before interrupting, and a turn that ends with
    steers still held drops them and releases their PDF reservations.
    
    Fixes #25796
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    b571eaf View commit details
    Browse the repository at this point in the history
  3. fix(claude): held steers report real delivery and Stop cancels them

    A steer held for compaction made steerTurn succeed at once, so a delegated
    message was accepted as delivered and then dropped if the turn ended before
    the compaction did. Stop also offered held steers mid-compaction instead of
    cancelling them.
    
    steerTurn now waits until its held steer is offered, and fails with the
    existing "ended before the steer was sent" error when the turn ends first,
    so the follow-up re-dispatch applies. Stop drops held steers without
    offering them. Because a waiting steer blocks the thread's effect queue, a
    run interrupt on a live provider turn now also cancels unsettled steer
    effects, which interrupts the waiting steerTurn instead of making Stop wait
    for the compaction.
    
    Fixes #25796
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    5ab2885 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4376e09 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. Merge remote-tracking branch 'origin/main' into fix/issue-25796

    # Conflicts:
    #	apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
    #	apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts
    juliusmarminge committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    4934145 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bfe7f78 View commit details
    Browse the repository at this point in the history
  3. fix(server): Stop sends a pending steer instead of discarding it

    Cancelling steer effects on Stop dropped the message while it still read
    as delivered, for every provider. Stop now leaves steers alone as on main,
    and the Claude adapter sends a steer held for compaction before it
    interrupts the turn.
    
    AI-assisted; verified with the tests and tools listed above.
    juliusmarminge committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    d183914 View commit details
    Browse the repository at this point in the history
  4. fix(claude): a steer held for compaction no longer blocks Stop

    The steer effect waited until compaction ended, and the outbox runs one
    effect per thread, so Stop's interrupt could not run until then. A held
    steer now settles at once; the adapter sends it when compaction ends or,
    on Stop, before it interrupts the turn.
    
    AI-assisted; verified with the tests and tools listed above.
    juliusmarminge committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    8d818fc View commit details
    Browse the repository at this point in the history
Loading