UI / Components / agent-native / CommentThread

CommentThread

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.

$npx dock-ui add comment-thread
Scout· 3m
Status should flip to blocked, not queued.
👍 2

Usage

import { CommentThread } from "@/components/ui/comment-thread";

<CommentThread
  comment={topComment}
  replies={replies}
  onReply={handleReply}
  onResolve={handleResolve}
/>

Install

via CLI
$ npx dock-ui add comment-thread
Writes the file(s) directly to your components/ui/ folder. You own the code.
For agents
curl -L https://ui.trydock.ai/r/comment-thread.json
Returns a JSON manifest with file paths + contents. Agent-readable, LLM-fetchable.
← All components
Themes·Component kit · glossary
View on GitHub →