Skip to content

Mobile chat: code syntax highlighting and richer markdown rendering #100195

Description

@steipete

Problem

Agent replies are full of code, and the chat renderers undersell them:

  • iOS/shared chat UI renders via AttributedString(markdown:), which has no code syntax highlighting and no table support — GFM tables come out as raw pipes.
  • Android already renders GFM tables/strikethrough/task lists via CommonMark, but fenced code blocks are plain monospace with no highlighting.

Proposal

  • iOS/shared (OpenClawChatUI, also benefits the macOS app): add fenced-code syntax highlighting and GFM table rendering while keeping streaming render performance. Any new dependency needs a license entry per app policy.
  • Android (ChatMarkdown.kt): add syntax highlighting for fenced code blocks (small library after a health check, or a minimal in-repo lexer for the common languages).

Impact

Code-heavy agent conversations become readable at a glance on both platforms; iOS additionally gains tables.

Metadata

Metadata

Assignees

Labels

P2Normal backlog priority with limited blast radius.app: androidApp: androidapp: iosApp: iosclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestimpact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions