Skip to content

fix(config-yaml): unroll markdown prompt files as prompts#12433

Open
McGluut wants to merge 1 commit into
continuedev:mainfrom
McGluut:codex/continue-prompt-markdown-unroll
Open

fix(config-yaml): unroll markdown prompt files as prompts#12433
McGluut wants to merge 1 commit into
continuedev:mainfrom
McGluut:codex/continue-prompt-markdown-unroll

Conversation

@McGluut
Copy link
Copy Markdown

@McGluut McGluut commented May 18, 2026

Summary

  • pass the target section into block resolution so markdown files referenced from prompts unroll as prompt blocks instead of rules
  • keep existing markdown fallback behavior for rules and other sections
  • add a regression test for prompts: - uses: file://...md

Fixes #12412.

Tests

  • npm test -- --runTestsByPath src/load/unroll.test.ts from packages/config-yaml
  • npm run build from packages/config-yaml
  • npx prettier --check packages/config-yaml/src/load/unroll.ts packages/config-yaml/src/load/unroll.test.ts
  • git diff --check

Summary by cubic

Fixes incorrect unrolling of markdown files in the prompts section so they become prompt blocks instead of rules. Keeps existing markdown fallback for rules and other sections, and adds a regression test in packages/config-yaml.

  • Bug Fixes
    • Pass the section hint through block resolution so prompts markdown parses as prompts.
    • Preserve markdown-to-rule fallback for rules and other sections.
    • Add test for prompts: - uses: file://...md.

Written for commit 2aed834. Summary will update on new commits. Review in cubic

@McGluut McGluut requested a review from a team as a code owner May 18, 2026 11:16
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@McGluut
Copy link
Copy Markdown
Author

McGluut commented May 18, 2026

I have read the CLA Document and I hereby sign the CLA

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

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Markdown Files in prompts Section are Misidentified as Rules and Dropped

1 participant