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-30926
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 16 commits
  • 11 files changed
  • 2 contributors

Commits on Nov 4, 2026

  1. test: reproduce Pi resume confirm deadlock and unsolicited wake (#30926)

    These tests reproduce #30926:
    - the outbox keeps a runtime-request.respond pending behind the same
      thread's running provider-turn.start, so the answer a Pi
      session_start(resume) dialog needs can never be delivered.
    - an agent_start that arrives while Pi's resume switch_session is pending
      is reported as unsolicited and terminates Pi instead of being held as a
      wake for the turn that is starting.
    juliusmarminge committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    7e7f8cc View commit details
    Browse the repository at this point in the history
  2. fix: deliver Pi resume confirms and hold the work they start (#30926)

    Restoring a Pi session whose extension confirms during switch_session
    deadlocked: the outbox kept the runtime-request.respond behind the same
    thread's running provider-turn.start, which was itself waiting for that
    answer. Respond effects may now be claimed while a non-respond effect of
    their thread runs; they stay serialized among themselves and still wait
    behind earlier pending effects.
    
    Once answered, the extension's session_start hook can start native work
    before Pi answers the switch. That agent_start hit the unsolicited guard
    and terminated Pi. The Pi adapter now buffers work that starts while a
    thread is registering and turns it into a pending native wake once the
    thread binds, so the starting turn adopts it. If registration fails, the
    buffered work is stopped as unsolicited, as before.
    
    Fixes #30926
    juliusmarminge committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    8e3c999 View commit details
    Browse the repository at this point in the history
  3. fix: narrow Pi resume answer and wake handling to the resume path (#3…

    …0926)
    
    A runtime request answer now passes only a running provider-turn.start of
    its thread, so Stop-then-Accept keeps its order. The effect daemon reserves
    one extra worker that claims only runtime request answers, so turn starts
    waiting on dialogs cannot occupy every worker and strand the answer.
    
    Pi buffers registration-time agent_start only while restoring a session via
    switch_session; first registration and new_session keep the unsolicited
    guard. The registration keeps cleanup ownership until registerThread exits,
    so held work is stopped if startup fails or is interrupted before the wake
    is offered.
    juliusmarminge committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    ef83567 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4a6412 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2026

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

    # Conflicts:
    #	packages/provider-pi/src/server/adapter.test.ts
    #	packages/provider-pi/src/server/adapter.ts
    juliusmarminge committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    eff4e0c View commit details
    Browse the repository at this point in the history
  2. test: stub the runtime request lane in the outbox notification test

    AI-assisted; verified with the tests and tools listed above.
    juliusmarminge committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    44083b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. Configuration menu
    Copy the full SHA
    2146c6f View commit details
    Browse the repository at this point in the history
  2. fix(pi): drop buffering of native work started during a resume switch

    Recording agent events after Pi has started executing is not admission
    control: the extension still runs model calls and tools before T3 owns a
    turn or applies the intended model. Keep the unsolicited-work guard as it
    is on main and limit this change to delivering the runtime request answer
    that the running turn start waits on.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    4eb2955 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bee5e83 View commit details
    Browse the repository at this point in the history
  4. fix(pi): abort work a session switch hook starts before T3 owns the t…

    …hread
    
    An extension's session_start hook can start native work after its startup
    confirm is answered, while switch_session is still pending and no thread is
    bound. The unsolicited-work guard terminated Pi there, and the resume failed
    with the secondary terminate error. Abort that run instead so the switch
    completes and T3 applies its model before any owned turn. If the abort
    fails, the guard still stops Pi, and the switch now reports the
    unsolicited-work diagnostic instead of the transport error.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    4d7542d View commit details
    Browse the repository at this point in the history
  5. fix(pi): hold work a resumed session starts until a T3 turn admits it

    Aborting after agent_start came too late: Pi can make the resumed model
    call before the abort lands, with the restored model, and the abort path
    raced the switch_session response. Instead, T3's injected Pi extension
    closes an admission gate when a session resumes and holds every run in
    before_agent_start, before any model call or agent_start. The adapter
    opens it with /t3-admit from the next non-continuation turn, after model
    selection is applied and the turn owns the thread. Work that still stops
    Pi during registration now reports the unsolicited-work diagnostic
    instead of the transport failure it causes.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    5d3e88c View commit details
    Browse the repository at this point in the history
  6. test(pi): replay fixtures expect the resume admission command

    Resumed Pi sessions now send /t3-admit from the first owned turn, so the
    recorded resume and rollback transcripts include that command and its
    handled response before the user prompt.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    5fc7286 View commit details
    Browse the repository at this point in the history
  7. fix(pi): a restore waiting on a startup dialog no longer times out

    Pi holds switch_session until a session_start hook's dialog is answered,
    so the 60 s lifecycle deadline ran out while the user read it, and with
    two resume prompts or several queued restores the answer always arrived
    after Pi had been stopped. The deadline now counts only time with no T3
    dialog open. After a lifecycle failure stops Pi, later lifecycle calls on
    that runtime report the original failure instead of a closed transport.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    6718a37 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2026

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

    The runtime request lane now passes its claim filter through main's
    runOnce and nextClaimableAt, which already take claim options, instead
    of adding parallel lane methods. Main resumes through a get_state probe
    and skips switch_session when Pi is already on the file, so the Pi
    resume tests queue another session file to reach a real switch.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 22, 2026
    Configuration menu
    Copy the full SHA
    c9293c1 View commit details
    Browse the repository at this point in the history
  2. fix(pi): hold startup work of a session resumed at spawn until a turn…

    … admits it
    
    Main now restores a Pi thread by spawning Pi with --session, so a restore
    hook sees session_start with reason "startup" rather than "resume" and the
    admission gate stayed open. T3 sets T3_PI_RESUMED_STARTUP on those launches;
    the extension closes its gate for that startup and the adapter admits it
    from the first owned turn, as it does after switch_session.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 22, 2026
    Configuration menu
    Copy the full SHA
    62f0a8c View commit details
    Browse the repository at this point in the history
  3. fix(pi): a session switch answered near its deadline keeps a full window

    The lifecycle deadline only checked for an open dialog at each window
    boundary, so an answer given just before one timed the switch out right
    after it. Track dialog activity and time out only after a whole window
    with no dialog open, opened or answered.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 22, 2026
    Configuration menu
    Copy the full SHA
    2a0af3e View commit details
    Browse the repository at this point in the history
Loading