GeezerVison is showing github.com — fix(connect): respect relay tracing opt-outs and remove machine details by shivamhwp · Pull Request #42356 · pingdotgg/t3code
Conversation
shivamhwp
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Relay connection traces sent to Axiom omit machine addresses, query strings, logs, stack frames, and operator-supplied resource attributes. Failures keep their error types.
Browsers opened from a server follow its telemetry policy. Mobile relay tracing follows the existing Send crash reports switch. Batches due while tracing is off are dropped.
Verification
vp run check:changed passed on Linux x64 at f7a00e05133eb9a1e1e5217bc4e6e11bc3366afb. Tests cover the exported payload, queued batches, mobile opt-out, and browser reconnect.
- iPhone 18 Pro simulator, iOS 27.0, T3 Code Dev 2.3.0 (1). The Diagnostics screenshots compare
aaadc0cb4399 and 588a5887d8c and cover the copy in this diff. Live Axiom delivery and signed-in T3 Connect were unverified.
Claude Fable 5.2 in Claude Code and GPT-6.2 Sol in Codex.


Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…and phone opt-outs
Relay connection traces still carried the address of the machine a request
went to, raw log lines, install paths in stack frames, and any resource
attributes an operator set for their own receiver. A browser opened from a
server that opted out, and a phone with crash reports off, kept sending them.
The relay tracer now drops request hosts, ports and query strings, log
events, frame directories and operator resource attributes. The server tells
its clients whether relay tracing is allowed, a browser opened from it follows
that, and the phone app follows Send crash reports.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The server's relay resource took the operator's own service.instance.id.
Frame scrubbing split on spaces and kept query strings, and passed a stale
header line through. A browser trusted the cached config of an earlier
session before its server answered. Spans queued before an opt-out were
still sent.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ly the live session
Scrubbing a frame in place still let message text and a URL's host through.
A frame is now rebuilt from its function, file name and position, and any
other line is dropped. A browser kept the previous session's answer across a
reconnect; it now takes the answer from the config that opened the current
session and exports nothing without one.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
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: 8261b23 · PR result: f7a00e0 · 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Relay tracing now filters exported data and checks whether sending is enabled. Server configuration exposes tracing permission for browsers. The mobile crash-report setting controls mobile relay traces. Documentation and tests describe and verify these controls.
Changes: Relay tracing controls
| Layer / File(s) |
Summary |
Filter trace data and gate exports packages/shared/src/relayTracing.ts, packages/shared/src/relayTracing.test.ts, docs/user/telemetry.md |
Relay tracing removes request-address attributes, span events, and original error stack frames. It checks whether sending is enabled when it sends. Tests cover filtered payloads and disabled sending. |
Expose server tracing permission packages/contracts/src/server.ts, apps/server/src/cloud/relayTracing.ts, apps/server/src/cloud/relayTracing.test.ts, apps/server/src/ws.ts, docs/user/managed-policy.md |
Server observability configuration adds relayTracingAllowed. The server derives this value from environment settings and managed policy. |
Propagate server permission to browsers apps/web/src/state/server.ts, apps/web/src/state/server.test.ts, apps/web/src/cloud/publicConfig.ts, apps/web/src/appInit.tsx, apps/web/src/lib/runtime.test.ts, docs/user/telemetry.md |
Browser state reads the server’s tracing permission and syncs it to public telemetry configuration. Browser telemetry behavior distinguishes server permission, desktop settings, hosted static apps, and unset server state. |
Connect mobile diagnostics setting to tracing apps/mobile/src/features/observability/diagnosticsSetting.ts, apps/mobile/src/features/observability/observe.ts, apps/mobile/src/features/observability/tracing.ts, apps/mobile/src/features/observability/tracing.test.ts, apps/mobile/src/features/diagnostics/SettingsDiagnosticsRouteScreen.tsx, apps/mobile/src/i18n/translations/*.json, docs/user/telemetry.md |
The crash-report setting updates diagnostics sending state, which gates relay tracing. The setting description and translations state that disabling crash reports also stops connection traces. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix · Severity of issue fixed: Medium
Sequence Diagram(s)
sequenceDiagram
participant T3CodeServer
participant PrimarySessionConfig
participant PrimaryRelayTracingAllowedAtom
participant RelayTelemetrySync
participant PublicConfig
T3CodeServer->>PrimarySessionConfig: Send observability.relayTracingAllowed
PrimarySessionConfig->>PrimaryRelayTracingAllowedAtom: Provide initial config and updates
PrimaryRelayTracingAllowedAtom->>RelayTelemetrySync: Emit permission value
RelayTelemetrySync->>PublicConfig: Call setServerRelayTelemetry(value)
Loading
Possibly related issues
- pingdotgg/t3code issue 42283 — The PR makes browser tracing follow server telemetry policy and mobile tracing follow the crash-report setting. Its other objectives are not covered here.
Suggested reviewers: mr-neutr0n, juliusmarminge
Merge Risk: Minimal · up to f7a00
-
This change filters machine details out of relay connection traces and makes browser and mobile tracing follow the relevant opt-outs. No merge-blocking issue was found in the supplied context. Normal checks and the author's reported verification apply before merge.
Pre-merge checks: 3 · 1
-
Failed checks: 1 warning
| Check name |
Status |
Explanation |
Resolution |
| Description check |
 |
The description covers the problem (relay connection traces sent to Axiom expose machine addresses, query strings, logs, stack frames, and resource attributes), the change (browser traces follow serve… |
Add a Scope section. Link the issue that shows the bug, or explain why a small obvious fix needs no issue. Mention any maintainer request. Expand the Problem section with expected behavior and reproduction steps. Confirm that the PR title u… |
Passed checks: 3 passed
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title follows the conventional commit format and names the main change: relay tracing opt-outs are now respected and machine details are removed from relay traces. The changeset matches this, incl… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title follows the conventional commit format and names the main change: relay tracing opt-outs are now respected and machine details are removed from relay traces. The changeset matches this, including the sanitizer changes in packages/shared, the telemetry gating in web and server, and the mobile diagnostics setting. The title is concise and specific, so it passes.
Full details: Description check
-
Explanation
The description covers the problem (relay connection traces sent to Axiom expose machine addresses, query strings, logs, stack frames, and resource attributes), the change (browser traces follow server telemetry policy, mobile follows the Send crash reports switch, queued batches dropped while off), and a verification section with commands, commit hash, platform, and screenshots. It also names the models used, as the template asks. Gaps: the Scope section is missing. The description does not say why this is a bug fix rather than a feature, does not link an issue, and does not state that it is a bug fix for an obvious problem. The Problem section also lacks expected behavior and reproduction steps. The Verification section states that live Axiom delivery and signed-in T3 Connect were not checked, which is correct. The title is not included in the description, so conventional commit format cannot be checked from it.
Resolution
Add a Scope section. Link the issue that shows the bug, or explain why a small obvious fix needs no issue. Mention any maintainer request. Expand the Problem section with expected behavior and reproduction steps. Confirm that the PR title uses a conventional commit format in plain language, as the template asks.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 71a4772 and f7a00e0.
Files selected for processing: 11
-
apps/mobile/src/features/observability/diagnosticsSetting.ts
apps/mobile/src/features/observability/tracing.test.ts
apps/server/src/cloud/relayTracing.test.ts
apps/web/src/appInit.tsx
apps/web/src/cloud/publicConfig.ts
apps/web/src/state/server.test.ts
apps/web/src/state/server.ts
docs/user/telemetry.md
packages/contracts/src/server.ts
packages/shared/src/relayTracing.test.ts
packages/shared/src/relayTracing.ts
Files with no reviewable changes: 1
-
- apps/web/src/cloud/publicConfig.ts
Files skipped from review as they are similar to previous changes: 3
-
- apps/web/src/state/server.ts
- docs/user/telemetry.md
- packages/contracts/src/server.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
wangart
added a commit
to wangart/t3code
that referenced
this pull request
Nov 24, 2026
Strip sensitive fields from relay spans and gate browser and mobile
exports on their respective telemetry policies.
Backport pingdotgg#42356 at f7a00e0. Keep the fork's
opt-in default in the server policy test and telemetry guide.
Backport by GPT-6.2 Sol in Codex.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
lidge-jun
added a commit
to goat-si/goat
that referenced
this pull request
Nov 25, 2026
…ibutes
From upstream dc7b8802b8 (pingdotgg/t3code#42356). GOAT already drops request addresses, query strings, log events and stack frames from relay spans through its allowlist; this adds the part it was missing: the relay exporter no longer reads OTEL_RESOURCE_ATTRIBUTES or the operator's service.instance.id.
lidge-jun
added a commit
to goat-si/goat
that referenced
this pull request
Nov 26, 2026
* fix(server): MCP tool analytics send only closed error codes and delivery values
Port of upstream 7e269e044b (pingdotgg/t3code#42397).
* fix(desktop): Windows desktop applies the saved user telemetry choice
Port of upstream 3ba003be06 (pingdotgg/t3code#42376).
* fix(server): relay-delivered webhook runs no longer export their spans to the relay
Port of upstream 30f141e2e7 (pingdotgg/t3code#42450). The run a webhook starts is local work whose spans carry workspace paths.
* fix(server): relay tracing waits for the desktop login shell before exporting
Adapted from upstream 49ef156624 (pingdotgg/t3code#42464); GOAT resolves relay tracing once at startup.
* fix(mobile): analytics uses its own random device id
Port of upstream 482e197fae (pingdotgg/t3code#42394). The hashed analytics device id no longer reuses the relay device id, so the two cannot be linked.
* fix(relay): traces no longer record callers' IP addresses or user agents
Port of upstream 4eccb0ecfc (pingdotgg/t3code#42380).
* fix(connect): relay traces leave out the operator's own resource attributes
From upstream dc7b8802b8 (pingdotgg/t3code#42356). GOAT already drops request addresses, query strings, log events and stack frames from relay spans through its allowlist; this adds the part it was missing: the relay exporter no longer reads OTEL_RESOURCE_ATTRIBUTES or the operator's service.instance.id.
* fix(desktop): a saved Windows telemetry opt-out beats an inherited opt-in
* fix(shared): blank Windows telemetry values no longer hide a saved opt-out
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|