Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): render Markdown in expanded harness messages

cyh5dd0ae84ab30
diff --git a/ui/src/components/workbench/ChatPage.tsx b/ui/src/components/workbench/ChatPage.tsx
index ee7931e07..b05977e38 100644
--- a/ui/src/components/workbench/ChatPage.tsx
+++ b/ui/src/components/workbench/ChatPage.tsx
@@ -1560,21 +1560,19 @@ const MessageRow = memo(function MessageRow({ message, session, messageFontSize,
// Agent / system replies AND the user's own messages render as markdown (users
// routinely type lists / code / **emphasis** and expect it formatted). Only
- // harness-triggered prompts (scheduled task / watch / webhook) stay verbatim —
- // that row is a collapsed technical preview where the raw text is the point.
+ // Every message body renders as Markdown — including the expanded harness row
+ // (scheduled task / watch / webhook prompt), which used to stay verbatim.
+ // Harness prompts and the user's own messages keep soft breaks so their
+ // original line breaks stay visible (a harness prompt often mixes authored
+ // Markdown with line-oriented waiter output); agent/system replies are
+ // authored Markdown and must not get stray hard breaks.
const bodyNode = message.text ? (
- isHarness ? (
- <div className="whitespace-pre-wrap break-words text-[13px] text-foreground">{message.text}</div>
- ) : (
- // Keep the user's own newlines visible (soft-break → <br>); agent/system
- // replies are authored markdown and must not get stray hard breaks.
- <Markdown
- content={message.text}
- softBreaks={isUser}
- references={(message.content as { references?: MentionReference[] } | null)?.references}
- className="vr-markdown--inherit-size"
- />
- )
+ <Markdown
+ content={message.text}
+ softBreaks={isUser || isHarness}
+ references={(message.content as { references?: MentionReference[] } | null)?.references}
+ className="vr-markdown--inherit-size"
+ />
) : messageAttachments.length === 0 ? (
<div className="text-[13px] text-muted">—</div>
) : null;