enricoros / big-AGI

Generative AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. It features AI personas, AGI functions, multi-model chats, text-to-image, voice, response streaming, code highlighting and execution, PDF import, presets for developers, much more. Deploy on-prem or in the cloud.
https://big-agi.com
MIT License
5.59k stars 1.29k forks source link

[BUG] [2.0] Firefox: First Mermaid diagram won't load #644

Open fry69 opened 2 months ago

fry69 commented 2 months ago

Description

When the last selected chat (which gets loaded upon window/browser load/reload) contains a Mermaid diagram, it won't load in Firefox (tested with current stable/130 and nightly/132).

This seems to be a Firefox-only problem/bug, Chrome loads the diagram without problems upon forced refresh.

Screenshots

This shows up in Firefox when the diagram fails upon first load ->

grafik

This shows up when switching to a different chat (which also contains a diagram, that works fine) and then switching back to the original first chat with the crash ->

grafik

(this means switching between chats does not let the diagram render, the problem persists)

Notes

Everything works fine upon reload in Firefox if the last selected chat does not contain a Mermaid diagram.

The Developer Console does not seem to contain relevant information.

This was tested locally with npm run dev against the current big-agi-2 branch.

Device and browser

Firefox stable/nightly on M1 Mac