Repository navigation
feat(review): add plannotator-tui-review, the data side of code review - #150
Merged
Merged
Conversation
Scope capture from git (temporary index for untracked files, 8 MiB guard, uncommitted-to-branch fallback), the browser's CodeAnnotation record, pure re-anchoring (still there / moved / not in the diff / outdated), review.json storage with sends and archiving, and the agent feedback in the browser's exportReviewFeedback format.
This was referenced Nov 15, 2026
Merged
1 task
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.
Adds
crates/plannotator-tui-review, a library with the data side of code review: everything except the screen. The app doesn't use it yet; the review screen comes in a follow-up PR. It has no dependency on diffs-rs, ratatui or the binary.What it does:
GIT_INDEX_FILE); the real.git/indexis never written. Patches over 8 MiB are refused with a message.CodeAnnotationuses the browser's field names, plus an optional author for notes from Pi. Our own fields sit under oneplannotator_tuikey.<data dir>/clients/plannotator-tui/reviews/<project>/<scope>-<8hex>/review.json, rewritten atomically.exportReviewFeedbacktext, plus the highlighted lines (up to 40), so the agent sees deleted lines too.Tests: 53. The export tests compare against output from running Plannotator's own export code on the same notes. The git tests use real temporary repos and skip with a message if git is missing.
Not done here: wiring into the binary, the review screen, the Herdr launcher, and adding the crate to the publish lists.