Repository navigation
Avoid counting duplicate Muse session events - #2
Merged
andresantonioriveros merged 1 commit intoSep 8, 2026
Conversation
andresantonioriveros
merged commit Sep 8, 2026
317a5e5
into
andresantonioriveros:add-muse-usage-collector
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.
Repeated native completion records and
.msp-viewsession copies currently inflate Muse token and prompt totals. This deduplicates valid completions by record ID across session files and retained-frame children, and excludes.msp-view*directories inside the sessions tree.Records without a usable ID remain countable, and metadata or malformed usage cannot claim an ID before a valid completion. The scan-cache version is bumped so previously inflated totals are rescanned. Existing opencode, subscription, and PAYG behavior is preserved.
This targets
add-muse-usage-collectorfor inclusion in omacom#10610, following our collaboration discussion. No revert of the subscription-window commit is needed. Hiding cached limits after a failed probe can be reviewed separately.Validation:
git diff --checkpasses. Ran./test/allwith the desktop environment variables unset: CLI passes; the shell suite has the same five failures previously reproduced on an untouched upstream snapshot.config-test.sh,snapper-test.sh, andunowned-system-paths-test.shneed a missing siblingomarchy-pkgscheckout;launch-about-test.shfails its roomy-window animation assertion;locate-test.shtries to decode generated Python bytecode as UTF-8.