Skip to content

fix(config): make telemetry_oss_disabled key settable - #2486

Open
Seyamalam wants to merge 2 commits into
git-ai-project:mainfrom
Seyamalam:fix/2434-telemetry-oss-config-round-trip
Open

Seyamalam wants to merge 2 commits into
git-ai-project:mainfrom
Seyamalam:fix/2434-telemetry-oss-config-round-trip

Conversation

@Seyamalam

@Seyamalam Seyamalam commented Nov 16, 2026 •

Copy link
Copy Markdown

git-ai config displays telemetry_oss_disabled, but config set/config unset rejected it as an unknown key — the only settable spelling was telemetry_oss, which wasn't shown in the output. Opting out of OSS telemetry through the CLI was effectively undiscoverable.

telemetry_oss_disabled is now accepted as an alias for the telemetry_oss file key on the set and unset paths (true -> off, false -> on), and telemetry_oss itself is exposed on the read paths (config telemetry_oss and show-all) so both spellings stay consistent.

Fixes #2434

Test plan

  • cargo test config_cli_coverage — 15 tests pass, including the new test_config_telemetry_oss_keys_round_trip (defaults, set/get/unset through both spellings, invalid-boolean rejection, show-all consistency)
  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings — no warnings in changed files (remaining errors are pre-existing on main under rustc 1.100)

Devin Review

@CLAassistant

CLAassistant commented Nov 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

This branch has not been deployed

No deployments
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.

[Bug]: git-ai config shows telemetry_oss_disabled, but only telemetry_oss can be set

2 participants