Skip to content

Pin Mermaid version and add browser regression coverage for chat diagrams #903

Closed as not planned

Description

@devswha

Split from #782: main already renders completed Mermaid fences in chat with lazy loading and source fallback (src/lib/mermaid.ts).

Remaining

  • Pin the lazy-loaded Mermaid renderer to 11.16.1. This keeps the diagram payload off the initial page and avoids v12's default ELK load for ordinary flowcharts.
  • Write a compatibility report that discloses the pinned-library payload and the supported input boundaries (oversized, malformed, unsupported and unavailable input falling back to source).
  • Add browser regressions that run against the actual library, covering:
    • multiple diagrams
    • Korean text
    • themes
    • streaming
    • stale results
    • failed lazy loading
    • mobile controls
    • same-origin and external resource requests
  • Include dependency notices and register the new tests in CI.

Activity

  1. devswha commented on Oct 17, 2026

    @devswha
    OwnerAuthor

    Closing as outdated: main now uses mermaid ^12.1.0, so pinning the lazy-loaded renderer to 11.16.1 no longer applies. A browser regression against the real library for chat diagrams can be filed again on its own if it is still wanted.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions