Upstream T3 Code plus my own changes, with its own nightly releases so the desktop app's update button follows this fork.
mainmirrorspingdotgg/t3codemain. Never commit to it.customis the default branch: upstream plus fork changes. Open PRs againstcustom.
.github/workflows/fork-release.yml:
- Every 30 minutes it checks for a new upstream nightly. If
customdoesn't contain it yet, it merges that nightly's commit intocustomand pushes. A conflict opens an "Upstream merge conflict" issue and nothing ships until it's resolved. - Every push to
custom(an upstream merge or a merged PR) builds the Linux x64 and arm64 desktop apps and CLI archives and publishes a prerelease here. - Versions look like
0.1.1-nightly.20261016.321801: upstream nightly run3218, fork build01. They sort above the upstream nightly they're based on and below the next one. The newest 10 releases are kept.
Run the workflow by hand with build checked to publish without an upstream change.
Keep this list short; each one can conflict with upstream.
packages/shared/src/cliRelease.ts:CLI_RELEASE_REPOSITORYpoints at this fork, sot3 updateand SSH environments install fork runtimes (tests incliRelease.test.tsandpackages/ssh/src/tunnel.test.tsupdated to match).apps/web/src/state/npmRelease.ts: "Update everything" checks that the version is released on this fork instead of on npm, which never has fork versions.
Put new features in new files where possible and hook them in with small edits.
- Dictation (voice/dictation): upstream PR pingdotgg#19273, restructured so
its code lives in
*/dictation/*,contracts/src/dictation*.tsandshared/src/spokenSkills.ts, with one- or two-line hooks inrpc.ts,ws.ts,server.ts,settings.ts,RpcAuthorization.ts,RpcInstrumentation.ts,clientRpcPermissions.tsand a single block inChatComposer.tsx. If upstream merges dictation, drop the fork copy in favour of theirs. - Speech worker (voice/speech-worker): native speech models run in a child
process (
t3 __speech-worker,apps/server/src/speech/) instead of inside the server, so a model crash or OOM can't take the server down. Hooks: one branch inapps/server/src/bin.ts; dictation reaches it throughdictation/layer.ts. - Text to speech (voice/tts): Kokoro (kokoro-en-v0_19, pinned sha256) in the
speech worker,
speech.*RPCs andspeech*server settings. All wiring rides the dictation spreads (dictationRpc.ts,dictation.ts,dictation/layer.ts), so no extra upstream hooks. Code inapps/server/src/speech/andpackages/contracts/src/speech.ts.
RPC budget: upstream's WebSocket RPC group sits at TypeScript's instantiation
limit (TS2589 excessively deep in ws.ts, depending on checker count). All fork
voice features share exactly two RPCs, voice.request (tagged union of actions)
and subscribeVoiceState (by topic), in contracts/src/dictationRpc.ts. Add new
actions as tags there; never add new RPC methods. Release builds typecheck the
server with --checkers 8 as extra margin.
- Repository secret
FORK_SYNC_TOKEN: a fine-grained PAT for this repo only, with Contents: read and write and Workflows: read and write.GITHUB_TOKENcan't push merges that touch.github/workflows, and its pushes don't start other workflow runs. - Repository variables
CLERK_PUBLISHABLE_KEY,CLERK_JWT_TEMPLATE,CLERK_CLI_OAUTH_CLIENT_ID, andRELAY_URLturn on T3 Connect. They hold the public values every upstream build ships with (relay.t3.codes). Delete them to build without T3 Connect. - All upstream workflows are disabled on this fork (the sync job re-disables any new ones), since they need upstream's runners and secrets.