Repository navigation
fix(pstack): double-quote Mermaid flowchart labels in teach - #1350
Open
eldano1995 wants to merge 1 commit into
Open
eldano1995 wants to merge 1 commit into
eldano1995 wants to merge 1 commit into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
An unquoted Mermaid flowchart label that starts with
/, such asP[/run-pipeline with 55s timeout], opens the parallelogram delimiter[/.../]. The parser fails withLexical error ... Unrecognized text.teachstep 5 redraws earlier nodes in each diagram of a series. One unquoted route label therefore breaks every diagram after it.What changed
pstack/skills/teach/SKILL.mdstep 5: one sentence after "A mermaid diagram fits a flow or structure where the labels carry the meaning." telling the agent to double-quote node and edge labels (A["..."],-->|"..."|).harness/pstack/claude-code/skills/teach/SKILL.md: regenerated.Scope
Only those two files.
Verification
npm install --no-save ajv ajv-formats fast-check@4.5.3node scripts/validate-plugins.mjs: passednode scripts/generate-pstack-harness-trees.mjs --check: passednode scripts/check-pstack-docs.mjs: 0 problemsgit diff --check: cleanmermaid.parse():P[/run-pipeline with 55s timeout]fails withLexical error on line 2. Unrecognized text.;P["/run-pipeline with 55s timeout"]parses.