Skip to content

chore: sync upstream t3code (6f8282c2c8) - #313

Merged
jayleaton merged 729 commits into
mainfrom
chore/upstream-sync-20261124
Nov 24, 2026
Merged

jayleaton merged 729 commits into
mainfrom
chore/upstream-sync-20261124

Conversation

@jayleaton

@jayleaton jayleaton commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Brings in pingdotgg/t3code main up to 6f8282c2c8, which is 725 commits on top of our last sync base 391f93fc8f. The PR is a merge commit, so every resolution can be reviewed. It follows docs/operations/upstream-sync.md.

Upstream features and fixes pulled in

Skipped on purpose (and why)

  • T3 Connect, relay, Clerk, guest links. Removed per upstream-sync.md. Modify/delete conflicts on manifest paths were resolved by deleting the file. Also dropped:
    • upstream's new Connect wiring in ws, server, auth, peer, desktop, mobile and the CI workflows (Clerk/relay env, mobile source-map R2 upload);
    • the Clerk header rule in the new RemoteRequestHeaders;
    • relaySigning. stableStringify now comes from @t3tools/shared/stableStringify.
  • Upstream's Environments map (EnvironmentsMap*, environmentsMap.logic*). It is built on T3 Connect machine discovery, so Ada keeps its own machines list. Added to scripts/removed-connect-paths.json.
  • Agent feedback (feat: agents can report T3 Code problems when you turn feedback on pingdotgg/t3code#35871), newly documented as removed in upstream-sync.md. It sends reports to the T3 team as a PostHog agent.feedback analytics event. Removed: the service, the MCP toolkit, the CLI, the setting, the runtime instructions, and the web and mobile cards. Kept, so data shared with T3 Code in ~/.t3 still decodes: migration 108_AgentFeedback, the feedback_request turn-item schemas, and a timeline that skips those items.
  • Analytics and telemetry (withToolAnalytics, analytics mocks, the telemetry docs sections), compaction UI (the keep-full-history toggle, compaction in planComposerTurn), and the root SECURITY.md audit guide (upstream security policy and contacts). upstream-sync.md now names the root SECURITY.md.
  • Upstream's pruned docs. Taken, with numbered docs/internals/NN_* and docs/operations/NN_*, except 06_t3-connect, 08_product-analytics, 02_connect-setup and 05_relay-observability. Those are deleted and added to the manifest. Ada's earlier doc edits (no Connect, device network, children vs subagents, auto-settle, trace sampling) were ported into the numbered successors. Fork-only docs are linked from docs/README.md and AGENTS.md.
  • Pull-request settlement machinery. Ada removed PR-merge settlement on purpose (c892280). Ada's settlement is kept, plus two compatible upstream fixes: no auto-settle while a terminal is running a program, and a warning when a skipped settle script finds its worktree gone.

Conflicts and how they were resolved

There were 269 conflicted files: 221 content conflicts, 33 delete-vs-modify, 13 docs that upstream deleted but Ada had edited, and 2 add/add.

  • Agent profiles, skills and threadTask:

    • ProviderTurnStartService keeps Ada's profile and skill injection, plus upstream's typed-result instructions.
    • runtimeLayer keeps todo and threadTask, and adds workflows, peers, issues and task folders.
    • Orchestrator keeps Ada's lock wrapper, parent-link locking, child detach and settle cascade. Upstream's wait for the latest checkpoint before a fork runs inside it.
    • isListedThread also hides workflow steps.
  • MCP gateway: McpHttpServer keeps upstream's wrapper chain (spans, compact results), without analytics, and Ada's tool order, webhook transport and peer toolkit. RpcAuthorization and clientRpcPermissions merge both scope sets: agentGateway, tailnet, todos and threadTasks, plus upstream's peer link, history and workflow methods.

  • Computer use:

    • Claude and Codex adapters keep the computer-use instructions.
    • The Codex full-access auto-accept also needs upstream's new conditions: no sandbox policy and no network-policy change.
    • Desktop keeps ComputerHostWorker next to upstream's DesktopBackendRecoveryWorker.
  • Push: kept in contracts and RPC.

  • Command Code: kept in the provider list in docs and AGENTS.md.

  • Release pipeline: kept fork-* workflows and Ada repository, signing and release targets, while taking upstream job fixes:

    • the ci.yml test list is merged;
    • Vercel secrets moved to the deploy step;
    • mobile EAS builds use upstream's reusable workflow, without source-map upload.

    build-desktop-artifact.ts keeps the gateway exclusion and APP_NAME usage strings, and adds upstream's Apple Speech exclusion.

  • Restart and update: restart requests carry Ada's update-pause fields and upstream's cause: "provider_exit". DesktopBackendManager uses upstream's trackProcess and keeps Ada's pause-for-update stream. bootService uses upstream's prepare/restart steps, without the Connect restart marker.

  • Packages and config:

    • client-runtime and shared package.json exports are the union of both sides.
    • The pnpm catalog moves to Effect 4.1.5 and drops Clerk and relay-only entries.
    • The lockfile is regenerated.
    • tailscale.ts awaits upstream's now-async executable resolver.
  • Branding: new upstream user-facing copy and CLI hints read Ada and ada. The peer-link client prefix T3 Code · stays so peers still recognise each other.

  • i18n: catalogs were merged by key and regenerated. The 22 new strings are translated in all 9 web and mobile locales, and i18n:check passes.

Verification

🤖 Generated with Claude Code. Model: Claude Opus 5.5, harness: Claude Code in Ada.

Yash-Singh1 and others added 30 commits November 23, 2026 00:04
… 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>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…fter sending (pingdotgg#41270)

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

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

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

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

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

Co-authored-by: Kazuya Hibara <267899283+Kazuya-Hibara@users.noreply.github.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#41318)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
only21mil and others added 18 commits November 23, 2026 18:35
…g#41848)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…es its session stuck open (pingdotgg#41840)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…n't reach (pingdotgg#33030)

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

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…not its parent's (pingdotgg#39729)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…est lists (pingdotgg#41863)

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

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

Co-authored-by: only21mil <263261067+only21mil@users.noreply.github.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… missing (pingdotgg#41866)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ess and provider policy (pingdotgg#41867)

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

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Merge upstream/main into Ada. T3 Connect, analytics (including agent
feedback), the upstream Environments map, compaction UI and upstream
security pages stay removed; fork features win where they overlap.

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 +2091 test cases (browser +119, unit +1463, server +509).

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/pullRequest/PullRequestsColumn.browser.test.tsx, apps/web/src/components/settings/OpenSourceLicenses.browser.test.tsx, apps/web/src/components/settings/SnoozePresetsSettings.browser.test.tsx, apps/web/src/components/ui/search-input.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
@jayleaton jayleaton added the agent-context-increase Approves a measured increase to the agent context budget label Nov 24, 2026
jayleaton and others added 2 commits November 24, 2026 13:35
The upstream sync brought server messages, the workflows guide and a
translator context that named T3 Code, the T3 home and `t3 workflow`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…denied computer step waits for its task

With Effect 4.1.5 a scoped fork starts later. The remote settlement sweep
then ran after the worker's first failure and requeued it, and the
computer test read status before the approval existed.

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

github-actions Bot commented Nov 24, 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 +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: bba9c24 · PR result: 23486ee · 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>
@jayleaton
jayleaton merged commit 4ec1a1d into main Nov 24, 2026
35 checks passed
@jayleaton
jayleaton deleted the chore/upstream-sync-20261124 branch November 24, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Approves a measured increase to the agent context budget 📱 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.