GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — perf(server): runs finish when the provider turn ends, not after checkpoint capture by juliusmarminge · Pull Request #41362 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Problem

A run counted as finished about 1.5 s after the model's last byte. About 700 ms of that is turn-end checkpoint capture (about 10 sequential git commands, then ref lookups, the diff and the authored paths). RunExecutionService wrote a finished turn as waiting and flipped it to completed only after capture. Clients treat waiting as active, so the run looked busy throughout capture. With the files-changed card gone (#41317), nothing in the timeline needs the checkpoint when the turn ends.

Change

  • Run completion: a turn that ends normally is written as completed, with completedAt set to the turn end, in the same commit that enqueues the checkpoint.capture outbox effect. Interrupted and cancelled runs already worked this way.
  • Capture: capture accepts completed runs and only attaches the checkpoint to them. It adds the checkpoint, its turn item, and checkpointId on the run. It no longer moves status or completedAt, and it no longer touches the root node. Runs stored as waiting by older servers still use the old flip.
  • Ordering: commands still order behind the capture. Under main, waiting was a barrier: steers, queued turns and hand-off checks saw an active run until capture committed, so steer deliveries already queued on the thread's effect lane settled first. To keep that:
    • readCommandProjection presents the latest run as waiting to command decisions while its capture effect is pending or running.
    • requeueUnreadSteers and the run-end reactor wait for the capture commit, which repeats the run update.
    • Clients and projections only ever see completed.
  • Lane: the per-thread effect lane already serializes the next turn's start (and its baseline checkpoint), rollback and restore behind the capture. A new test pins it: a start enqueued while a capture is running cannot be claimed until that capture finishes.

Checkpoint readers while capture is pending

  • Diff panel, rewind targets, mobile review: built from checkpoint records, so a pending turn simply has no entry yet. Same as during waiting under main.
  • getTurnDiff: only receives turn counts that clients read from existing checkpoints.
  • Proactive diff panel: already defers until the checkpoint arrives.
  • Timeline (web and mobile): skips checkpoint turn items, so nothing shifts when capture lands.
  • MCP thread read: lists the checkpoint turn item once it exists. No MCP tool reads refs.
  • Rollback: its effect runs on the same lane, after the capture.
  • Fork and merge-back from latest_stable: this source needs a run with a checkpoint. The dispatch now waits for the source's pending capture before it takes any thread lock (capture commits under that lock), so a fork right after a turn starts from that turn.

Behavior changes

  • t3_thread_wait and delegate_task settle at turn end, before capture.
  • A delegated child whose turn ended reports waiting_for_children (not working) while its capture runs.
  • Cancelling a task whose child turn has ended settles it in the cancel's own commit.
  • A send that arrives during the capture window is queued behind the capture, as it was while the run was waiting.
  • If a capture fails permanently, the run stays completed without a checkpoint and the queue stays held. Under main the run stayed waiting.

Scope

Product decision by Julius and Maria: remove the files-changed card and capture turn-end checkpoints asynchronously. Layer 2 of 2, stacked on #41317.

Verification

  • Pipeline A/B (node scripts/server-metrics.ts ab --only pipeline --rounds 3, harness at feat(scripts): server metrics time the turn pipeline and opening a large thread #41282 head 996169f, A = main 65cd644, B = this branch b46422c; the later fork-wait commit does not touch the pipeline path, cups linux-x64):
metric main this PR change 95% interval
pipeline.turnEndMs.median (API stream end → finished run) 1335 ms 929 ms −30% −472 to −148 ms
pipeline.msPerTurn 4506 4542 +1% −406 to 511
pipeline.gcPauseMs 1343 2009 +50% 391 to 1216 (flagged worse)

gcPauseMs is flagged worse with 3 rounds a side. I have not explained it; capture now overlaps the harness's next send. Per-turn time is unchanged.

  • Real web client: dev server with the Replay (dev) provider, in a throwaway git repo with 20k untracked files to make capture slow. The run's completedAt was 08:23:25.563. The client dropped "Stop generation" at 25.977 (about 0.4 s of client latency). Capture then ran for about 30 s in the background and hit the existing 30 s VCS timeout (an error checkpoint, old behavior). The client recorded no timeline layout change after the completion frame.
  • Tests: a new lane-ordering test in RunFinalizationQueue.test.ts. The capture tests now cover a completed run (status and completedAt kept, no node.updated); the legacy waiting cases still cover the flip. Tests and replay-fixture assertions that waited for the waiting event now wait for completed. The replay scenario harness counts a completed run as busy until its checkpoint lands. 18 affected server files pass in an isolated PID namespace (774 tests). vp run check:changed passes: format, lint, knip, typecheck (9 packages), tests (26 files) and the react compiler check.
  • Docs: docs/internals/overview.md "Turn completion and checkpoints" now describes completion before capture and the command-side hold.

Model: Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge
juliusmarminge added this pull request to stack #41363 November 23, 2026 10:07
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 5.0 KiB — 6.8 KiB ✅
Codex Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Codex Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Codex Live turn WebSocket decoded — 21.5 KiB — 24.4 KiB ✅
Codex Live turn messages — 1 — 8 ✅
Claude Total thread wire — 5.0 KiB — 6.8 KiB ✅
Claude Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Claude Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Claude Live turn WebSocket decoded — 21.9 KiB — 24.4 KiB ✅
Claude Live turn messages — 1 — 8 ✅

Other scenarios

No main baseline exists yet for these 64 scenario measurements.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded — 10.5 KiB — 12.7 KiB ✅
Codex short turn resume WebSocket messages — 2 — 2 ✅
Codex long turn running, cold open HTTP decoded — 281.7 KiB — 302.7 KiB ✅
Codex long turn running, cold open rows — 75 — 75 ✅
Codex long turn running, history page HTTP decoded — 92.4 KiB — 107.4 KiB ✅
Codex long turn running, history page rows — 75 — 75 ✅
Codex long turn finished, cold open HTTP decoded — 381.5 KiB — 410.2 KiB ✅
Codex long turn finished, cold open rows — 151 — 151 ✅
Codex long turn finished, socket cold open WebSocket decoded — 381.6 KiB — 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages — 2 — 2 ✅
Codex long turn finished, socket cold open rows — 151 — 151 ✅
Codex long turn finished, work page HTTP decoded — 186.2 KiB — 200.2 KiB ✅
Codex long turn finished, work page rows — 150 — 150 ✅
Codex idle thread resume WebSocket decoded — 65 B — 200 B ✅
Codex idle thread resume WebSocket messages — 1 — 1 ✅
Codex fleet shell snapshot HTTP decoded — 42.4 KiB — 53.7 KiB ✅
Codex fleet shell snapshot rows — 27 — 27 ✅
Codex fleet shell subscribe WebSocket decoded — 65 B — 200 B ✅
Codex fleet shell subscribe WebSocket messages — 1 — 1 ✅
Codex fleet shell resume check HTTP decoded — 18 B — 100 B ✅
Codex fleet shell resume check rows — 0 — 0 ✅
Codex stale shell reload HTTP decoded — 42.4 KiB — 53.7 KiB ✅
Codex stale shell reload rows — 27 — 27 ✅
Codex stale shell resume WebSocket decoded — 140 B — 400 B ✅
Codex stale shell resume WebSocket messages — 2 — 2 ✅
Codex stale todo list cold open HTTP decoded — 72.4 KiB — 83.0 KiB ✅
Codex stale todo list cold open rows — 75 — 75 ✅
Codex stale todo list cold open nodes — 2 — 4 ✅
Codex stale todo list cold open subagents — 2 — 4 ✅
Codex stale todo list cold open plans — 1 — 2 ✅
Codex stale todo list cold open providerTurns — 1 — 2 ✅
Codex stale todo list cold open checkpoints — 1 — 2 ✅
Claude short turn resume WebSocket decoded — 10.6 KiB — 12.7 KiB ✅
Claude short turn resume WebSocket messages — 2 — 2 ✅
Claude long turn running, cold open HTTP decoded — 283.3 KiB — 302.7 KiB ✅
Claude long turn running, cold open rows — 75 — 75 ✅
Claude long turn running, history page HTTP decoded — 93.4 KiB — 107.4 KiB ✅
Claude long turn running, history page rows — 75 — 75 ✅
Claude long turn finished, cold open HTTP decoded — 384.2 KiB — 410.2 KiB ✅
Claude long turn finished, cold open rows — 151 — 151 ✅
Claude long turn finished, socket cold open WebSocket decoded — 384.3 KiB — 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages — 2 — 2 ✅
Claude long turn finished, socket cold open rows — 151 — 151 ✅
Claude long turn finished, work page HTTP decoded — 188.1 KiB — 200.2 KiB ✅
Claude long turn finished, work page rows — 150 — 150 ✅
Claude idle thread resume WebSocket decoded — 66 B — 200 B ✅
Claude idle thread resume WebSocket messages — 1 — 1 ✅
Claude fleet shell snapshot HTTP decoded — 43.0 KiB — 53.7 KiB ✅
Claude fleet shell snapshot rows — 27 — 27 ✅
Claude fleet shell subscribe WebSocket decoded — 66 B — 200 B ✅
Claude fleet shell subscribe WebSocket messages — 1 — 1 ✅
Claude fleet shell resume check HTTP decoded — 18 B — 100 B ✅
Claude fleet shell resume check rows — 0 — 0 ✅
Claude stale shell reload HTTP decoded — 43.0 KiB — 53.7 KiB ✅
Claude stale shell reload rows — 27 — 27 ✅
Claude stale shell resume WebSocket decoded — 140 B — 400 B ✅
Claude stale shell resume WebSocket messages — 2 — 2 ✅
Claude stale todo list cold open HTTP decoded — 73.4 KiB — 83.0 KiB ✅
Claude stale todo list cold open rows — 75 — 75 ✅
Claude stale todo list cold open nodes — 2 — 4 ✅
Claude stale todo list cold open subagents — 2 — 4 ✅
Claude stale todo list cold open plans — 1 — 2 ✅
Claude stale todo list cold open providerTurns — 1 — 2 ✅
Claude stale todo list cold open checkpoints — 1 — 2 ✅

Baseline: unavailable · PR result: 60dee93 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge

juliusmarminge commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Rerun of the pipeline A/B on an idle cups (load ~1–2), with the merged noise floors from #41370. Merge base 9f24cac vs this head 804a974, ab --only pipeline --rounds 5:

metric before after change 95% interval
pipeline.toRequestMs.median 2618 2640 +1% -57 to 114
pipeline.toRequestMs.p90 2776 2786 +0% -59 to 184
pipeline.turnEndMs.median 1122 812 -28% -368 to -268
pipeline.turnEndMs.p90 1270 1133 -11% -172 to -63 noisy
pipeline.msPerTurn 3985 3734 -6% -383 to -100
pipeline.loopDelayP99Ms 22.2 23.1 +4% -0.7 to 1.7
pipeline.loopDelayMaxMs 47.3 48.1 +2% -113.7 to 36.5 noisy
pipeline.gcPauseMs 1102.7 1051.5 -5% -229 to 164 noisy

The +50% GC pause from the first run does not reproduce: −5%, and the A/A runs mark GC pause too noisy to gate on. Turn end (reply's last byte → finished run) is 28% faster with an interval well clear of zero, and time per turn drops 6%.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge and others added 2 commits November 23, 2026 11:47
@juliusmarminge @claude
perf(server): runs finish when the provider turn ends, not after chec…
bec1b5c
…kpoint capture

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
fix(server): forks wait for the source's capture; replay scenarios se…
60dee93
…ttle after capture

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge
juliusmarminge force-pushed the t3/async-turn-checkpoint-capture branch from 804a974 to 60dee93 Compare November 23, 2026 20:05
@juliusmarminge
juliusmarminge marked this pull request as ready for review November 23, 2026 22:03
@juliusmarminge
juliusmarminge merged commit e3ac310 into main Nov 23, 2026
75 of 96 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge deleted the t3/async-turn-checkpoint-capture branch November 23, 2026 22:10
@coderabbitai coderabbitai Bot mentioned this pull request Nov 23, 2026
fix(server): checkpoint capture no longer throws on an undefined stop flag #41709
Merged
@t3dotgg t3dotgg mentioned this pull request Nov 23, 2026
fix(server): main builds again after the Stop and turn-end changes crossed #41717
Closed
juliusmarminge added a commit that referenced this pull request Nov 23, 2026
@juliusmarminge @claude
fix(server): a Stop accepted after the turn ends still interrupts the…
c7bbfa3
… run

Since #41362 a run settles as completed when its provider turn ends, and
commands treat it as waiting until its checkpoint capture commits. A Stop
accepted in that window stored only its request, so the run stayed completed.
Checkpoint capture now looks for that pending Stop on completed runs too and
settles the run as interrupted with its result, as #41685 intended.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
sandscooling pushed a commit to sandscooling/t3code that referenced this pull request Nov 23, 2026
@kevlingo @claude
Merge remote-tracking branch 'origin/main' into kevlingo/features
e74076b
Sync 1123c: 54 upstream commits. Two conflicts: DesktopBrowserHost.ts
keeps the fork's key routing beside upstream pingdotgg#41611's iframe click
routing; upstream's per-tab frameSessions map replaces the fork's
trackFrameSessions bookkeeping, which is deleted, and the fork's key
routing now reads upstream's map. Orchestrator.ts keeps the fork's
settle-cascade wrapper with upstream pingdotgg#41362's capture wait at the top.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Bil0000 Bil0000 mentioned this pull request Nov 23, 2026
feat(antigravity): /swarm shows as a live workflow on web and mobile, with a Swarm toggle #41584
Closed
chomamateusz-agent added a commit to chomamateusz/t3code that referenced this pull request Nov 24, 2026
@chomamateusz-agent
🚚 Carry the series onto upstream 85aaef4
0707111
0005 machine filter: persisted state follows upstream's removal of the changed-files expansion state (pingdotgg#41317).
0007 project row: uiStateStore follows pingdotgg#41317; Sidebar.tsx keeps upstream's buildSidebarProjectPickerEntries import (pingdotgg#41554).
0008 new threads in the filter: Sidebar browser test imports merged with upstream's environments mocks (pingdotgg#41554).
0015 read/unread: Mark unread also requires a runtime that is not running, upstream's rule from pingdotgg#41365, for card and menus.
0020 ask-only links: link codes require the access they hand out (pingdotgg#41742), with ask needing orchestration:read; a question leaves a send-recreated worktree's setup for the next ordinary turn (pingdotgg#30773); linked-question delivery test waits for completed runs (pingdotgg#41362).
@pauldupuyjr pauldupuyjr mentioned this pull request Nov 24, 2026
fix(server): webhook filters treat a null wildcard list as empty #41715
Merged
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 24, 2026
Mika Hertler @claude
test(server): let the first run's checkpoint capture finish in the sw…
bca6658
…itch-wait tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Three tests sent right after the first run went idle,
so their sends queued behind that run instead of reaching the background-work wait they test.
They drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 24, 2026
Mika Hertler @claude
test(server): let the first run's checkpoint capture finish in the wa…
4820473
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ethanlee66 ethanlee66 mentioned this pull request Nov 24, 2026
chore: sync upstream pingdotgg/t3code main (288 commits) ethanlee66/t3code#9
Merged
@patroza patroza mentioned this pull request Nov 24, 2026
Merge upstream main through 2fe7febc8d73 patroza/t3code#671
Merged
@adampeterhiggins adampeterhiggins mentioned this pull request Nov 24, 2026
chore(sync): merge upstream/main into fork adampeterhiggins/t3code#599
Merged
@orbitingflea orbitingflea mentioned this pull request Nov 24, 2026
fix(fork): resolve upstream merge e9c952495c (2026-11-23) orbitingflea/t3code#284
Merged
@aabdel0181 aabdel0181 mentioned this pull request Nov 24, 2026
chore: sync with upstream t3code (2026-11-28) aabdel0181/ominax#230
Open
@orbitingflea orbitingflea mentioned this pull request Nov 24, 2026
fix(server): capture the checkpoint when a steer restarts a run at turn end orbitingflea/t3code#289
Merged
aabdel0181 added a commit to aabdel0181/ominax that referenced this pull request Nov 24, 2026
@aabdel0181 @claude
test(server): side-chat harness waits for a completed run's checkpoin…
2113f4f
…t capture

Upstream pingdotgg#41362 writes a run completed when the provider turn ends, before
its checkpoint capture. A test that went on after "completed" raced the
capture: the learner's reopening message queued behind it and the parked
check-in test hung. awaitRun now waits for the checkpoint too, as
upstream's OrchestratorScenario does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@andrewcai8 andrewcai8 mentioned this pull request Nov 24, 2026
chore: sync upstream through 8261b23226 andrewcai8/t3code#316
Merged
@juliusmarminge juliusmarminge mentioned this pull request Nov 25, 2026
perf(server): turn starts no longer queue behind checkpoint captures #42537
Closed
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 25, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the sw…
4a40180
…itch-wait tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Three tests sent right after the first run went idle,
so their sends queued behind that run instead of reaching the background-work wait they test.
They drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 25, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the sw…
a12a372
…itch-wait tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Three tests sent right after the first run went idle,
so their sends queued behind that run instead of reaching the background-work wait they test.
They drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 25, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
8a70a66
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 25, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the sw…
f1ceeab
…itch-wait tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Three tests sent right after the first run went idle,
so their sends queued behind that run instead of reaching the background-work wait they test.
They drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 25, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
7c49845
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@eyeveil eyeveil mentioned this pull request Nov 25, 2026
Merge upstream pingdotgg/t3code main through 21a96989b07 issuelt/t3code#117
Merged
@iambinarymind iambinarymind mentioned this pull request Nov 25, 2026
[Bug]: Checkpoint capture hits the 30 s git timeout in large workspaces and never converges; every killed attempt leaves a tmp_objdir-bulk-fsync-* directory behind #26227
Open
polymaniadeveloper-hub pushed a commit to Tevin2119/t3code that referenced this pull request Nov 25, 2026
@Tevin2119 @claude
fix(ci): team-chat queue test no longer waits for a run status that i…
68c8fe8
…s gone

Upstream pingdotgg#41362 finishes a run when its provider turn ends, so runs no
longer pass through "waiting" before "completed". The NativeTeamChat
queue test still waited for "waiting" on each answered turn, so the
contribution and critique cases hung until vitest's 120 s timeout.
It now waits for "completed", then drains the worker, as upstream's
own tests did in that change.

Also formats apps/web/src/routes/profiles.tsx for the Lint check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@polymaniadeveloper-hub polymaniadeveloper-hub mentioned this pull request Nov 25, 2026
chore: sync upstream pingdotgg/t3code Tevin2119/t3code#203
Merged
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
94d0baf
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
e34e4cd
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
3e804a8
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
843afec
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
c706c2c
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
2627fd6
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
82d94ca
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
a510bb0
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 26, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
a0d49d8
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
3mdistal added a commit to 3mdistal/t3code that referenced this pull request Nov 26, 2026
@3mdistal @claude
fixup! limits: keep a session while its run starts, and start buffere…
57581a6
…d wakes in a hold

Upstream's pingdotgg#41362 completes a run when its provider turn ends, and commands treat it as still waiting until its turn-end checkpoint capture commits. The test stopped the effect worker at the first completed update, so the second message queued behind the capture; it now waits for the update that carries the checkpoint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
3mdistal added a commit to 3mdistal/t3code that referenced this pull request Nov 26, 2026
@3mdistal @claude
fixup! pools: mark upstream changes and shrink the upstream diff
f168242
Upstream's pingdotgg#41362 repeats a run's completed update when its turn-end checkpoint capture commits. Two pool tests waited for any completed update after the first run's, and caught that repeat instead of the second run's; they now name the second run's ordinal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
af0ab67
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
88c7a01
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
5138b84
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
dacb705
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
a874f88
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
909a0a2
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
085738a
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
4293505
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MikaMcFlurry pushed a commit to MikaMcFlurry/t3code that referenced this pull request Nov 27, 2026
Mika Hertler @claude @MikaMcFlurry
test(server): let the first run's checkpoint capture finish in the wa…
f339c40
…iting-selection tests

Since upstream pingdotgg#41362 a run completes before its checkpoint capture, and dispatch treats it as
still running until the capture is done. Four tests changed the selection right after the
first run went idle, so the change met that run instead of the waiting run they set up. They
drain the capture first, as upstream's own provider-switch tests now do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
aorwall added a commit to aorwall/t3code that referenced this pull request Nov 28, 2026
@aorwall
chore: merge upstream t3code to e9c9524 (pingdotgg#308)
0cbf7fb
Merges `pingdotgg/t3code` `e9c952495c` (445 commits, from base
`c7a9fba06b`). It branches from `main`; no merge PR was open to stack
on. Land it as a merge commit, not a squash. The first commit re-points
one stale inventory entry before the merge.

**Landed:** 1419 files against 1416 in the upstream range. The 3 extra
are the fork's `features.ts`, `gaps.md` and `inventory.json`. The fork
delta is 786 files. The tracker entry in
`docs/fork/upstream-merge-log.md` has the details.

## Conflicts (16), resolved by verdict
- `AGENTS.md` (`decide`): kept the fork's shape. Every link now points
at upstream's renamed `docs/internals/NN_*` and
`docs/operations/00_development.md`. Upstream's new facts (the Agents
surface rule, marketing i18n, the internal-docs index, the PR and forge
rules) are written in the fork's voice.
- Upstream removed the changed-files card under assistant turns
(pingdotgg#41317). The fork's `turnDiffs` gate on the card went with it, and two
files are now upstream verbatim.
- Upstream moved Add project into the sidebar's project-scope picker
(pingdotgg#33057). The `FEATURES.projectManagement` gate moved onto that picker
item.
- The new Labs **Workflows** row sits inside the
`serverBehaviorSettings` gate, with its search id. **Agent feedback**
hides itself because the backend does not report the capability.
- The archived-threads title `Link` moved into upstream's new
`renderRow`.
- `agentContextBudget.json` takes the measured value, `61817`, which is
upstream plus 108.
- The rest kept both sides. The auto-merged lockfile was broken, so I
took upstream's copy and re-installed it.

## Fixes made during verification
- `terminalSessions.ts`: upstream's new labels atom now reads the fork's
`.terminals`, which fixes a typecheck error.
- `FeedbackReport.ts`: dropped `t3 pair`, because the fork deletes that
command and upstream's new CLI test checks the list.
- `test/fakeEnvironment.ts`: now advertises `attachmentUploads: true`.
ChatView still gates uploads on that capability, and without it
upstream's pingdotgg#41021 phone-attach test fails. It passes on pure upstream
and on this branch.
- `rpc.ts`: added 10 `UnsupportedMethodError` entries for `workflows.*`
and `agentFeedback.answerRequest`. I deleted 2 stale review-guide
exceptions, because Moatless removed that feature in
soaplabs/moatless#1576.

## Verification
`verify.mjs` is green on duplicate-adds, tripwires, resolution-check,
unsupported-methods, lockfile, fmt, lint, typecheck and build.

Tests: every package passes except failures already registered as
sandbox gaps in `gaps.md`:
- ssh `tunnel` and opencode `OpenCodeServerLedger`.
- In t3: `ServerBrowser*`, the `/tmp` sticky bit (`CodexChatGptAuth`,
`CodexManagedRuntime`), `insteadOf` (`GitVcsDriver*`,
`RepositoryIdentityResolver`) and `AntigravityInstallation`.
- Also in t3, three files fail only because the sandbox runs Node 24:
`Orchestrator.control-reads` and `ProjectionStore` call
`StatementSync.stat`, and `outboundHttp` hits a `setTypeOfService`
probe.

Web ran with a fetched headless shell: 672 of 674 files passed in the
full run. The two `FilePreviewPanel` scroll cases pass when run alone.
The `ChatView` case was the fixture fix above, and that file now passes
19 of 19.

The commit used `--no-verify`, because the pre-commit knip hook fails on
the 27 fork exports already recorded in `gaps.md`.

**After merging:** two new upstream workflows arrive enabled. Disable
them:
`gh workflow disable mobile-eas-preview-build.yml --repo
soaplabs/t3code` and `gh workflow disable
mobile-eas-production-build.yml --repo soaplabs/t3code`.

## Usable as-is
- HTML preview width setting (pingdotgg#41663).
- File preview fixes for Office, RTF, ODF, EPUB, TIFF, notebooks, PDF
and relative Markdown images, plus chunked loading of large files
(pingdotgg#40631 and others).
- Composer fixes: drop, Word paste, text plus picture, image uploads
finishing before send, the queued-edit chips, the phone attach fix
(pingdotgg#41021).
- Esc and IME handling across dialogs and search fields (about 20
commits).
- Keybinding fixes (pingdotgg#41231, pingdotgg#41630, pingdotgg#24034).
- Terminal copy without a selection no longer types escape codes
(pingdotgg#41702).
- Thread open lands at the end, and panel resizes keep the reading
position (pingdotgg#41843, pingdotgg#41184).
- Mark unread is hidden before a run has completed (pingdotgg#41365).
- Add project in the project picker (pingdotgg#33057), gated.
- Sidebar rows show the environment (pingdotgg#40736).

## Unsupported in Moatless / needs implementation
- **Durable workflows** (pingdotgg#38882, pingdotgg#38884): the `workflows.*` RPCs (9) and
the `workflowsEnabled` server setting. Moatless has no workflow runner.
The Labs row is gated and the union entries are added. See the gaps
entry.
- **Agent feedback** (pingdotgg#35871): `agentFeedback.answerRequest` and
`capabilities.agentFeedback`. It needs a feedback tool and report store
in Moatless. The union entry is added.
- **Review guides**: `pullRequests.reviewGuide` and
`generateReviewGuide` are refused again since soaplabs/moatless#1576.
Recorded in gaps.
- **Milestones over MCP events and webhooks** (pingdotgg#40774, pingdotgg#41141), and
OAuth `revoke` for MCP. These belong to the existing "no MCP server"
gap.
- **Multiple Linear accounts** (pingdotgg#39179,
`capabilities.issueTrackerAccounts`) and GitHub issue statuses (pingdotgg#41795).
Moatless serves one Linear app per Workspace.
- **Stack auto-merge** (pingdotgg#41809, `stackAutoMerge`). Moatless's `stack`
answers no stack.
- **`server.probe` `serverTime`** (pingdotgg#41037). Moatless omits it, so
clients use their own clock.
- **`GitRefName` validation** on ref fields. It is decode-time, so check
that Moatless ref names pass it.

## Backend behavior to consider reproducing in Moatless
Also recorded as a new range bullet under "Runtime fixes upstream made
to its own server" in `gaps.md`.
- **Run lifecycle:**
- A run finishes at the provider turn end, not after checkpoint capture
(pingdotgg#41362).
- An accepted Stop is not "completed", and cancellations survive capture
(pingdotgg#41685, pingdotgg#31349).
  - Settling does not end background work the agent waits on (pingdotgg#31449).
  - Queued messages survive a restart-cancelled run (pingdotgg#41307).
- **Delegation:**
- A declined steer of a delegated completion still wakes the parent
(pingdotgg#41521).
- A stopped parent is told which delegated tasks the Stop interrupted
(pingdotgg#34499).
- **Deleted threads:** snapshot, transcript and resume report the thread
missing (pingdotgg#41866, pingdotgg#41874).
- **Settlement and cleanup:** threads with an open PR branch are kept
(pingdotgg#41116), and merged subagent worktrees are cleaned up (pingdotgg#41694).
- **Sessions and transport:**
  - Idle provider sessions are freed after 2 minutes (pingdotgg#41174).
  - Request bodies default to a 1 MiB limit (pingdotgg#41747).
  - Early requests get a 503 while startup runs (pingdotgg#41627).
- An idle `/ws` behind a proxy no longer drops every 60 seconds
(pingdotgg#40932).
- **Git:** checkpoint capture no longer walks every reflog (pingdotgg#41177), and
T3's own git commands do not start auto maintenance (pingdotgg#41200).
- **Pull request reads:** a PR refused for conflicts shows as
conflicting (pingdotgg#41500), and superseded cancelled checks no longer block
watches (pingdotgg#30434).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
Moatless task:
https://moatless.soaplabstest.com/tasks/aa56f843-8631-434a-8f8b-8c62546ba74b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.