fix(cli): replace markdown headings with XML tags in thread read output #460
Reference in New Issue
Block a user
Delete Branch "fix/459-xml-tag-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Changed
uwf thread readto wrap role prompts and agent outputs in XML tags (<prompt>and<output>) instead of markdown headings (### Prompt,### Content).Why
Claude Code was treating step outputs as structural headings, which interfered with proper context interpretation. XML tags provide clear semantic boundaries without conflicting with markdown structure.
Changes
formatStepPromptto use<prompt>...</prompt>tagsformatStepContentto use<output>...</output>tagsthread-read-xml-tags.test.tscovering 10 scenariosthread.test.tsto verify XML tag behaviorRef
Fixes #459