diff --git a/desktop/src/components/chat/MermaidRenderer.tsx b/desktop/src/components/chat/MermaidRenderer.tsx
index 8c5151dd..4489b05c 100644
--- a/desktop/src/components/chat/MermaidRenderer.tsx
+++ b/desktop/src/components/chat/MermaidRenderer.tsx
@@ -40,7 +40,7 @@ type MermaidThemeColors = {
const FLOWCHART_START = /^\s*(?:graph|flowchart)\b/i
const FLOWCHART_NODE_START = /^([A-Za-z][\w-]*)\[/
-const UNQUOTED_FLOWCHART_LABEL_UNSAFE = /
|[{}[\]*]/i
+const UNQUOTED_FLOWCHART_LABEL_UNSAFE = /
|[{}[\]*\/]/i
function isFlowchartDiagram(code: string) {
const firstMeaningfulLine = code