Repository navigation
fix: strip upstream analytics and every path that reveals the fork - #73
Open
pseudoseed wants to merge 17 commits into
Open
pseudoseed wants to merge 17 commits into
pseudoseed wants to merge 17 commits into
Conversation
PseudoCode already turned T3 Connect relay tracing into a no-op, but the code, build-time trace credentials and opt-out plumbing were still shipped. Delete the shared relayTracing module and every withRelayClientTracing / withLocalTracing wrapper across server, client-runtime, web and mobile. Drop the trace fields from public cloud config, app config and build scripts, the desktop relay telemetry IPC channel, and the T3CODE_TELEMETRY_ENABLED forwarding that only fed it. User-configured OTLP export is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fork had disabled upstream's analytics with no-op stubs, but the server still read ~/.codex/auth.json and ~/.claude.json at startup to hash account ids, clients still put hashed device and Connect account ids on every WebSocket URL, and expo-observe still shipped in the mobile app. Removed the server telemetry module and every call site (MCP tool events, turn and token analytics, feature usage, guest share, Codex sign-in events, startup heartbeat and owner recording, the anonymous install id), the client owner and device params and their device id store, and expo-observe. Agent feedback reports now stay on the machine. Added a runtime block: the server fails DNS for ingest.t3.codes, posthog.com and axiom.co, and the desktop main window session cancels requests to them. scripts/no-upstream-telemetry.test.ts fails CI if a sync brings any of it back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s-fully-stripped # Conflicts: # docs/internals/08_product-analytics.md # packages/client-runtime/src/connection/resolver.ts
Also drops expo-observe from the lockfile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removes the GitHub star prompt and its star RPC, the T3 Code git identity on stack rebases, the T3 Code credit in new project READMEs, and upstream's EAS owner, project id and update URL in the mobile config. Web download, mobile and privacy links point at the fork's repository. Requests name PseudoCode instead of T3 Code to GitHub and OpenAI. The runtime blocklist now covers all of t3.codes, not just its ingest host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The triage feature told agents to fetch upstream's playbook, clone the upstream repo and file issues there. Remove it on every surface instead of retargeting it. - server: TriageService, `t3 triage` CLI, server.prepareTriage handler, triage capability, RPC instrumentation and shard weight entries - contracts and client-runtime: prepareTriage RPC, input/result/error schemas, permission scope, capability flag - web: command palette action, triage draft hero, machine-switch playbook carry-over, boot error triage command, the handleNewThread prompt option that only triage used - mobile: command palette action, new-task machine-switch carry-over - shared triagePrompt helpers, i18n strings, docs/user/triage.md, the .github triage playbook and via-triage issue template Old servers that still report `capabilities.triage` decode fine since excess struct keys are ignored. No setting or keybinding named triage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SSH remote installs, `t3 update`, server self-update, the mobile server update check, the install scripts, and the desktop recovery links all pointed at pingdotgg/t3code, so they fetched upstream's build. They now read pseudoseed/t3code_dev releases tagged pseudocode-v<version>; the repository and tag prefix live once in cliRelease.ts. The fork has no nightly or preview releases, so `t3 update --channel` takes only stable and the mobile check compares every host against the latest stable release. The SSH runner reads SHA256SUMS first and stops with a clear message when the release has no archive for the host. ship-mac.sh now builds, notarizes (through the keychain profile, newly supported by build-cli-archive.ts), smoke-tests, and uploads the darwin-arm64 CLI archive and SHA256SUMS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lytics-fully-stripped # Conflicts: # apps/web/src/branding.ts # apps/web/src/lib/bootError.ts
Agent feedback only existed to send reports to upstream T3 through analytics, which this fork already strips, so reports were stored locally and every card closed as cancelled. Remove the feature on every surface: the t3_feedback MCP tool, `t3 feedback` CLI, feedback store and service, the agentFeedback setting and capability, the feedback_request turn item and event, the answer RPC, web and mobile cards and settings rows, the runtime instruction line, its eval case, and unused translations. Migration 108 stays since migrations are append-only. A settings.json that still holds agentFeedback decodes with the key ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y-stripped # Conflicts: # apps/server/src/auth/RpcAuthorization.test.ts # apps/server/src/feedback/FeedbackReport.ts
Copied thread links, prompt links, pairing links and links handed to outside MCP clients were built on upstream's hosted app (app.t3.codes), which this fork does not run. Copied links now use the environment's own web app: the address this client reaches it on, else a LAN or tailnet endpoint the server advertises, else the t3code:// app scheme. Pairing links use the endpoint's own /pair URL. Outside MCP clients get links on the origin they called. A pasted server link becomes a chip when the clipboard's T3 fragment carries that thread, and MCP still points a pasted link at its thread id. Old app.t3.codes thread links still parse, without any network access. The mobile app drops the app.t3.codes and clerk.t3.codes associated domains and Android intent filter (the .well-known files go too), and its Legal screen opens the fork's telemetry doc instead of t3.codes. The hosted app URL used by T3 Connect sign-in and approval now has no default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The boot error page runs before the app bundle, so its new import from @t3tools/shared broke the bundled dev bootstrap. Also updates a client runtime test that still expected connectionMethod on the socket URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Problem
Upstream T3 Code was publicly called out for default-on telemetry: reading
~/.codex/auth.jsonand~/.claude.jsonto hash account ids, a persistent device id, model and token usage sent throughingest.t3.codesto PostHog, and Axiom relay traces that web and mobile cannot turn off. The fork had only stubbed these out. The startup auth-file reads and the device/account hashes on every WebSocket URL were still live, and several paths still contacted or named upstream:t3 updateand SSH installs pulled upstream's telemetry-enabled build, copied links usedapp.t3.codes, triage filed issues on upstream's repo, and agent feedback existed only to send reports to T3.Change
t3 update, server self-update, the mobile update check and SSH remote install now usepseudoseed/t3code_devreleases.ship-mac.shbuilds and uploads the darwin-arm64 CLI archive andSHA256SUMS. Linux and Windows SSH hosts get a clear "no archive" message.t3code://when none is reachable. Mobile drops upstream's EAS owner, project id, update URL andt3.codesassociated domains.t3.codes,posthog.comandaxiom.co, and the desktop main window cancels requests to them.scripts/no-upstream-telemetry.test.tsfails CI if an upstream sync reintroduces any of it. The sync-upstream skill says to delete reintroduced analytics, not stub it.Scope
Fork-only privacy work requested by the owner. Not for upstream.
Verification
vp run check:changed: format, lint, knip, graphql, typecheck (43 packages) and react compiler pass. 146 of 152 test files pass. The 6 failures are local environment only: Node 22.23.4 here vs the pinned 26.13.1 (regex modifiers in evals,statement.statin 2 orchestrator tests), the mobilenode:seabundling error (reproduced on the base commit in a clean worktree), and 2 sshgziptests tied to macOStar. CI is the authority.ingest.t3.codesstring, then passing.fetchin a child process: it fails withENOTFOUNDwithout ever reaching the real resolver.Claude Opus 5.5 via Claude Code in PseudoCode.
🤖 Generated with Claude Code