Investigating and Disabling Default Session Log Uploads in AI Coding Tools

    AI coding tools often bundle required model-context uploads with optional telemetry. This article breaks down four types of outbound data, shows a reusable config patch to disable nonessential uploads, and outlines enterprise controls plus verification so you can separate inference traffic from logging and analytics.

    Where the controversy starts: data leaving by default

    Debates over data compliance in AI coding tools keep coming back. The issue is not that the tools go online—cloud model inference must send context. It is that required traffic and optional telemetry are bundled in the same default settings. Users often cannot tell what is leaving, or how to turn it off.

    Split the problem into four layers: conversation content, identity and asset inventory, behavioral telemetry, and feedback payloads. Clarify each layer before judging risk. A blanket “safe to use” or “do not use” is not useful.

    Four outbound behaviors, by layer

    Layer 1: Session content on every request. With a cloud model API, the full conversation context—including cited code, terminal output, and stack traces—goes in the request body. That is a capability requirement. You cannot config it away. You can only shrink it: send snippets, not whole files, and keep sensitive repos off the tool.

    Layer 2: Stable IDs and plugin inventory. Requests typically carry a stable user ID and session ID, plus a list of installed plugins or extensions. IDs support session correlation and quota accounting (moderate risk). The plugin list fingerprints your stack and toolchain and should be disabled in stricter compliance settings.

    Layer 3: Desktop telemetry and device info. Actions such as sending a message, switching models, changing reasoning intensity, compressing context, branching a session, enabling or installing plugins, and clicking onboarding or upgrade UI can fire telemetry. Fields often include CPU model, physical and logical cores, memory, OS version and architecture, and user ID when signed in. Individually these look harmless; in aggregate they support device fingerprinting and risk controls, so they matter in a privacy impact assessment.

    Layer 4: Feedback that ships the whole session. Likes and dislikes often upload the full current turn for quality work. One casual rating can send an entire code context off-network. Among the four, this has the largest single-event blast radius.

    Turning it off with config: a reusable list

    Mainstream tools often use base settings plus overlay patches. Telemetry and logging live as separate modules or plugins, so a patch file can disable them one by one. Example:

    1. # settings.patch.yaml — disable all nonessential outbound data
    2. - id: session-log
    3. disabled: true
    4. - id: plugin-inventory
    5. disabled: true
    6. - id: session-telemetry-otel
    7. disabled: true
    8. - id: desktop-product-telemetry
    9. disabled: true
    10. - id: product-analytics
    11. disabled: true

    Mapping: session log upload, plugin inventory, tracing telemetry, desktop product telemetry, and general product analytics. With all five disabled, nothing extra leaves besides context required for inference. If you keep tracing for self-hosted troubleshooting, confirm it does not collect code.

    Deeper control in enterprises

    Config is the last gate, not the only one. Add three layers:

    Network. Allowlist egress and use a proxy so only model API hosts are reachable. Block telemetry and analytics endpoints. Keep gateway access logs and archive them for audit.

    Endpoint. Push the patch via a standard image or group policy so machines are not edited by hand. Store the config in a managed repo, scan for drift in CI, and alert if an upgrade overwrites it.

    Deployment. For teams with sensitive code, prefer private or dedicated-cloud deployments so inference and retention stay in your environment and there is no off-network path by design.

    Verify and regress

    Disabled is not the same as effective. Three checks: (1) capture traffic or inspect the proxy and confirm the set of destinations has shrunk; (2) run typical actions (send a message, switch models, compress context, toggle plugins, dislike) and confirm no extra uploads; (3) add config checks to environment bootstrap and rerun after upgrades. Without regression, the next release can silently re-enable telemetry.

    Conclusion

    The fight over default session-log upload is a mismatch between defaults and user expectations, not a missing feature. Individual developers can cover most risk with the five disables plus a “minimum context” habit. Enterprises should close the loop with config distribution, network controls, deployment choice, and verification. Explicitly separating required inference traffic from optional telemetry is a general method for assessing data compliance of any AI coding tool.