Repository navigation
fix: Windows prepared cache payload limit and S2 Connect branding (batch 2) - #486
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problems
113 files > 100): Early nightlyv0.1.11-nightly.20261124.148(run45331910882) failedDesktop (Windows x64)invalidateWindowsPackagedPayload. Diffing.145vs.148confirmed 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 addedsrc/process-launcher.tsas a 3rd server entry and split more.mjschunks. Upstream cross-builds Windows on Linux and skips cache generation, so its flat 80-file limit never triggers, while the fork builds natively onwindows-2025.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)scripts/windows-prepared-server-cache.ts(validateWindowsPreparedServerCache,WindowsPreparedServerCacheError,WINDOWS_PREPARED_SERVER_CACHE_ENTRY_LIMIT = 256) performing fail-closed checks onresources/server-compile-cache/:lstatroot check (ENOENTreturns zeros for cross-builds/untrusted builds), rejecting symlinks/subdirectories, strictmanifest.jsonschema/duplicate/pattern checks, verifying every referenced.mjsmodule exists as a regular file insideserver.asar, exact 1-to-1 disk correspondence, and non-zero file sizes.scripts/build-desktop-artifact.tsfork diff (+7/-5 lines): restoredWINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT = 80(byte-identical to upstream) and subtracted the verifiedpreparedServerCache.fileCountfromcountPayloadFiles(packagedAppDir).scripts/windows-prepared-server-cache.test.ts(incl.seedPreparedCacheparity test) and wired it into.github/workflows/release.ymlpreflight; updatedscripts/build-desktop-artifact.test.ts.2. S2 Connect branding sweep (
s2/462-s2-connect-branding,dfc8995b5d+05e506bb20)"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.tsstage brands, andoxlint-plugin-t3codePROPER_NOUNS.apps/web(132/132 keys, 0 fallbacks) andapps/mobile(36/36 keys, 0 fallbacks), handling GermanT3-Connect/T3-Kontoand SwedishT3-kontocompounds."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).docs/user/*.md(14 files) in a separate commit while keeping the 3 pinned H2 headings indocs/user/t3-connect-troubleshooting.mdand explicit upstream references intact.Refs #462
Verification
vp test run4 files / 100 passed;check-changed.ts --concurrency 2green (format, lint, knip 1/2 & 2/2, typecheck 44 pkgs, test 3 files).WelcomePage.import.browser.test.tsxandConnectReachability.test.ts),vp run i18n:checkpassed, audit greps clean,check-changed.ts --concurrency 2green (format, lint, knip 1/2 & 2/2, graphql, typecheck 41 pkgs, test 39 files / 441 passed, React Compiler 47 files).CI FullandWindows Tests(windows-2025,scripts/windows-prepared-server-cache.test.ts+scripts/build-desktop-artifact.test.ts) dispatched onbatch/s2-2(5186bc6ade).Implemented by
gemini-4-neon(Antigravity harness via T3 Code); judged and batched by s2code lead (gemini-4-neon, Antigravity).