1 Commits

Author SHA1 Message Date
chethanuk 516e7d1fd0 feat(session): compare findings across two review sessions (#922) (#946)
* feat(session): compare findings across two review sessions (#922)

After a fix-and-rerun cycle there is no way to see what changed between two
saved sessions short of diffing two comment lists by hand. Adds
`ocr session compare <before> <after>`, with `--json`, grouping findings into
new, persisting, resolved and not-reviewed.

Matching is on path, category and snippet rather than line numbers, so a
finding that only drifted down the file still counts as persisting.

* fix(session): pass os.Stdout to renderComment after main's signature change

renderComment gained an io.Writer parameter on main after this branch was
cut, so the merge left the compare printer calling it with one argument and
the package failing to build. The rest of session_cmd.go already passes
os.Stdout; this matches it, and the stale comment explaining why the printer
avoided an io.Writer no longer applies.

Claude-Session: https://claude.ai/code/session_01FoMHZQ3qqdt98LHTwSJuTG

---------

Co-authored-by: Kite <254839944+lizhengfeng101@users.noreply.github.com>
2026-08-27 09:55:17 +08:00