Skip to content

Fix #840: Remove dead codev.telemetry setting#865

Merged
amrmelsayed merged 6 commits into
mainfrom
builder/bugfix-840
May 26, 2026
Merged

Fix #840: Remove dead codev.telemetry setting#865
amrmelsayed merged 6 commits into
mainfrom
builder/bugfix-840

Conversation

@amrmelsayed
Copy link
Copy Markdown
Collaborator

Summary

The codev.telemetry setting in packages/vscode/package.json had zero code consumers — it surfaced in VS Code's Settings UI as a toggle that did nothing, and its description ("No telemetry collected") read as a disclaimer rather than control text. Removing it matches the current behavior (codev collects no external telemetry) and removes a user-visible footgun.

Fixes #840

Root Cause

The setting was declared in contributes.configuration.properties but never read by any path in packages/**. Verified by grep on telemetry / TelemetryReporter / sendTelemetryEvent / appInsights — the setting key had no reader.

Fix

  • Removed codev.telemetry entry from packages/vscode/package.json#contributes.configuration.properties
  • Removed the matching row from the extension README.md settings table
  • Added a regression test (packages/vscode/src/__tests__/codev-telemetry-removed.test.ts) asserting the property stays absent from contributes.configuration.properties

The local analytics surface in packages/codev/src/agent-farm/servers/analytics.ts is local-only (not telemetry) and is untouched, per the issue's out-of-scope note.

Test Plan

  • Regression test added (codev-telemetry-removed.test.ts)
  • pnpm test:unit — 35/35 pass
  • pnpm check-types — passes
  • grep -rn "codev.telemetry" packages/vscode/ — zero hits after fix
  • After install, the setting no longer appears in VS Code's Settings UI under Codev

The codev.telemetry entry in packages/vscode/package.json had zero code
consumers — it surfaced in VS Code's Settings UI as a toggle that did
nothing, and its description ("No telemetry collected") read as a
disclaimer rather than control text.

Remove the entry from package.json and the matching row from the
extension README. Add a regression test asserting the property stays
absent from contributes.configuration.properties.

Codev does not collect external telemetry; the local analytics surface
in packages/codev/src/agent-farm/servers/analytics.ts is local-only and
unrelated to this setting (left untouched).
@amrmelsayed
Copy link
Copy Markdown
Collaborator Author

Architect Review

Low-risk change. Setting removed per Option B (the issue's revised direction). CMAP unanimous (gemini=APPROVE, codex=APPROVE, claude=APPROVE).

Verified:

  • codev.telemetry entry removed from packages/vscode/package.json
  • README table row also removed (builder caught this — not explicitly called out in the issue body, good initiative)
  • Regression test added at packages/vscode/src/__tests__/codev-telemetry-removed.test.ts — asserts the key isn't reintroduced
  • Local analytics surface (agent-farm/servers/analytics.ts, dashboard's AnalyticsView) left untouched — correct, since it's local-only computation, not telemetry
  • Net diff 23/6 across 3 real files; well under 300 LOC

Approved. Please merge.


Architect review

@amrmelsayed amrmelsayed merged commit 65f1779 into main May 26, 2026
6 checks passed
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.

codev.telemetry setting description reads as informational, not as a control

1 participant