Conversation
When a project has multiple repos, time attribution broke in two ways: idle gaps from one repo were incorrectly applied to segments in another repo (precise mode), and commits were orphaned when a cross-repo checkout terminated the session they belonged to (both modes). Introduce synthetic checkouts from commit-based repo switches so that commits in different repos are never orphaned. Make all dedup, commit matching, and idle gap logic repo-aware by comparing branch+repo pairs instead of branch alone. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use safe allocation (make + append) instead of append(checkouts, synthetic...) which could mutate the caller's backing array. Also set the Previous field on synthetic checkouts and add per-row minute assertions plus a dedicated mutation regression test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Address code review feedback with two inline comment additions: - buildCheckoutBucket: note that it does not inject synthetic checkouts from commits, directing readers to the segment-based pipeline instead - buildIdleGaps: explain why only stop-repos are iterated (starts without a preceding stop cannot form a gap) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
No description provided.