mirror of
https://github.com/coder/coder.git
synced 2026-11-07 21:29:37 +08:00
File references in user messages now render as inline chips (matching the chat input style) instead of in a separate bordered section at the bottom of the message bubble. This reimplements #23131 which was accidentally reverted during the merge of #23072 (the spend-limit UI PR resolved a merge conflict by dropping the inline chip logic). ## Changes - **FileReferenceNode.tsx**: Export `FileReferenceChip` so it can be imported for read-only use (no remove button when `onRemove` is omitted). - **ConversationTimeline.tsx**: Iterate through `parsed.blocks` in document order, rendering `response` blocks as text and `file-reference` blocks as inline `FileReferenceChip` components. Removes the old separated file-reference section with `border-t` divider. - **ConversationTimeline.stories.tsx**: Added `UserMessageWithInlineFileRef` and `UserMessageWithMultipleInlineFileRefs` stories.