Repository navigation
feat(desktop): mark files viewed in Review, with progress and file keys - #4423
Merged
Merged
Conversation
…iewed # Conflicts: # apps/desktop/src/ui/Review.tsx
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.
What
The Review screen gains GitHub-style viewed marks:
V). Marking a file folds it and moves to the next unviewed file. Its tree row turns muted with a tick.J/Kstep to the next or previous file (tree order, wrapping). The keys are ignored in text fields, menus and dialogs and with modifiers, and they are named in the progress tooltip and the checkbox tooltip.state/reviewViewed.ts, per thread, source and path, in app storage, capped at 2,000). When the agent changes the file again, the mark drops, and the row shows an accent dot ("changed since you viewed it").The keys are local to Review rather than entries in Settings › Shortcuts, because bare letters there are reserved for the thread list.
Changelog
Review: mark files viewed, see your progress, and step through files with J, K and V. A file the agent changes again is flagged.
Testing
bun run check(newstate/reviewViewed.test.ts: hash, viewed/changed/unviewed, storage cap, stepping).mock-thread-1): "0 of 2 viewed".Vmarked app.ts (✓, folded, moved to Composer.tsx, "1 of 2 viewed").Kwent back to the folded app.ts. A mark with a stale hash shows "Changed since viewed" and counts as unviewed.Closes #4395