Resolve / react / reply. Anchor-stable through AI rewrites.
A complete comment-thread component with reply chains, emoji reactions, resolve toggle, and the anchor-stability mechanic that keeps comments attached when an AI agent rewrites the surrounding text. The 'anchor changed' badge fires only when the original phrase is unrecoverable.
import { CommentThread } from "@/components/ui/comment-thread";
<CommentThread
comment={topComment}
replies={replies}
onReply={handleReply}
onResolve={handleResolve}
/>components/ui/ folder. You own the code.