Skip to content

Fix: show outdated comments instead of hiding them#24

Merged
heiko-braun merged 1 commit into
mainfrom
fix/content-changes
May 19, 2026
Merged

Fix: show outdated comments instead of hiding them#24
heiko-braun merged 1 commit into
mainfrom
fix/content-changes

Conversation

@heiko-braun

Copy link
Copy Markdown
Owner

Summary

  • When a document changes after comments are placed, threads that can no longer resolve their anchor (hash mismatch + excerpt not found) are now shown in a visible "Outdated Comments" section at the bottom of the document instead of being silently hidden
  • New comments capture ~300 chars of surrounding context at creation time, displayed when the comment becomes outdated
  • Removes dead sync/publish code (no-op ReviewSyncer interface, handlers, UI buttons)

Test plan

  • Run draft review on a repo with existing comments
  • Edit a document to invalidate anchors (change text that has comments)
  • Verify outdated comments appear in amber-styled section at document bottom
  • Verify sidebar count matches total visible threads (inline + outdated)
  • Click an outdated thread card — panel opens with full comment history
  • Create a new comment — verify context is captured in anchor
  • Confirm go build ./... and go test ./internal/review/... pass

🤖 Generated with Claude Code

When a document is edited after comments are placed, character offsets
shift and excerpt text may vanish. Previously these threads silently
disappeared from the document view while the sidebar still showed
the correct count.

Now the server computes outdated status (hash mismatch + excerpt not
found) and the frontend renders unresolvable threads in a visible
"Outdated Comments" section at the bottom of the document with their
original context preserved. Also removes the dead sync/publish code
(ReviewSyncer interface, handlers, UI buttons) which were no-op stubs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@heiko-braun heiko-braun merged commit f08f288 into main May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant