Skip to content

chore(fork): merge upstream main - #111

Open
joaoheusi wants to merge 543 commits into
mainfrom
t3/merge-upstream-main-23
Open

joaoheusi wants to merge 543 commits into
mainfrom
t3/merge-upstream-main-23

Conversation

@joaoheusi

Copy link
Copy Markdown
Owner

Brings the fork up to pingdotgg/t3code main at a5d86e6382. That is 540 upstream commits: 27 features, 35 performance changes, and about 460 fixes.

Merge this with a merge commit. Do not squash it.

What upstream adds

  • Durable workflows on the server, with web and mobile UI (feat(server): durable workflows, feat: workflows on web and mobile).
  • A project can cover several repositories. Tracked folders give each task its own task folder or worktree.
  • Agent feedback: when you turn feedback on, agents can report T3 Code problems.
  • Outside agents get milestones through MCP event polling, streams, and webhooks.
  • Issues: you can connect more than one Linear account. GitHub issues follow GitHub's issue statuses.
  • Auto-merge a stack through GitHub's includeStack.
  • Feature flags come from one T3CODE_FEATURE_FLAGS setting. A TanStack Source forge sits behind a flag.
  • Web: the sidebar folder button picks or adds a project. Thread rows show the environment instead of the branch. The changed-files card under assistant turns is gone.
  • Mobile: "favorites only" is now its own model filter.
  • Performance: many changes to git status, push, branch list and diff (fewer git processes), event replay (about 2x faster), streamed thread snapshots, and freeing idle agent sessions.
  • Server metrics scripts for CPU, memory and reconnect regressions.

Fork adaptations

  • Upstream migrations 104–111 become fork ids 110–117. The upgrade and contiguity tests are extended to match.
  • Worktree repositories now use upstream's { path }[] shape. Scheduled tasks stored by the fork as plain path strings still decode. The web and mobile task editors convert at the edge.
  • Upstream's fix "Push on the default branch no longer commits" (a5d86e6) is ported to the fork's shared quickActionGit.ts.
  • New upstream tests are adapted to the fork's names (j4code command, j4code.service), its 72 default shortcuts, its multi-repository diff guard, and its post-push tracking-ref repair.
  • The "needs input" check in wait_for_thread and hasPendingRequest now counts only live requests, the same as upstream fix(mcp): a child's async question no longer keeps its parent polling pingdotgg/t3code#40604. A question answered later by message no longer counts as blocking.
  • agentContextBudget.json is set to the measured MCP tool list size of 61294 bytes. That is below upstream's 61709.

Needs your decision

  • Two multi-repository UIs. Upstream's tracked-folder picker and the fork's repository control now sit side by side on web (BranchToolbar, thread details) and on mobile (new-task composer). They should probably be unified.
  • Mobile route rename. Upstream's picker uses the new route NewTaskWorktreeRepositories (new/draft/worktree-repositories), because the fork already uses NewTaskRepositories.
  • Folder project routing. A folder project that tracks folders and also has fork scheduled-task repositories now goes to upstream's task-folder path.
  • Mobile Git quick action. It now shows its result notice only when a thread exists, because upstream keys results by thread.
  • hostAnswered. It is now set on RPC-mapped socket errors as well, not only on disconnects.

Verification

  • Typecheck is clean for server, web, mobile, desktop, contracts, client-runtime, shared, provider-muse and evals.
  • Format, lint, knip, i18n check and the React Compiler check pass.
  • Tests pass for client-runtime, mobile, web unit, desktop and source-control-github. Targeted web browser tests pass.
  • The server suite has 10010 passing tests. Every remaining failure also fails on this Mac on fork main or on pure upstream: triage /private/var paths, symlink and process tests, checkpoint pack cleanup, the git lane test, and ssh tunnel scripts. Two theme and ChatView tests failed only under load and pass when run alone.
  • check:changed ran. The failures it reported are the local ones above, the evals import (fixed), and a server typecheck that was killed for memory under parallel load (it passes alone).

Made with Claude Opus 5.5 in Claude Code (T3 Code).

only21mil and others added 30 commits November 22, 2026 20:40
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…atalogs (pingdotgg#41214)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ance (pingdotgg#41200)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…uest regressions (pingdotgg#41159)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…tgg#41243)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…otgg#41242)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…er each request (pingdotgg#41238)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… scrolls out (pingdotgg#41263)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…tgg#25208)

Co-authored-by: Yukun Shan <92423096+nateEc@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…story (pingdotgg#41264)

Co-authored-by: Cursor <cursoragent@cursor.com>
…ingdotgg#26965)

Co-authored-by: jason chien <3936511+jason5545@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#24034)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#41260)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ing reads (pingdotgg#41276)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Yash-Singh1 and others added 25 commits November 23, 2026 19:15
…dotgg#41784)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… server was stopped (pingdotgg#41813)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ingdotgg#41787)

Co-authored-by: spoukyii <61633921+spoukyii@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…time env (pingdotgg#30688)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…out closing the sheet (pingdotgg#41790)

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

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

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

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
…he sheet (pingdotgg#41815)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…cter (pingdotgg#41838)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ain-23

Brings in 540 upstream commits up to a5d86e6.

Fork adaptations made while resolving:
- Upstream migrations 104-111 become fork ids 110-117.
- Worktree repositories use upstream's { path } shape; fork scheduled-task
  editors map plain paths at the edge, and stored string lists still decode.
- Upstream's default-branch Push fix (a5d86e6) is ported to the fork's
  shared quickActionGit module.
- Fork names (j4code command, j4code.service) kept in new upstream tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and diff guard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 +924 test cases (browser +88, unit +398, server +438).

New browser test files: apps/web/src/browserHistoryStore.browser.test.ts, apps/web/src/components/Sidebar.motion.browser.test.ts, apps/web/src/components/auth/PairingRouteSurface.browser.test.tsx, apps/web/src/components/settings/OpenSourceLicenses.browser.test.tsx, apps/web/src/components/workflows/WorkflowRunsView.browser.test.tsx, apps/web/src/lib/imageCompression.browser.test.ts, apps/web/src/lib/pageTranslationGuard.browser.test.tsx, apps/web/src/lib/selectionActions.browser.test.ts.
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 24, 2026
@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 +29 B (+0.6%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB +29 B (+0.7%) 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 +29 B (+0.6%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB +29 B (+0.7%) 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

4 of 64 scenario measurements changed or failed.

Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB +20 B (+0.0%) 53.7 KiB ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB +20 B (+0.0%) 53.7 KiB ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB +20 B (+0.0%) 53.7 KiB ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB +20 B (+0.0%) 53.7 KiB ✅
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 +20 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 +20 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 +20 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 +20 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: f2433a6 · PR result: bf5a0e7 · 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📱 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.