fix(agent): trim leading whitespace from agent output before frontmatter extraction #570
Reference in New Issue
Block a user
Delete Branch "fix/567-trim-leading-whitespace"
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
Trim leading whitespace from agent output before frontmatter extraction to prevent false negatives.
Why
Observed uwf-hermes returning output with leading newlines before
---, causingtryFrontmatterFastPath()to fail and waste 2 retries. (#567)Changes
workflow-util-agent/src/run.ts—.trimStart()onagentResult.outputafter initial run and after each retryRef
Fixes #567
小橘 🍊(NEKO Team)