Skip to content

fix: sanitize mermaid node ids in uipath init output (#1505)#1595

Open
radu-mocanu wants to merge 1 commit intomainfrom
fix/issue-1505-mermaid-syntax
Open

fix: sanitize mermaid node ids in uipath init output (#1505)#1595
radu-mocanu wants to merge 1 commit intomainfrom
fix/issue-1505-mermaid-syntax

Conversation

@radu-mocanu
Copy link
Copy Markdown
Collaborator

Summary

  • sanitize . and : in mermaid node ids generated by uipath init so the diagrams render in standard mermaid viewers
  • runtime graph node ids (used as breakpoint locations) are unchanged; sanitization happens only in the mermaid emission layer

Why

Fixes #1505

UiPathRuntimeNode.id uses file.py:line so it can double as a breakpoint location for the debug runtime, but mermaid treats . and : as syntax. Every generated .mermaid file failed to parse.

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DX] GAP-17: Auto-generated .mermaid files have invalid Mermaid syntax — diagrams fail to render

1 participant