Comment ThreadPro
One comment with replies – an assistant reports what it did, folds open details and answers @mentions.
oxyn add comment-threadComment
2 messages/Edit Rename every “customers” to “members” on the pricing page.
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Review threads on a doc, design, ticket or pull request.
- Nested replies (Thread::reply attaches anything deeper than max_depth to the deepest allowed ancestor), reactions that toggle per person, edit and delete for your own comments (delete keeps a placeholder when there are replies), @ mentions (mention_query, mention_matches, mention_spans), agent comments marked as such, and Resolve, which folds the thread into a chip.
When not to use
- Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
- The model menu of an AI chat: use Model Picker instead.
- The prompt box for an agent, in six layouts: use Composer instead.
Installation
Comment Thread is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add comment-threadUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Reply, or ask @Atlas: your reply lands as just now, then Atlas thinks and answers.
Comment
2 messages/Edit Rename every “customers” to “members” on the pricing page.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Details
Edit completed folded open.
Comment
2 messages/Edit Rename every “customers” to “members” on the pricing page.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
People only
The agent does not answer replies.
Comment
2 messages/Edit Rename every “customers” to “members” on the pricing page.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Drawn avatars
Oxyn extra: illustrated portraits instead of photos.
Comment
2 messages/Edit Rename every “customers” to “members” on the pricing page.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
AgentCommentThread
| Prop | Type | Default | Description |
|---|---|---|---|
notesrequired | Vec<ThreadNote> | — | Messages. |
me | (String, u8) | ("Alex Rivera".to_string(), 3) | Your name and portrait seed. |
agent | String | "Atlas" | The agent's name. |
answer | String | "Done – I also updated the meta description." | The agent's answer to a reply (empty: it does not answer). |
title | String | "Comment" | Card title. |
open | bool | Default::default() | Fold the first status line open at the start. |
avatars | String | "photo" | `photo` or `drawn` (illustrated portraits). |
nowrequired | ClockMs | — | Shared clock (thinking delay). |
on_reply | EventHandler<String> | — | A reply was posted. |
on_close | Option<EventHandler<()>> | Default::default() | Close pressed (shows the ✕). |
PhotoAvatar
| Prop | Type | Default | Description |
|---|---|---|---|
seedrequired | u8 | — | Portrait seed. |
size | f32 | 24.0 | Size px. |
drawn | bool | Default::default() | Draw the illustrated portrait instead of the photo. |
AgentOrb
| Prop | Type | Default | Description |
|---|---|---|---|
size | f32 | 24.0 | Size px. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Enter | Send the reply |
| Tab | Reach the status line to fold its details open |
Accessibility
- Status lines are buttons with aria-expanded; the thread is a polite log that announces new replies.
From the spec
- Composer is a combobox with a listbox of people and aria-activedescendant.
- Each comment is an article labelled author · time; deleted reads "Deleted comment".
- Reaction chips are toggle buttons with aria-pressed and "👍 2, including you"; reply toggles expose aria-expanded.
Motion & interaction
Timing
- New comments rise in over 240 ms; reaction counts roll; picker and confirm rows slide in from the side (200 ms).
- Reduced motion: no travel or transitions.
Responsive behaviour
- Fills its container up to 420 px.
Edge cases (spec)
- Below 420 px the composer hides its avatar and replies indent 12 px; actions stay visible on touch.
Notes for AI
- Import
AgentCommentThread,PhotoAvatar,AgentOrbfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AgentCommentThreadElinoxyn_gpui. - Props to set first:
notes,now,seed. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.