Skip to content

fix(cli): handle empty YAML prompts - #1

Open
RGBuilds wants to merge 1 commit into
mainfrom
cursor/fix-empty-yaml-prompt-ebe1
Open

fix(cli): handle empty YAML prompts#1
RGBuilds wants to merge 1 commit into
mainfrom
cursor/fix-empty-yaml-prompt-ebe1

Conversation

@RGBuilds

@RGBuilds RGBuilds commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • preserve empty and comment-only YAML prompt files as strings after parsing
  • prevent evaluation from crashing when prompt rendering expects Prompt.raw to be a string
  • correct the existing empty-document regression test

Testing

  • npx vitest run test/prompts (16 files, 169 tests passed)
  • npm run local -- eval -c <comment-only-yaml fixture> --no-cache -o <output.json> (1 passed, 0 failed, 0 errors)
  • pre-commit Biome lint checks pass
Open in Web Open in Cursor 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants