Skip to content

chore: sync fork with upstream (2026-11-23) - #45

Merged
syz51 merged 145 commits into
forkfrom
fork-sync-20261123
Nov 23, 2026
Merged

syz51 merged 145 commits into
forkfrom
fork-sync-20261123

Conversation

@syz51

@syz51 syz51 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Daily upstream sync: merges upstream/main (65b2e6d, 141 commits) into fork.

Conflict resolutions

  • Package files (package.json, pnpm-lock.yaml, pnpm-workspace.yaml, .pnpmfile.cjs): regenerated from upstream with scripts/fork-convert-to-bun.ts and bun install.
  • scripts/check-changed.ts: kept upstream's new apps/web/deps entry; kept the fork's bunfig.toml in place of .pnpmfile.cjs.
  • ProviderSessionManager.ts: upstream re-keyed idleThreadUnloads by provider thread id and inlined the undelivered-child check. Kept the fork's probePendingBackgroundWork (it also checks hasUndeliveredWake) and holdsUndeliveredChild, which now reads threadId from the map values.
  • cli/thread.ts: took upstream's Object.assign thread merge and its system role; kept the fork's runId ?? null, because fork tool items omit runId.
  • Runtime instructions (runtimeInstructions.ts, Claude/Codex/OpenCode adapters, evals/mcp-tool-use/run.ts): kept both the fork's delegatedChild PR block and upstream's agentFeedback line. The feedback line follows the PR block, as upstream places it.
  • ChatMarkdown.tsx: took upstream's per-block link cache and the removal of math from the code component. The cache, its key and the island check now use the fork's baseDir/rootDir (worktree-aware file links) in place of imageBaseDir.
  • Tests (runtimeInstructions.test.ts, PullRequestWatchService.test.ts, gitHubPullRequestJson.test.ts): kept the fork's and upstream's new cases.
  • agentContextBudget.json: set to measured values. mcpToolListJsonBytes grew by 1322, the same as upstream's growth (59052 → 60374), so the agent-context-increase label applies.

Fork fixes

  • fix(fork): upstream's memoized resolveInlineCodeFileLinkMeta dropped the fork's rootDir, so markdown-links.test.ts failed. rootDir now passes through and is part of the cache key.
  • fix(fork): upstream's exit wake (fix(server): wake the agent when Claude exits while it awaits background work pingdotgg/t3code#30214) found no lost work when an awaited task was stopped before Claude exited, because the fork drops a stopped task from the roster at once. Two ClaudeAutomaticDelivery.integration.test.ts cases hung. The adapter now keeps the stopped task's listed entry and counts it as lost on an unexpected exit when the agent awaited it. A second commit keeps the entry only for a stop that arrived with no turn running, because a turn already shows Claude the stop.

Checks

vp run check:changed upstream/main: format, lint, knip and typecheck pass. Locally, two ChatMarkdown.permissions.browser.test.tsx cases fail on macOS, because Chromium there opens no context menu on Shift+F10. CI runs them on Linux.

Opus 5.5 (claude-opus-5-5) in Claude Code, through T3 Code.

juliusmarminge and others added 30 commits November 21, 2026 17:06
…ests (pingdotgg#40634)

Co-authored-by: Mostafa El Ayoubi <20224923+MostafaElAyoubi@users.noreply.github.com>
pingdotgg#40633)

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

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

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

Co-authored-by: Geezy <igor.licko@gloryck.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…e per turn (pingdotgg#40671)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… drops its prompt (pingdotgg#40670)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ared tooltip; remark leaves the web app (pingdotgg#27866)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Gemini 4 Neon <noreply@google.com>
Co-authored-by: Noah Sigel <noah.sigel@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…-foreground-muted (pingdotgg#40676)

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

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…not generate text (pingdotgg#40699)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…s the draft (pingdotgg#40708)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: charlesbine <charlesbine@users.noreply.github.com>
…ow or steer survive a dropped socket (pingdotgg#40703)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…n a broken character (pingdotgg#40726)

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…anch (pingdotgg#40736)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
tiliakoos and others added 21 commits November 22, 2026 13:08
…r holds new messages (pingdotgg#41052)

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

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

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

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

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…gg#41122)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…am's memo cache

Upstream's memoized resolveInlineCodeFileLinkMeta dropped the fork's rootDir argument, so code spans in an agent's worktree resolved against the wrong root. Pass rootDir through and include it in the cache key.
@syz51 syz51 added the agent-context-increase Accept agent context growth in the budget check label Nov 23, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown

This PR changes the test suite by +210 test cases (browser +16, unit +89, server +105).

New browser test files: apps/web/src/components/Sidebar.motion.browser.test.ts, apps/web/src/lib/pageTranslationGuard.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 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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: f9af3a1 · 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.

Upstream's exit wake (pingdotgg#30214) lists awaited work the exited Claude process took
with it. The fork drops a stopped task from the roster at once, because Claude
may open no wake for it, so the exit found nothing and the agent stayed asleep.
The fork now keeps the stopped task's listed entry and counts it as lost on an
unexpected exit when the agent awaited it.
A stop that arrives during a turn reaches Claude in that turn, so a later
unexpected exit must not wake the agent for it again.
@syz51
syz51 merged commit 02a7615 into fork Nov 23, 2026
33 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 the budget check 📱 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.