feat(chats): show messages as Markdown #8

Merged babariviere.com
targeting main from feat/chats-show-messages-as-markdown
Merged opened by babariviere.com
targeting main from feat/chats-show-messages-as-markdown

Summary #

Chats show the Owner's messages and the agent's answers as Markdown. This came from the Owner's feedback on ticket 06, and ticks one box of ticket 30.

 <ChatPanel>
   <List>
     <Bubble>   (the Owner's, or the agent's)
-      <Text>{text}</Text>
+      <Md dense text={text} />   (TextView markdown, 20 pt lines, smaller headings)
     <ToolRow>  (unchanged: Geist Mono)

Md takes a new dense size for Chat messages. A Spec keeps the current look.

Evidence #

  • Before: **12 hours**, - item and backticks showed as typed. After: bold, lists and inline code render in both kinds of message. The gallery's ChatPanel sample shows them.
Chat.test.tsx › the Owner's messages and the agent's answers show as Markdown
  plain Text (before): ✗   Md dense (after): ✓
just test: Daemon 29/29, App 22/22, gallery 15/15. just check and just lint pass.

Merge Danger #

Door: two-way

Known limits:

  • Inline code in the Owner's message has no grey behind it, because the message already sits on that grey. Only the mono font marks it.
  • An answer that still streams may show half a list or half a code block for a moment.
  • Links show in the accent colour but open nothing yet.

Blast Radius: Chat

Commits 1

feat(chats): show messages as Markdown
Sign up or Sign in to add to the discussion.