Skip to content

chore(sync): sync upstream T3 Code for PseudoCode 0.1.16 - #85

Merged
pseudoseed merged 402 commits into
mainfrom
t3/sync-upstream-20261205
Dec 6, 2026
Merged

pseudoseed merged 402 commits into
mainfrom
t3/sync-upstream-20261205

Conversation

@pseudoseed

@pseudoseed pseudoseed commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Syncs 393 upstream commits into PseudoCode and bumps the desktop, server, web and contracts packages to 0.1.16 in 9f8a6108f0.

  • Upstream merged: 4b9f2a628cb393cf69e5a56b9135d0dfe49c5edc. Fork base: b4c53383c3. Fork main 1c9564806c (PR feat(release): build Linux desktop and t3 archives for PseudoCode releases #84, Linux build) merged in at e871554adf before the fork-delta check.
  • Merge commit for review: d48c39b002. Fix commits after it: ba51a377ac, c6251cf872, 9486400bcb, d123c0e40a, 1037bce3d8 (skill notes), 394226874c (nitro release-tag fixture).

Conflicts

186 files, all resolved. I read every auto-merged source file and fixed the two that came out broken: a missing brace in HomeScreen.tsx, and a misplaced test opener in ClaudeTextGeneration.test.ts.

  • Fork removals stay removed. Telemetry, triage, feedback and relay tracing files upstream modified are deleted again (20 modify/delete conflicts). Agent feedback stays out of runtimeInstructions.ts.
  • New upstream apps/mobile-nitro:
    • Triage, the agent feedback request card and Labs setting, and AnalyticsDevice are removed.
    • Thread links use the fork's shareableThreadLink(ref, null).
    • The fork's ship scripts don't build nitro.
  • Fork behaviour carried into rewritten upstream code:
  • Wording: PseudoCode and Cloud Connect are kept in device approval (web and mobile), tunnel logs, test titles and the Muse replay fixtures.
  • Release repo: cliRelease.ts, install.sh and install.ps1 still point at pseudoseed/t3code_dev with the pseudocode-v prefix.
  • Translations: 22 catalogs were merged key by key and regenerated. i18n:check exits 0.
  • Tests: 117 test files take upstream's version with every fork-only test put back inside it. Tests that only covered removed triage were dropped.

Fork-delta check

fork-delta-check.py -v: 932 fork files checked. 16 DROPPED lines in 4 files, 154 REWRITTEN lines in 53 files. 113 more missing lines are upstream code that upstream itself later removed.

DROPPED, each accounted for:

  • apps/mobile/src/features/threads/threadListV2.ts, threadHasUnseenCompletion(thread): upstream renamed it to hasUnseenCompletion. Project-folder status still calls it.
  • apps/web/test/fakeEnvironment.ts, 12 lines (serverConfigSubscribers, publishServerConfig): upstream's configSubscriber re-sends the config snapshot on every installFakeEnvironment. That does what the fork's publisher did for keybindings.
  • packages/client-runtime/src/contextWindow.ts, 2 toFixed lines: replaced by upstream's half-step rounding fix fix(web): round exact half-step context token counts consistently pingdotgg/t3code#49207, ported into the fork's helper.
  • scripts/mobile-native-client.ts, T3CODE_IOS_BUNDLE_ID: bundleId: upstream removed the module-level bundleId when it added per-app configs. The fork's variable is kept as (yield* ClientApp).bundleId.ios.

All 154 REWRITTEN lines were read. They are brand and repo fixtures, fork tests inside blocks upstream deleted (kept), the carries above, and expected changes (version lines, agent context budget numbers).

Local verification

  • vp run typecheck exit 0 (44 tasks). vp run lint exit 0 (0 errors, 60 warnings). vp run i18n:check exit 0.

  • run-suites.sh: 38 of 40 packages pass. It skipped apps/mobile-nitro, which defines its test task in vite.config.ts; CI caught 2 failures there. Nitro's update check reads the fork's releases page, so its fixture now uses pseudocode-v tags (219/219), and run-suites.sh now finds that kind of package. Main counts:

    • Apps: web 4,165, mobile 2,386, desktop 624 (20 skipped).
    • Server: 6,161 passed. The agent context budget failure was fixed and that file reran green.
    • Packages: client-runtime 1,501, shared 1,059 (3 skipped), scripts 138 (14 skipped). The scripts telemetry-guard failure was fixed and reran green.
  • 5 server tests still fail. All 5 fail the same way on a clean upstream 4b9f2a628c checkout on this Mac (5 failed, 295 passed there):

    • GitVcsDriver.test.ts: 3 checkpoint pack-cleanup tests, NotFound ... tmp_objdir-t3-checkpoint-*/pack.
    • GitVcsDriverCore.test.ts: the background Git lane test.
    • ClaudeAgentSdkQueryRunner.test.ts: the detached-job test, 120 s timeout. Source and test are identical to upstream.

    All server test shards passed on Linux CI for 1037bce3d8, so these 5 are Mac-only.

Live check

  • Web, Browser panel, isolated dev server. The real database (25 GB) is over the auto-seed limit, so I seeded 2 projects and 3 Replay threads.
    • The sidebar shows the PseudoCode mark, and a Replay turn rendered fully (markdown, code block, table).
    • Settings → About shows 0.1.16 and the fork privacy line.
  • iOS, iPhone 18 Pro (iOS 27.0) simulator, dev client built for fingerprint 15241c45b8.
    • Paired to the same backend. Project folders group threads and are ordered by most recent send.
    • Opened a thread, sent a message from the phone, and the Replay turn streamed back.
    • Backgrounded the app for 20 s and returned: same thread, no disconnect banner, and a second message got a new turn. This covers the network debounce carry.
  • Not covered live: the PR badge toggle (the seeded threads have no PRs). The first sync briefly drew two folder headers on top of each other, and it cleared within seconds.

Known gaps

  • About 90 new lines of upstream text say "T3 Code", most in apps/mobile-nitro (not shipped) and the new MCP sign-in screens and messages. The fork already keeps a mix (31 translated strings still say "T3 Code", 63 say PseudoCode), so these follow upstream for now. Tracked in Rename new user-facing "T3 Code" text from the 0.1.16 sync #86.
  • About 121 new mobile strings are English only, matching upstream.

Model: Claude Opus 5.5 (merge and suites delegated to a second Opus 5.5 run), Claude Code in PseudoCode.

🤖 Generated with Claude Code

saphid and others added 30 commits December 4, 2026 21:59
…49202)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ons are open (pingdotgg#49197)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#49219)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…hey land in (pingdotgg#49196)

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

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…dotgg#49201)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…pingdotgg#49215)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#49207)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#49213)

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

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#49222)

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

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…alert, not one per environment (pingdotgg#49166)

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

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…written (pingdotgg#49233)

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

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

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tgg#49244)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…49241)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ance Contrast (pingdotgg#49225)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ng URL stays in the terminal (pingdotgg#49261)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…lders that became repos (pingdotgg#49246)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Today20092 and others added 25 commits December 5, 2026 16:51
…een closes (pingdotgg#49662)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…gdotgg#49564)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… hold it (pingdotgg#35184)

On an iPad with columns, a tab switch or a cold start reopened the last chat only when the thread list rows held it. Idle subagents and older settled threads are left out of those rows, so the detail column showed "Select a thread".

The remembered chat now reopens by its reference. A chat the app reopened by itself closes again when the shell applies its removal, or when its detail says it is archived or deleted. Only a live thread list proves that a reopened chat exists.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…dotgg#48744)

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

Co-authored-by: Bryce Lindberg <210634701+brycealindberg@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… gap (pingdotgg#49730)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Merges 393 upstream commits (4b9f2a6) onto fork main
b4c5338. Fork telemetry, triage and agent feedback stay removed, including from upstream's
new apps/mobile-nitro. Fork project folders, PR badge toggle, network debounce and diagnostics,
release repo and Cloud Connect wording are carried into upstream's rewritten code.

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

# Conflicts:
#	scripts/build-desktop-artifact.test.ts
…r test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream deleted PendingUserInputCard.test.tsx and dropped it from the
mobile react test list. The fork keeps its dictation submit test there,
so the file goes back on the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream's MCP server icon comments use Axiom as an example server, which
the fork's no-upstream-telemetry check rejects. Use neutral examples.

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 the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Dec 6, 2026
@github-actions

github-actions Bot commented Dec 6, 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

64 scenario measurements match main. 8 have no main baseline.

All 72 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 1.02 MiB 1.02 MiB 0 B (0.0%) 1.19 MiB ✅
Codex long turn running, history page rows 845 845 0 (0.0%) 845 ✅
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 154.6 KiB 154.6 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 43.9 KiB 43.9 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 43.9 KiB 43.9 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 long gap shell resume check HTTP decoded — 18 B — 100 B ✅
Codex long gap shell resume check rows — 0 — 0 ✅
Codex long gap shell resume WebSocket decoded — 2.0 KiB — 2.2 KiB ✅
Codex long gap shell resume WebSocket messages — 2 — 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 1.03 MiB 1.03 MiB 0 B (0.0%) 1.19 MiB ✅
Claude long turn running, history page rows 845 845 0 (0.0%) 845 ✅
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 156.4 KiB 156.4 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 44.5 KiB 44.5 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 44.5 KiB 44.5 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 long gap shell resume check HTTP decoded — 18 B — 100 B ✅
Claude long gap shell resume check rows — 0 — 0 ✅
Claude long gap shell resume WebSocket decoded — 2.0 KiB — 2.2 KiB ✅
Claude long gap shell resume WebSocket messages — 2 — 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: 1c95648 · PR result: 3942268 · 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.

Nitro reads the fork's releases page, whose tags carry the pseudocode-v
prefix the shared release helper requires, so upstream's bare v tags
never matched. run-suites.sh now also runs packages whose test task is
defined in vite.config.ts, which is why the local suites missed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pseudoseed
pseudoseed merged commit 28757f7 into main Dec 6, 2026
33 checks passed
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.