Skip to content

[Bug]: Desktop: T3CODE_TELEMETRY_ENABLED=false from the login shell is ignored for relay tracing (checked before the shell environment is read) #37772

Closed

Description

@hknaksu

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

Steps to reproduce

  1. Add export T3CODE_TELEMETRY_ENABLED=false to ~/.bash_profile.
  2. Confirm the shell exports it: bash -ilc 'echo $T3CODE_TELEMETRY_ENABLED' prints false.
  3. Make sure the variable is not set in launchd: launchctl unsetenv T3CODE_TELEMETRY_ENABLED.
  4. Quit T3 Code fully (⌘Q) and open it from the Dock.
  5. Check window.desktopBridge.getRelayTelemetryEnabled() in the renderer.

Expected: false. Relay tracing is off.
Actual: true. Relay tracing stays on.

Expected behavior

Expected: false. Relay tracing is off.

Actual behavior

Actual: true. Relay tracing stays on.

Impact

Minor bug or occasional failure

Version or commit

0.1.9 and 0.1.10-nightly.20261116.4800

Environment

macOS 26.7.3

Logs or stack traces

Span timings from ~/.t3/userdata/logs/desktop.trace.ndjson, in ms after launch:

  Span                                            Launch 1   Launch 2
  desktop.shellEnvironment.installIntoProcess            0          0
  desktop.shellEnvironment.refresh (start)               1          1
  desktop.ipc.window.installRelayTelemetry              24         24   <-- flag decided here
  desktop.shellEnvironment.publish                     643        454   <-- shell values arrive

The relay telemetry flag is fixed roughly 450-650 ms before the shell environment shows up.

Screenshots, recordings, or supporting files

No response

Workaround

Set the variable in launchd so the app has it from the start:

launchctl setenv T3CODE_TELEMETRY_ENABLED false

To keep it after a reboot, add a LaunchAgent that runs the same command at login.

Activity

  1. added
    bug
    needs-triage
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions