Skip to content

Streaming markdown with highlighted code blocks #8

Closed

Description

@rynfar

Ledger rows: TR-MARKDOWN, TR-ASSISTANT (see apps/native/parity/LEDGER.md for web source paths)

Scope: Replace the stock markdown view with an incremental renderer suited to streaming (parse from the last stable block, mend dangling markers, tree-sitter highlighting off the UI thread, bounded caches), matching the web's code block, table, link, and alert styling.

Done when: A long streamed answer renders without frame drops (measure); code blocks are highlighted and copyable; text is selectable across blocks.

Follow apps/native/AGENTS.md, apps/native/docs/design-system.md, and the native-worker skill. Update the ledger rows in the same PR.

Activity

  1. added this to the M1 Daily driver milestone on Nov 2, 2026
  2. added
    parity
    native:feature
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 2, 2026
  3. rynfar commented on Nov 2, 2026

    @rynfar
    OwnerAuthor

    Checked in the #68 pass on the smoke server:

    • Code blocks are highlighted, with a language label and a Copy button. Tables, inline code, headings and lists all render.
    • A drag selects text across the heading, paragraph, list and code block in one sweep.
    • A live Showcase turn streams the answer into place (frames captured while streaming).

    I did not take a frame-time measurement in this pass. The per-update derive timing in #17 (34µs per streamed update) is the measurement on record.

    Screenshots: /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/07-workgroup.png, /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/08-select-across.png, /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/08-stream-t2.png, /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/08-stream-a3.png, /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/08-stream-approved.png, /private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots68/00-launch-real-window.png (real window).

  4. removed
    status:review
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions