Skip to content

feat(fork): replace remaining T3 branding with no3y - #475

Open
NoahHendrickson wants to merge 3 commits into
customfrom
t3/replace-t3-branding
Open

NoahHendrickson wants to merge 3 commits into
customfrom
t3/replace-t3-branding

Conversation

@NoahHendrickson

@NoahHendrickson NoahHendrickson commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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

  • Rename by default (scripts/lib/fork-brand-name-core.ts): every bare T3 <word> becomes no3y <word>, so "T3 Code" → "no3y Code" and "Started a T3 thread" → "Started a no3y thread". The only exceptions are the phrases in PRESERVED_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.
  • Glyph: apps/web/src/overrides/components/T3Wordmark.tsx shadows 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's T3Mark.svg use the same path. All three copies hold one merged-run path that the guard derives from assets/fork/n3-favicon.svg.
  • Mobile: a "no3y Code" header title, the no3y loading tile, and the widget app name "no3y".
  • iOS widgets bundle through expo-widgets' own Metro config, outside the rename, so their fallback copy and logo are edited in place.
  • The fork-brand-name manifest 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:

  • T3 Connect, T3 Chat and T3 Account
  • the T3 server, the t3 CLI, and the T3 home folder
  • server-sent text, including agent prompts
  • the "Fork of T3 Code" credit

Verification

  • vp run check:changed passes: format, lint, knip, typecheck, 134 test files, react compiler.
  • The fork guard suite (143 files) passes, along with .fork/lint-owned.mjs.
  • The mobile reactCompilerCoverage (which loads the Metro config and runs the transformer) and src/widgets tests pass.
  • Running the Metro transformer on real modules renames the brand and keeps "T3 server" in transport.ts.
  • All 8 rewritten tool label sets still match their sentence keys.
  • Not run: a real Metro bundle or a running app. The widget logo needs a native rebuild.

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

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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 24, 2026

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.tsx
  • apps/mobile/src/components/T3Wordmark.tsx
  • apps/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.ts already loads from the repo-root assets/fork/, so both apps can import a path constant placed beside the favicon. Then the guard compares the widget SVG's d against 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 without crispEdges, 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: the aria-label="T3 Code" edit, and the extra oxlint-disable it 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.tsx splits a ternary (: /* fork:begin */ "…"; then /* fork:end */ on the next statement). Fencing the whole emptyMessage declaration reads more cleanly.
  • The NO3Y_UPSTREAM_BABEL_TRANSFORMER handoff through process.env is 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

@github-actions

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

All 64 scenario measurements match main.

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 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 42.4 KiB 42.4 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 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 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 43.0 KiB 43.0 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 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: 92ea9f7 · PR result: fdb94c9 · 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.

Comment thread apps/mobile/metro.config.js Resolved
@NoahHendrickson

Copy link
Copy Markdown
Owner Author

Code review of fdb94c931643c9775b5ec9e7b78a04368b1d280c

I left 7 inline comments on this commit: 1 important, 6 nits.

Important

  • Non-English locales lose translations for renamed strings (apps/mobile/fork/forkBrandNameTransformer.cjs:19). GT catalogs are keyed by a hash of the source text. For example, de.json holds "Aktualisiere T3 Code auf {host}." under the hash of the original English. resolve() in apps/mobile/src/i18n/messages.ts looks translations up by the source text it gets at runtime. Rewriting T3 Code, or any of the new RENAMED_PHRASES, before Babel runs changes that text, so the lookup misses and those strings fall back to English. On mobile that is about 39 strings per locale. On web it affects the new phrases, such as the t3_thread_* tool rows. To fix it, rename the resolved output rather than the source, or pass the name in as a variable. If English-only is the intended trade-off, record that in the manifest.

Nits

  • Locally started Live Activities are titled "no3y Code", but relay-pushed aggregates keep the server's title, so the title can change mid-session.
  • The mobile flower is ~90 separate 1×1 cells without crispEdges, so the seams between cells antialias at 10–15pt.
  • Preview builds now show the production brand tile.
  • The metro.config.js fence wraps only the opening withForkBrandName(. Its closing ), sits outside the fence.
  • The Metro wrapper require()s a .ts ESM file, which depends on which Node each bundle phase picks up.
  • Nothing reads data-fork-brand-glyph.

Checked and fine: the t3_thread_* tool-row lookups still match, because the labels and the lookup keys are rewritten in the same bundle. None of the new phrases reach a client-side comparison of server-sent text.

Not approving. These comments are advisory.


🤖 Reviewed by Claude Opus 5.5 (claude-opus-5-5) via Claude Code

xxxxxxxxxxxxx and others added 2 commits November 24, 2026 14:17
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>
@NoahHendrickson

Copy link
Copy Markdown
Owner Author

Addressed the code-quality review in c976f5a:

  1. Allowlist → rename by default. Bare T3 now becomes no3y unless PRESERVED_PHRASES names it. The new entries are T3 Connect, T3 Chat, T3 Account/account, T3 server/Server and T3 home. "T3 server" has to stay, because packages/client-runtime/src/errors/transport.ts:9 matches the server's "Unable to connect to the T3 server WebSocket". The rule needs "T3 " to start a word (or follow a \n/\r/\t escape in source text) and to precede a letter, so const T3 = … stays untouched. Every output is now "no3y ", which resolves the "no3y thread" vs "no3y Code process" inconsistency. I checked that all 8 rewritten t3_thread_* label sets still match their sentence keys and copy entries, including the …Created\nT3 threads key form that a plain word boundary would have split.
  2. One glyph path. All three copies carry the same 44-subpath merged-run path. The guard derives that path from assets/fork/n3-favicon.svg and asserts each copy contains it.
  3. Fences. Each of the six FORK_WIDGET_APP_NAME use sites is fenced individually.
  4. Bundler-free core. scripts/lib/fork-brand-name-core.ts is import-free. fork-brand-name.ts is the thin Vite adapter. The Metro transformer loads and hashes the core, and has a comment on why the env var is the only channel to the workers.

Smaller items:

  • The aria-label edit and its extra disable are gone; the rewrite covers it.
  • The AgentActivityWidget fence now wraps the whole emptyMessage declaration.

vp run check:changed passes, along with the fork guard suite (143 files), the mobile reactCompilerCoverage and widget tests, and .fork/lint-owned.mjs. The branch is merged up to date with custom.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 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.

2 participants