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: MikaMcFlurry/t3code
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e825f5ab83
Choose a base ref
...
head repository: MikaMcFlurry/t3code
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: mika/pr-32508-fix
Choose a head ref
  • 4 commits
  • 6 files changed
  • 2 contributors

Commits on Nov 11, 2026

  1. fix(server): keep Claude's session until an emptied roster's wake is …

    …delivered
    
    Claude can publish background_tasks_changed with no tasks before the
    task_notification that owes a wake turn. In that gap the session probe
    reported no work, so a waiting account switch resumed and closed the CLI
    before the notification and its reply arrived. Count wake-eligible tasks
    as pending work; they clear on the notification, a failed turn, or a
    replaced process.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Mika Hertler and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    3618c85 View commit details
    Browse the repository at this point in the history
  2. fix(server): a retained session's late update no longer takes the thr…

    …ead back
    
    A session kept running for its background work can still report after a
    handoff, for example from its own wake turn. Each provider-thread update
    moved the thread's active route to it, so later sends to the new account
    were planned as switches away from the old one again. Only the thread's
    current instance, or the route it already has, may now take the route.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Mika Hertler and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    ca0de8a View commit details
    Browse the repository at this point in the history
  3. fix(server): Stop reaches a session whose wake is still owed

    Keeping Claude's session until an emptied roster's wake is delivered
    means a switch queued behind it waits for task_notification. If that
    notification never arrives, Stop was no way out: it only targeted a run
    when the projection showed background work, and the owed wake lives in
    the adapter alone, so Stop interrupted nothing and the switch stayed
    queued.
    
    `thread.stop` and `run.interrupt` now also probe every live provider
    thread of the app thread and interrupt each busy one at its last
    accepted provider turn with `requestRuntimeRestart`, which already
    clears the adapter's wake eligibility. Resuming the held queue then
    runs the switch.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Mika Hertler and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    5414cfd View commit details
    Browse the repository at this point in the history
  4. fix(server): Stop reaches kept sessions after a newer start fails

    When a newer account's start fails before it accepts a provider turn,
    the failed run has no turn of its own to interrupt. `thread.stop` then
    fell back to marking and holding the thread, and dropped the interrupts
    it had already validated for the older kept sessions, so they stayed
    busy.
    
    A holding interrupt of the latest settled run now still sends those
    interrupts when the run has no provider turn, and marks the run and
    holds the queue as before. A plain `run.interrupt` of such a run, of an
    older run, or of a run still starting is unchanged.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Mika Hertler and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    f48b868 View commit details
    Browse the repository at this point in the history
Loading