Repository navigation
feat(fork): replace remaining T3 branding with no3y - #475
NoahHendrickson wants to merge 3 commits into
Conversation
The build-time rename now takes a phrase table: besides "T3 Code" it renames bare-T3 phrases such as "T3 thread", so delegate rows read "Started a no3y thread". Upstream's T3 letter glyph is shadowed with the no3y flower outline, which marks the app's own tool rows and heads the auth pages. Mobile runs the same table through a Metro Babel-transformer wrapper, and its wordmark, header title, loading tile, widget copy and widget logo show no3y. T3 Connect, T3 Chat, the T3 server and server-sent text keep their names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code-quality review of fdb94c931643c9775b5ec9e7b78a04368b1d280c
Not approving. The core idea is right: one rename table, one isRebrandedModule predicate, and Metro reusing the Vite rewrite. But three parts of the change add copies or exceptions where one source would do, and the rename table changes shape in a way that undoes the reason the mechanism exists.
1. The bare-"T3" table is an allowlist, which goes against how the rest of the mechanism works
scripts/lib/fork-brand-name.ts:18
The "T3 Code" rewrite exists because upstream adds new strings every sync. For that reason it renames by default and lists only the exceptions (PRESERVED_PHRASES). RENAMED_PHRASES flips that for bare "T3". It is a list of grep hits: "T3 could not" covers exactly one string in McpAppFrame.tsx, and "T3 system footprint" and "T3 operations" each cover one string in ResourceTelemetryDiagnostics.tsx. The next upstream string like "T3 app" or "T3 terminals" will leak silently, and nothing will catch it.
The rename outputs also disagree with each other. "T3 thread" becomes "no3y thread", but "T3 process" becomes "no3y Code process". Nothing in the table says which form the fork wants.
The simpler model treats bare T3 the same way "T3 Code" is already treated. Rename it by default, and add Ping's services to PRESERVED_PHRASES: T3 Connect, T3 Chat, T3 Account/account, the T3 server, the T3 home folder. That list is short, stable, and already written down in the manifest's "deliberately unchanged" prose. The one-off entries go away, and new upstream copy is covered automatically. If you choose the allowlist on purpose, add a guard that lists every bare T3 <word> in client sources and fails on any phrase that neither table classifies. Without that, the table drifts on the first sync.
2. The flower glyph is pasted three times, as about 130 single-pixel squares
apps/web/src/overrides/components/T3Wordmark.tsxapps/mobile/src/components/T3Wordmark.tsxapps/mobile/assets/widget/T3Mark.svg
Each copy carries the same ~3 KB d string, one h1v1h-1z per cell. The guard only checks that the old T3 path is gone (not.toContain("M33.4509…")). Nothing proves the three copies agree with each other or with assets/fork/n3-favicon.svg.
- Single source.
brandAssets.tsalready loads from the repo-rootassets/fork/, so both apps can import a path constant placed beside the favicon. Then the guard compares the widget SVG'sdagainst that constant, not against a string the old version happened to contain. - Merge each row's runs of cells into one rect. Row 7 is 15 subpaths that collapse to
M0 7h15v1H0z, and the whole glyph drops to roughly 40 subpaths. This matters on mobile as well as for legibility. react-native-svg draws the mark withoutcrispEdges, at less than 1px per cell, so squares that touch can show anti-aliased seams. Merged runs have no internal edges.
3. Unfenced edits to an upstream module
apps/mobile/src/widgets/subscriptionUsageSnapshot.ts:167, 177, 180, 201, 266, 348
The constant at line 19 is fenced, but the six use sites that swap "T3" for FORK_WIDGET_APP_NAME are not. Under .fork/AGENTS.md §4, every inline edit to an upstream file is fenced. These are exactly the lines that will conflict when upstream touches this copy, and a sync gives no marker for them. Fence each use site. They span three functions, so a single block fence would not cover them all.
4. fork-brand-name.ts now serves two bundlers but is still shaped as a Vite plugin module
apps/mobile/fork/forkBrandNameTransformer.cjs:9
Metro require()s a .ts ES module that imports from vite-plus. This works today only because the import is type-only and Node strips the types and loads ESM through require. A future runtime import, or TS-only syntax such as an enum, breaks the mobile bundle and gives no web-side signal. Moving the bundler-agnostic core into its own dependency-free module, with the Vite Plugin as a thin adapter beside it, would make the boundary explicit. The core here is RENAMED_PHRASES, PRESERVED_PHRASES, rewriteUpstreamDisplayName and isRebrandedModule. The transformer's getCacheKey would then hash exactly the file it depends on.
Smaller
apps/web/src/components/ui/standalone-page.tsx:33-34: thearia-label="T3 Code"edit, and the extraoxlint-disableit needs, can be dropped. The build-time rewrite already turns upstream's"T3 Code"into "no3y Code". Only the visible suffix and the size class have to change.- The fence in
AgentActivityWidget.tsxsplits a ternary (: /* fork:begin */ "…";then/* fork:end */on the next statement). Fencing the wholeemptyMessagedeclaration reads more cleanly. - The
NO3Y_UPSTREAM_BABEL_TRANSFORMERhandoff throughprocess.envis acceptable, since Metro passes only a path to its workers. A comment in the transformer saying that this is the only channel to the workers would stop someone from "simplifying" it to a hardcoded Expo transformer and silently dropping Uniwind's.
No file crosses 1k lines. isRebrandedModule is a good extraction: it fixes the bare node_modules/ prefix Metro passes, and both bundlers now share it.
Items 1–3 are the blockers.
🤖 Reviewed: Claude Opus 5.5 (claude-opus-5-5) via Claude Code
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Code review of
|
Bare "T3 <word>" now becomes "no3y <word>" unless PRESERVED_PHRASES names it (T3 Connect, Chat, Account, server, home), so new upstream copy is covered without a per-phrase list. The rule lives in an import-free core both Vite and Metro load. The flower glyph is one merged-run path in all three copies, derived from the favicon by the guard. Every inline edit is fenced, the Metro hook is one appended statement, and the auth label relies on the rewrite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed the code-quality review in c976f5a:
Smaller items:
|
The app still said "T3" in a few places the existing "T3 Code" → "no3y Code" build-time rename didn't reach. The chat transcript showed upstream's T3 letter glyph on the app's own tool rows (delegates, HTML previews), and delegate rows read "Started a T3 thread". The mobile app wasn't covered by the rename at all (~440 strings), and neither were its header wordmark, loading tile, or widgets.
What changed
scripts/lib/fork-brand-name-core.ts): every bareT3 <word>becomesno3y <word>, so "T3 Code" → "no3y Code" and "Started a T3 thread" → "Started a no3y thread". The only exceptions are the phrases inPRESERVED_PHRASES: Ping's services (T3 Connect, T3 Chat, T3 Account), the T3 server and T3 home (the client matches server text such as "Unable to connect to the T3 server WebSocket"), and the existing upstream credits. The t3_thread_* tool lookups key on the same rewritten labels, so they keep matching. The core is import-free because two bundlers load it: the Vite plugin (fork-brand-name.ts) for web and desktop, and a Metro Babel-transformer wrapper (apps/mobile/fork/forkBrandNameTransformer.cjs) for mobile.apps/web/src/overrides/components/T3Wordmark.tsxshadows upstream's T3 letters with the no3y flower as currentColor line art. It covers the transcript tool rows and the standalone auth pages, whose header reads [flower] "no3y Code". The mobile wordmark and the iOS widget'sT3Mark.svguse the same path. All three copies hold one merged-run path that the guard derives fromassets/fork/n3-favicon.svg.fork-brand-namemanifest entry and guard test are updated to match.Decided trade-off: GT looks translations up by a hash of the source text, so a rebranded string shows in English in other locales. This is recorded in the manifest.
Deliberately unchanged:
t3CLI, and the T3 home folderVerification
vp run check:changedpasses: format, lint, knip, typecheck, 134 test files, react compiler..fork/lint-owned.mjs.reactCompilerCoverage(which loads the Metro config and runs the transformer) andsrc/widgetstests pass.transport.ts.Reviewed with neon-review: 2 rounds with gemini-4-neon. Neon verdict: approved
🤖 Signed: Claude Opus 5.5 (
claude-opus-5-5) via Claude Code🤖 Reviewed: Gemini 4 Neon (
gemini-4-neon, thought_level high) via Antigravity — found the dependency-path, widget-copy and transformer cache-key issues whose fixes are applied here🤖 Reviewed: Claude Opus 5.5 (
claude-opus-5-5) via Claude Code (PR review automation) — the rename-by-default model, single glyph path, fences and bundler-free core are applied here