Repository navigation
End-of-batch toast counts every highlight marked Captured (#1667) - #1672
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…1667) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
Review findings
|
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.
Release note: Fixed: the end-of-batch toast now counts every highlight marked Captured, not only the last ones.
Closes #1667
Cause: with Render While Capturing on, each clip's highlights are marked Captured as the clip settles (
markClipCaptured, #861). The end-of-batch handler then finds them already Captured, somarkBlockCapturedreports only highlights it moves itself, and the toast's count covers just the leftovers. It affects every batch with Render While Capturing, not only demo groups. Without it, all marking happens at the end and the count was right.Fix:
markBlockCapturedrecords each highlight it moves to Captured in a Set of uids on the dispatch, in both the per-clip and the end pass, and the toast usesbatchMarkedText(dispatch)(the Set's size), so a highlight counts once however often its status changes. No file ceiling change: the file stays at its limit.Test done
npm run test:unit: all pass. New tests incapture_pane_logic.test.js(batchMarkedText) and an e2e step incapture-multimap.spec.js: a per-clip mark, thencapture_takes_verified, expects the toast count; the e2e step fails on dev (run once).Pre-PR check
markClipCaptured/lastDispatch: only capture_pane.js;markedUidsis a field on a fresh dispatch per batch, so it resets each batch and is not sent over IPC (the streaks are, the dispatch is not).🤖 Generated with Claude Code