Skip to content

feat: strip all telemetry, phone-home, and default provider tracking#1

Open
rndubs wants to merge 5 commits intodevfrom
claude/strip-telemetry-981PI
Open

feat: strip all telemetry, phone-home, and default provider tracking#1
rndubs wants to merge 5 commits intodevfrom
claude/strip-telemetry-981PI

Conversation

@rndubs
Copy link
Owner

@rndubs rndubs commented Mar 2, 2026

Remove or disable all outbound network calls that are not explicitly user-initiated to prevent any phone-home behavior after installation:

  • Disable OpenTelemetry experimental_telemetry in LLM stream and agent
  • Remove x-opencode-* tracking headers and User-Agent from LLM requests
  • Replace ShareNext with no-op stubs (session sharing to opncd.ai)
  • Disable auto-update version checking (Installation.latest returns VERSION)
  • Disable auto-upgrade mechanism (cli/upgrade.ts is now a no-op)
  • Disable models.dev remote fetching and periodic refresh
  • Skip remote .well-known/opencode config fetching
  • Disable Control.token() enterprise phone-home
  • Disable external skill discovery remote fetching
  • Remove opencode/anthropic default providers from TUI priority list

https://claude.ai/code/session_01U9pmLo7i6uNvmkykqVX3WA

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

claude and others added 5 commits March 2, 2026 01:45
Remove or disable all outbound network calls that are not explicitly
user-initiated to prevent any phone-home behavior after installation:

- Disable OpenTelemetry experimental_telemetry in LLM stream and agent
- Remove x-opencode-* tracking headers and User-Agent from LLM requests
- Replace ShareNext with no-op stubs (session sharing to opncd.ai)
- Disable auto-update version checking (Installation.latest returns VERSION)
- Disable auto-upgrade mechanism (cli/upgrade.ts is now a no-op)
- Disable models.dev remote fetching and periodic refresh
- Skip remote .well-known/opencode config fetching
- Disable Control.token() enterprise phone-home
- Disable external skill discovery remote fetching
- Remove opencode/anthropic default providers from TUI priority list

https://claude.ai/code/session_01U9pmLo7i6uNvmkykqVX3WA
- Fix git commit signing in test fixture by passing -c commit.gpgsign=false
  (the environment has commit.gpgsign=true configured globally which causes
  test commits to fail when the signing server returns 400)
- Update Discovery.pull tests to expect empty arrays since remote skill
  fetching has been disabled
- Update well-known config test to verify fetch is NOT called since
  remote config fetching has been stripped
- Skip chmod-based readonly tests when running as root (chmod 444 does
  not prevent writes for the root user)

https://claude.ai/code/session_01U9pmLo7i6uNvmkykqVX3WA
Prevent the opencode built-in provider from auto-loading even when
models exist in the local snapshot. Only user-configured providers
from opencode.json will be available. This ensures the TUI only shows
providers the user has explicitly configured.

https://claude.ai/code/session_01U9pmLo7i6uNvmkykqVX3WA
Remove the automatic inclusion of `reasoningSummary: "auto"` for OpenAI,
Azure, and GitHub Copilot providers. This parameter is not supported by
third-party OpenAI-compatible endpoints (e.g. LightLLM, Azure proxies)
and causes "unknown parameter reasoningSummary" errors.

https://claude.ai/code/session_017AMgq3eK3ZtDkCwveHVgBc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants