Skip to content

fix: Windows prepared cache payload limit and S2 Connect branding (batch 2) - #486

Merged
shuv1337 merged 5 commits into
mainfrom
batch/s2-2
Nov 24, 2026
Merged

shuv1337 merged 5 commits into
mainfrom
batch/s2-2

Conversation

@shuv1337

Copy link
Copy Markdown
Owner

Problems

  1. Windows nightly packaging failed after chore: sync with upstream pingdotgg/t3code cd128e7774 #482 (113 files > 100): Early nightly v0.1.11-nightly.20261124.148 (run 45331910882) failed Desktop (Windows x64) in validateWindowsPackagedPayload. Diffing .145 vs .148 confirmed the 75 non-cache runtime files were identical; resources/server-compile-cache/ grew from 24 to 38 files (+14 V8 bytecode entries) because chore: sync with upstream pingdotgg/t3code cd128e7774 #482 added src/process-launcher.ts as a 3rd server entry and split more .mjs chunks. Upstream cross-builds Windows on Linux and skips cache generation, so its flat 80-file limit never triggers, while the fork builds natively on windows-2025.
  2. User-facing Connect copy still said "T3 Connect": The sidebar sign-in button (Sign in to T3 Connect), Settings, Clerk account pages, mobile, CLI, shared packages, i18n catalogs, and user docs still used "T3 Connect" / "T3 Account" pending the naming decision in Branding: remaining T3 Code leftovers outside #380 #462.

How this fixes them

1. Windows prepared server compile cache validation (s2/win-payload-prepared-cache, 7a9a28e642)

  • Added fork-owned scripts/windows-prepared-server-cache.ts (validateWindowsPreparedServerCache, WindowsPreparedServerCacheError, WINDOWS_PREPARED_SERVER_CACHE_ENTRY_LIMIT = 256) performing fail-closed checks on resources/server-compile-cache/: lstat root check (ENOENT returns zeros for cross-builds/untrusted builds), rejecting symlinks/subdirectories, strict manifest.json schema/duplicate/pattern checks, verifying every referenced .mjs module exists as a regular file inside server.asar, exact 1-to-1 disk correspondence, and non-zero file sizes.
  • Minimized scripts/build-desktop-artifact.ts fork diff (+7/-5 lines): restored WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT = 80 (byte-identical to upstream) and subtracted the verified preparedServerCache.fileCount from countPayloadFiles(packagedAppDir).
  • Added scripts/windows-prepared-server-cache.test.ts (incl. seedPreparedCache parity test) and wired it into .github/workflows/release.yml preflight; updated scripts/build-desktop-artifact.test.ts.

2. S2 Connect branding sweep (s2/462-s2-connect-branding, dfc8995b5d + 05e506bb20)

  • Replaced user-facing "T3 Connect" → "S2 Connect" (with "an S2 Connect" grammar fixes) and "T3 Account" / "T3 account" → "S2 Account" / "S2 account" across web, mobile, server/CLI, packages/{client-runtime,contracts,shared}, plus adjacent Connect CLI command hints (s2code connect … / forkCliCommand("connect login")), cliAuthHtml.ts stage brands, and oxlint-plugin-t3code PROPER_NOUNS.
  • Regenerated and migrated all 9 non-English locale catalogs in apps/web (132/132 keys, 0 fallbacks) and apps/mobile (36/36 keys, 0 fallbacks), handling German T3-Connect/T3-Konto and Swedish T3-konto compounds.
  • Kept internal identifiers, wire/route/storage slugs ("t3-connect", /api/t3-connect/*), comments, structured logs, T3 Chat, apps/marketing, troubleshooting anchors, and model-facing MCP descriptions untouched (0-byte agent context delta).
  • Updated docs/user/*.md (14 files) in a separate commit while keeping the 3 pinned H2 headings in docs/user/t3-connect-troubleshooting.md and explicit upstream references intact.

Refs #462

Verification

  • Branch 1 light check: vp test run 4 files / 100 passed; check-changed.ts --concurrency 2 green (format, lint, knip 1/2 & 2/2, typecheck 44 pkgs, test 3 files).
  • Branch 2 light check: focused server/client-runtime/web/mobile tests passed (incl. WelcomePage.import.browser.test.tsx and ConnectReachability.test.ts), vp run i18n:check passed, audit greps clean, check-changed.ts --concurrency 2 green (format, lint, knip 1/2 & 2/2, graphql, typecheck 41 pkgs, test 39 files / 441 passed, React Compiler 47 files).
  • Batch CI: CI Full and Windows Tests (windows-2025, scripts/windows-prepared-server-cache.test.ts + scripts/build-desktop-artifact.test.ts) dispatched on batch/s2-2 (5186bc6ade).

Implemented by gemini-4-neon (Antigravity harness via T3 Code); judged and batched by s2code lead (gemini-4-neon, Antigravity).

@shuv1337
shuv1337 merged commit c6ee981 into main Nov 24, 2026
41 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant