Repository navigation
fix(cli): drop the dead --share-usage flag from the help - #312
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
0875e89 made usage counting the default and removed every read of --share-usage, but the verify, check and observe synopsis lines still listed it. Per docs/telemetry.md only DO_NOT_TRACK=1, DIFFCI_NO_SEND=1 or DIFFCI_SHARE_USAGE=0 stop counting, so an opt-in flag has nothing to do. The help test now checks the flag is gone and that the help still names DIFFCI_SHARE_USAGE=0. Fixes DiffCI#311 Signed-off-by: FredApps <[email protected]>
FredApps
marked this pull request as ready for review
November 18, 2026 00:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #311
What: removes
--share-usagefrom thediffci verify,checkandobservesynopsis lines inpackages/diffci-cli/src/client/cli.ts.Why removing, not wiring up: the flag was the opt-in for usage reporting until 0875e89 made counting the default. That commit removed every
flags["share-usage"]read and the help sentence for the flag, but left the flag in the synopsis lines.docs/telemetry.mdand the help's own telemetry paragraph say:diffci telemetry --mode count-only|repopicks what is sent;DO_NOT_TRACK=1,DIFFCI_NO_SEND=1orDIFFCI_SHARE_USAGE=0stop counting.An opt-in flag would do nothing. A flag that turns counting off would contradict the docs, which give environment variables as the only way.
DIFFCI_SHARE_USAGEitself is unchanged.Test:
tests/client/cli-help.test.tsnow asserts thatdiffci helpdoesn't print--share-usageand still namesDIFFCI_SHARE_USAGE=0. Without thecli.tschange, the new assertion fails ("help lists --share-usage, which no code reads").Local checks:
npm run typecheck,npm test(1167 pass),npm run build,npm run audit:boundaryandnpm run agent:checkall pass.npm run typecheck,npm run buildandnpm run package:checkpass.npm test: 517/519. The 2 failures intests/client/cli-agent.test.tsalso fail on unchanged main: a stalediffci verifyhelp regex, and aninitinstall test that depends on the local npm layout.Both changed files are already in
release-files.json.