Skip to content

feat(desktop): mark files viewed in Review, with progress and file keys - #4423

Merged
LHagfoss merged 3 commits into
mainfrom
feat/desktop-review-viewed
Nov 25, 2026
Merged

LHagfoss merged 3 commits into
mainfrom
feat/desktop-review-viewed

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

The Review screen gains GitHub-style viewed marks:

  • A Viewed checkbox in the file header (or V). Marking a file folds it and moves to the next unviewed file. Its tree row turns muted with a tick.
  • The file list's header reads "1 of 2 viewed". J/K step 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.
  • Each mark keeps a hash of the patch it was read on (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").
  • In the narrow layout, the file picker's options carry a ✓.

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 (new state/reviewViewed.test.ts: hash, viewed/changed/unviewed, storage cap, stepping).
  • Mock, dark theme (mock-thread-1): "0 of 2 viewed". V marked app.ts (✓, folded, moved to Composer.tsx, "1 of 2 viewed"). K went back to the folded app.ts. A mark with a stale hash shows "Changed since viewed" and counts as unviewed.

Closes #4395

@github-actions github-actions Bot added the feature New feature or request label Nov 25, 2026
@LHagfoss
LHagfoss merged commit 8dc7407 into main Nov 25, 2026
10 checks passed
@LHagfoss
LHagfoss deleted the feat/desktop-review-viewed branch November 25, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(desktop): mark files viewed in Review, with progress and file keys

2 participants