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

Commits on Nov 4, 2026

  1. test(server): reproduce #30985 Codex Stop that never completes is rep…

    …orted as interrupted
    
    When Codex acknowledges turn/interrupt but never sends turn/completed, the
    adapter synthesizes an interrupted terminal and interruptTurn succeeds, so
    Force stop is never offered. This test expects the turn to stay open and
    interruptTurn to fail with ProviderAdapterInterruptTimeoutError.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    b01f501 View commit details
    Browse the repository at this point in the history
  2. fix(server): Codex Stop that never completes offers Force stop

    When Codex acknowledged turn/interrupt but never sent turn/completed within
    the 10 second wait, the adapter finalized the turn as interrupted anyway, so
    the thread looked stopped while Codex kept working and Force stop was never
    offered.
    
    An unconfirmed root now leaves its lineage open and fails with
    ProviderAdapterInterruptTimeoutError, which the outer mapError passes through
    so Stop is marked unresponsive. Interrupt cleanup keeps the running command
    items of turns that are still active, so a later turn/completed from Codex
    finalizes the turn and its commands through the normal notification path.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    c3cd4ca View commit details
    Browse the repository at this point in the history
  3. fix(server): a Codex Stop that times out stays stopped until the turn…

    … ends
    
    When Codex acknowledged turn/interrupt but never sent turn/completed, the
    timed-out Stop cleared its interrupting mark. A late serverOverloaded failure
    then scheduled a capacity retry and continued the stopped run, and a late
    native completion read as completed. The timeout path also skipped the second
    terminal sweep, so a descendant command started after the first sweep was
    never terminated.
    
    The interrupting mark now stays on turns Codex has not finished and is
    cleared when the turn finalizes. Command tracking is kept only while a Stop
    is still waiting. The timeout path still runs the second terminal sweep and
    the settled-target cleanup, and reports the timeout over a termination
    failure, since Force stop covers both.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    b8b861f View commit details
    Browse the repository at this point in the history
  4. fix(server): an unconfirmed Codex Stop settles its lineage when Codex…

    … completes
    
    A Stop that timed out dropped its remaining work: descendants stayed
    active, commands started after the timeout were never terminated, and
    subagents spawned during the wait were never interrupted. The session
    manager's 15s cap also ran the error path on interruption, which
    synthesized interrupted terminals and hid Force stop.
    
    The work after Codex confirms a Stop now runs in a fiber in the session
    scope. A timed-out or capped Stop hands off to it, and it waits for the
    roots' own turn/completed. Each pending Stop keeps its own turn waiter,
    so a second Stop does not strand the first. Force stop's unloadThread
    finalizes turns that still have a Stop pending.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    39ab4f1 View commit details
    Browse the repository at this point in the history
  5. fix(server): a Codex Stop that times out contains descendants that se…

    …ttled meanwhile
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    4c0a553 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fccf497 View commit details
    Browse the repository at this point in the history
  7. fix(server): a Codex Stop keeps a late settled descendant's commands …

    …when containment fails
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    6e62881 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-30985

    # Conflicts:
    #	apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
    juliusmarminge committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    694880e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    037e6df View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. Configuration menu
    Copy the full SHA
    414eae0 View commit details
    Browse the repository at this point in the history
  2. fix(server): a provider switch proceeds when the old Codex turn never…

    … stops
    
    A mid-turn provider switch (restart with a detach or replace session
    transition) now treats the interrupt timeout as done: the detach that
    follows unloads the thread, which ends the turn Codex never completed.
    An in-session restart still fails on the timeout.
    
    AI-assisted; verified with the tests and tools listed above.
    juliusmarminge committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    9d1ec54 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d24379a View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/main' into fix/issue-30985

    # Conflicts:
    #	apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
    juliusmarminge committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    18a02e0 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2026

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

    # Conflicts:
    #	apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
    juliusmarminge committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    5f9069c View commit details
    Browse the repository at this point in the history
  2. fix(server): a timed-out Codex Stop still stops children that start late

    Settling a Stop waits for the root's turn/completed, so after the
    confirmation timeout a descendant that started late kept running. At the
    timeout, interrupt the descendants found so far, and interrupt any child
    turn that starts under a root whose Stop is still unconfirmed. Drops the
    settled-descendant containment that only existed for children that could
    now run past the timeout.
    
    AI-assisted; verified with the tests and tools listed above.
    juliusmarminge committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    2d6bdb9 View commit details
    Browse the repository at this point in the history
  3. fix(server): a capped Codex Stop still stops children that start late

    When the session manager's cap interrupts a Stop before its confirmation
    timeout, the settlement fork waited for the root without marking it
    unconfirmed, so a child starting afterwards ran unstopped. The capped path
    now marks the roots and interrupts late descendants, like the timeout path.
    
    AI-assisted; verified with the tests and tools listed above.
    juliusmarminge committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    1cfb434 View commit details
    Browse the repository at this point in the history
Loading