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

Commits on Oct 22, 2026

  1. test(server): Claude CLI permission denials surface a notice

    Failing regression test for #18386: a result whose permission_denials
    include a CLI-side denial (settings deny rule or auto-mode classifier)
    completes silently. T3-owned declines in the same list stay excluded.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    8bd7667 View commit details
    Browse the repository at this point in the history
  2. fix(server): Claude turns the CLI blocked by a permission denial fail…

    … visibly
    
    A deny rule or the auto-mode classifier rejects a tool call inside the
    Claude CLI, so canUseTool never runs and the turn ended as a plain
    "completed" run with no request, letting the thread settle as finished.
    
    The result's permission_denials now drives a system notice listing each
    denial the CLI made, with the reason from its permission_denied frame,
    and fails the turn with a permission_error. Calls T3 denied through
    canUseTool (declines, cancelled questions, plan capture, plan policy)
    are excluded. Interrupts and real failures keep their own status.
    
    Fixes #18386
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    b32bc0d View commit details
    Browse the repository at this point in the history
  3. fix(server): Claude permission-denied turns stay unsettled and keep t…

    …heir workflows
    
    A thread failed by a Claude CLI permission denial could still auto-settle
    after inactivity or a merged pull request, and failing the turn stopped any
    workflow it had launched. Settlement now skips a thread whose latest run
    failed with code permission_denied, read from the run's existing error item.
    The adapter reports the turn as failed while it still ends the turn as a
    native completion, so running background work keeps going.
    
    The notice now gives the reason from the matching errored tool_result when
    the CLI sends no permission_denied frame (older CLIs, hooks), and says when
    no reason was given. Reasons are sliced before control characters are
    stripped. The failure and notice state only how many calls were denied and
    no longer suggest a fix that does not apply to hook denials.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    f5c7256 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c93969e View commit details
    Browse the repository at this point in the history
  5. fix(server): denied Claude turns keep workflows ingested and stay uns…

    …ettled behind held queues
    
    Settlement candidates in SQL now skip held queued runs, matching the
    memory store's latestUnheldRun, so a run queued behind a permission-denied
    turn no longer hides the denial from the settlement guard.
    
    The synthetic permission_denied failure of a natively completed Claude turn
    marks childTurnsContinue, so run execution neither fails the workflow the
    CLI is still running nor stops ingesting its later events.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    7cda082 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9180d72 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    56468f9 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-18386

    # Conflicts:
    #	apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
    #	apps/server/src/orchestration-v2/ProjectionStore.ts
    #	apps/server/src/orchestration-v2/ThreadSettlementService.test.ts
    juliusmarminge committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    2ebca70 View commit details
    Browse the repository at this point in the history
  2. fix(server): only a Claude turn that ends on a CLI denial fails

    A turn Claude recovered from with later tool calls stays completed and keeps
    its denial notice, so queued messages run and delegating parents see success.
    Drops the PR-only visual fixtures and folds the orchestrator integration test
    into the adapter test's childTurnsContinue assertion.
    
    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
    67df19b View commit details
    Browse the repository at this point in the history
  3. fix(server): a Claude CLI denial no longer fails the turn

    Claude can answer directly after a denied call, so no frame tells a
    recovered turn from a blocked one. The turn keeps its own status, so queued
    messages run and delegating parents see the real outcome. The denial notice
    stays, and a thread whose latest run carries it is kept out of
    auto-settlement until the user acts.
    
    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
    88dceae View commit details
    Browse the repository at this point in the history
  4. fix: a provider-denied run shows as Denied and still settles on its p…

    …ull request
    
    The run keeps its own status. The shell now carries latestRunPermissionDenied,
    so web and mobile show Denied instead of Completed, the web notifies
    "Permission denied" instead of a completion, and the awareness detail says a
    tool call was denied. The settlement hold applies only to inactivity, so a
    merged or closed pull request settles the thread as on main.
    
    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
    1e99091 View commit details
    Browse the repository at this point in the history
Loading