Skip to content

chore: sync upstream through 0702c6fdca - #310

Merged
andrewcai8 merged 236 commits into
mainfrom
sync/upstream-0702c6fdca
Nov 20, 2026
Merged

andrewcai8 merged 236 commits into
mainfrom
sync/upstream-0702c6fdca

Conversation

@andrewcai8

@andrewcai8 andrewcai8 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Why

Keep the fork current with upstream. This merges 234 upstream commits (a1e7ac2..0702c6f), and upstream CI is green on 0702c6f. Merge with a merge commit, not a squash.

Notable upstream changes

Conflict resolutions (23 files)

  • Scheduled tasks (contracts, server, web, mobile): kept the fork's target (local or cloud machine) and the rule that a cloud target needs new_thread. Added upstream's unbindThread on every editor.
  • ProviderCommitBatch: took upstream's batching rewrite (per-stream queues, focus ranking, combining). Re-added the fork's 100 ms linger as one lingerForMore step before each nextBatch, with the fork's early exit when a write waits or the batch is full. Upstream's backlog tests run with zero linger.
  • ProviderTurnStartService: the fork still joins queued automated messages into the starting turn. Upstream's sender note now appears on each joined message.
  • ClaudeAdapterV2: kept the fork's limitedEmptyTurn and added upstream's resultResetAt filter.
  • MCP project handlers: kept the fork's fleet routing for t3_thread_launch/t3_project_list, and moved in upstream's provider-config model check and the withSavedProjectSettings rename.
  • GitVcsDriver: kept upstream's gitSupportsRemergeDiff and the fork's checkpoint scratch-dir option.
  • client-runtime supervisor: took upstream's switch to Effect.exit and kept the fork's box supervisor options.
  • Web and mobile: took upstream's tryOpenExternalUrl and its plain GitActionsControl import. Kept the fork's stop-cloud-machine menu item and gave Rename upstream's canRename gate.

Fork code adapted to upstream API changes

  • AtomCommand.run now returns an Effect, so recoverOfflineThreadLifecycle uses Effect.catchIf and commandPermissions.test.ts uses Effect.exit.
  • server.ts: upstream's extra HTTP middleware pushed the routes pipe past 20 steps, so it is split in two. Behavior is unchanged.
  • Fork test fakes gained what upstream's registry now needs: ModelManifest.layerTest, an instance snapshot, and the ProviderHost.compatibility field. core.test.ts uses notHomeLayer for upstream's t3_background_wait.
  • SteeringCompletion.integration.test.ts: upstream's new compact-queue test expects agent messages as separate turns, but the fork deliberately joins them (54e079c). The test now checks the ordering that behavior protects.
  • ForkMigrations.test.ts lists 101 and 102. agentContextBudget.json is 64362 bytes (measured), so this PR needs agent-context-increase.

Verification

  • Typecheck is clean in server, web, mobile, desktop, client-runtime, contracts, shared, provider-core, provider-cursor, source-control-github, scripts and evals.
  • vp lint passes on all 744 files that differ from upstream (warnings only). vp fmt --check, knip:check, i18n-check and vp i --frozen-lockfile pass.
  • Targeted tests pass: server lane files (commit batch 29, turn start and MCP core 127, provider switch 88, account switch 6, steering 70, plus about 2,600 in two broader batches), mobile 811, client-runtime 1,405, web logic 35 and browser 10.

Not verified

  • 5 server tests failed locally on macOS: 3 GitVcsDriver checkpoint bulk-staging, 1 GitVcsDriverCore /private/var path, and 1 AgentSessionScanner symlink. Neither side changed them, so they are expected to be macOS-only. CI is the check.
  • The extra latency the linger adds to a viewed thread's first snapshot under upstream's ranking was not measured.

Independent review

An Opus verifier reviewed --remerge-diff and returned PASS+NOTES. It found no lost wakeup, stuck barrier or double count in the commit-batch linger. Upstream added no new releaseEntry callers and no new environmentId MCP tools, and migrations 101 and 102 don't collide with fork migrations 008-010.

Follow-ups

Deploy note

Migration 101 partially indexes runs and messages. Migration 102 backfills from turn_item_counts and indexes runs. On the mini PC that is about 158k runs and 820k messages, not the 5.9M turn items that made migration 099 take 30 minutes. Expect minutes (inferred, not measured).

🤖 Generated with Claude Code

StiensWout and others added 30 commits November 19, 2026 07:52
…ion model (pingdotgg#39157)

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

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…the same PR (pingdotgg#39171)

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

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

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

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

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…lapse all (pingdotgg#39213)

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

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

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

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nal closed (pingdotgg#39260)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ActivePort write (pingdotgg#38727)

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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… actions (pingdotgg#31545)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
juliusmarminge and others added 22 commits November 20, 2026 07:25
…gg#39733)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…t off (pingdotgg#39755)

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

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

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

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Merges 234 upstream commits (a1e7ac2..0702c6f), including
migrations 101 (delegated-task read indexes) and 102 (thread item
counts).

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 20, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 20, 2026
@github-actions

Copy link
Copy Markdown

This PR changes the test suite by +228 test cases (browser +19, unit +108, server +101).

New browser test files: apps/web/src/components/ProjectScriptsControl.browser.test.tsx, apps/web/src/components/PullRequestThreadDialog.browser.test.tsx, apps/web/src/components/chat/VoiceInputSetup.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.

@github-actions github-actions Bot added the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

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: cd8a66b · PR result: 5bc43a4 · 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andrewcai8
andrewcai8 merged commit 9e65e61 into main Nov 20, 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 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. 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.