Skip to content

chore: sync upstream through 8261b23226 - #316

Merged
andrewcai8 merged 309 commits into
mainfrom
sync/upstream-8261b23226
Nov 24, 2026
Merged

andrewcai8 merged 309 commits into
mainfrom
sync/upstream-8261b23226

Conversation

@andrewcai8

Copy link
Copy Markdown
Owner

Why

Bring the fork up to upstream's newest green commit, 8261b23: 307 commits since 7182abe (#314).

What changed

Notable upstream changes:

How the 18 conflicts were resolved:

  • Spawning: upstream's ProcessLauncher now covers what the fork's SpawnHost did. Keeping both would start two helper processes on Linux. SpawnHost, spawnHostProcess.ts, its test and the __spawn-host entry are deleted, and SpawnWorker.layerServer matches upstream again. ProcessGroupMetrics counts the launcher (process-launcher) and its children as the server, as it did for SpawnHost.
  • t3_thread_launch: upstream's registered worktree path and model-option validation are ported into the fork's viaFleet body.
  • GitVcsDriver: both kept. The fork's in-memory checkpoint index sits beside upstream's private LFS storage.
  • Web: ScheduledTasksSettings keeps the fork's target and cloud hint and takes upstream's modelSelection. TimelineAssistantRows takes upstream's trimmed imports plus SponsoredLine.
  • Catalogs: three-way merged by key, then i18n:generate in web and mobile. The agent context budget is the fork's value plus upstream's +120 bytes. ForkMigrations.test.ts adds 111.

Verification

  • vp run typecheck in all 12 packages with fork-diff files. apps/server exits 2 on this branch and on main alike, with only schemaClassMissingBrand suggestions and no errors. The rest pass.
  • vp lint on all 747 files that differ from upstream reports no errors. The two warnings also appear on main. knip:check and i18n-check pass.
  • Full apps/server suite: 11,255 passed. Each file with a failure also fails on main on this Mac (APFS, tmpdir and timing tests). Targeted web tests for the timeline and scheduled tasks: 239 passed.

Blast Radius

Deploying runs migration 111 (one index build) and moves Linux spawning from SpawnHost to ProcessLauncher. After deploying, check on the PC that the server process itself forks about zero times.

Follow-ups

🤖 Generated with Claude Code

juliusmarminge and others added 30 commits November 23, 2026 15:40
…tgg#41725)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…inds (pingdotgg#41730)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tgg#30280)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…1746)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…out (pingdotgg#41742)

Getting a link code through a linked environment now requires the scopes
of the access level requested, and creating a guest link requires
orchestration:read, in addition to access:write. The link dialog offers
linking through another environment only when the session holds them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ans stay linear (pingdotgg#41747)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…n readiness (pingdotgg#41752)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ts directly (pingdotgg#41753)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ader (pingdotgg#41756)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…gdotgg#41737)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#30773)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#31169)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ups open web links only (pingdotgg#41757)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…t on (pingdotgg#41761)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…tgg#41769)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…that use them (pingdotgg#41765)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…gdotgg#41749)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…shares are handled more strictly (pingdotgg#41767)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…otgg#41773)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ir trailing space (pingdotgg#41760)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#30253)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… is always consumed (pingdotgg#41778)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ows directory (pingdotgg#41782)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…dotgg#41652)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
tyler-bruno-lovable and others added 22 commits November 24, 2026 09:18
pingdotgg#42263)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#42266)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…review (pingdotgg#42276)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…alette (pingdotgg#42279)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… longer become headings (pingdotgg#42287)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#42303)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…lashes (pingdotgg#42301)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…2314)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#42321)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…rsor (pingdotgg#42312)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#42329)

Co-authored-by: opus-5.5 <me+ai@stefanmirea.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Merges 307 upstream commits. Upstream's ProcessLauncher (pingdotgg#31488) now keeps
Linux forks off the server, so the fork's SpawnHost is removed and the
resource telemetry counts the launcher's children as the server's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andrewcai8 andrewcai8 added the agent-context-increase Accept agent context growth in agentContextBudget.json label Nov 24, 2026
@andrewcai8

Copy link
Copy Markdown
Owner Author

Verifier verdict: PASS+NOTES

Reviewed merge 61ea5f5 (parents 9d04583, 8261b23) against upstream with git diff 8261b23226 61ea5f5674 and upstream's own 7182abeeaa..8261b23226 changes.

1. SpawnHost removal / ProcessLauncher

  • apps/server/src/process/ has no diff from upstream, so SpawnWorker.layerServer and ProcessLauncher match upstream exactly. git grep finds no reference to SpawnHost, spawnHostProcess or __spawn-host anywhere outside .repos.
  • Routing: server.ts wraps layerHttpServer with ProcessLauncher.layerServer via provideMerge (upstream), layerPlatformServices does the same, and runServer provides it once more. layerServer is a single memoized layer, so there is one launcher. Its hosted spawner is NonBlockingSpawner (the GNU env -C trampoline) over the launcher's spawnProcess. The fork's nodeHttpServer.ts also drops the NodeServices spawner from the HTTP layer, so services built under the HTTP server get the launcher's spawner either way.
  • The fork's direct node:child_process users (forkExec, namespace*, skillBundleSync, ClaudeProvider) never went through SpawnHost either, since SpawnHost was only a ChildProcessSpawner layer. Coverage is unchanged.
  • ProcessGroupMetrics: the launcher is spawned directly by the server (ppid = server). Its argv contains process-launcher in all three forms: dist/process-launcher.mjs, src/process-launcher.ts (from source), and <exe> __process-launcher (single executable, handled in bin.ts). Launcher children are env -C exec'd, so their ppid is the launcher. Detection is correct, and the new test covers it.

2. t3_thread_launch

All of upstream's changes are in the local (non-fleet) branch of the viaFleet body: projectWorktreePath returning the registered path, the rebound workspaceStrategy (used for cwd, requestedStrategy and the fallthrough), validateSelection with validateModelOptions, and validatedModelSelection ?? launchedModel ?? .... The fork's scratch, Home watch, refuseHomeFolder and runAsHome paths are intact.

3. GitVcsDriver checkpoint capture

tempIndexPath is the memory dir when one is usable, otherwise the git dir. It is computed independently of privateLfs / publishLfsObjects, which still live under privateObjects. GIT_INDEX_FILE, the lfs.storage config env and the index/lock cleanup all use the merged values. They coexist correctly.

4. Web

ScheduledTasksSettings keeps the fork's target / destinationRules / cloud hint and takes upstream's modelSelection draft, createModelSelection and TraitsPicker. splitModelKey and baseModelSelection are fully gone. TimelineAssistantRows differs from upstream only by SponsoredLine.

Tests (this Mac)

  • apps/server targeted: processRunner, process/, ProcessGroupMetrics, nodeHttpServer, mcp/toolkits/project/, ProviderTurnStartService, ForkMigrations, GitVcsDriver. 348 passed, 4 failed. Three are the known GitVcsDriver "checkpoint bulk staging cleans operation-owned packs" cases. The fourth is SpawnWorker "preserves stdin, large output, env, cwd..." (/private/var vs /var tmpdir). It fails identically on the main checkout, and src/process/ is byte-identical to upstream, so the merge did not introduce it.
  • apps/web (--maxWorkers=2): ScheduledTasksSettings browser + logic, MessagesTimeline browser + logic: 239/239 passed.
  • vp run typecheck in apps/server: exit 2, with only schemaClassMissingBrand suggestions and no errors (same as main).

Notes (non-blocking)

  • apps/server/src/nodeHttpServer.ts now looks redundant with upstream's ProcessLauncher.layerServer.pipe(Layer.provideMerge(layer)) wrap on layerHttpServer. It is harmless; consider deleting it in a follow-up once the PC confirms that the server forks about zero times.
  • The Home/remote launch branch forwards input.modelSelection and input.workspaceStrategy unvalidated to runAsHome (pre-existing fork behavior; the receiving environment validates).
  • The SpawnWorker tmpdir test fails on macOS (base has it too).

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown

This PR changes the test suite by +358 test cases (browser +67, unit +157, server +134).

New browser test files: apps/web/src/components/auth/PairingRouteSurface.browser.test.tsx, apps/web/src/components/diffs/DiffCommentAnnotation.browser.test.tsx, apps/web/src/components/files/PreviewImageContent.browser.test.tsx, apps/web/src/components/pullRequest/PullRequestReviewAnnotation.browser.test.tsx, apps/web/src/components/pullRequest/PullRequestsColumn.browser.test.tsx, apps/web/src/components/settings/OpenSourceLicenses.browser.test.tsx, apps/web/src/components/settings/ProjectIconPickerDialog.browser.test.tsx, apps/web/src/components/settings/TextGeneratorsSettings.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

Upstream's new layout-commands test serves WsRpcGroup, which on the fork
also holds the Home, fleet and cloud handlers that layerWsRpc does not
provide. Like the fork's other RPC tests, it now serves CoreWsRpcGroup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

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

Other scenarios

All 64 scenario measurements match main.

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

Baseline: 9d04583 · PR result: 92805a5 · 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.

@andrewcai8
andrewcai8 merged commit 82b02b5 into main Nov 24, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accept agent context growth in agentContextBudget.json size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.