Skip to content

Conversation

@sarthakNITT
Copy link
Contributor

@sarthakNITT sarthakNITT commented Jan 20, 2026

Description

  • Improved validation logic to detect when a file in .continue/rules fails to parse.
  • Replaced the generic "Failed to convert prompt file" error with a more specific "Failed to parse rule definition" message for rule files.
  • Included the actual YAML parser error details in the message to help users debug syntax issues (e.g., missing commas, flow sequence errors).

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

issue #9548


Continue Tasks: ▶️ 1 queued — View all


Summary by cubic

Improved error messages for invalid rule files in rules directories. Users now see clear YAML parsing details to quickly fix syntax issues.

  • Bug Fixes
    • Detect rule files by path and tailor the error message.
    • Replace the generic prompt error with “Failed to parse/process rule definition …”.
    • Include YAML parser details (e.g., flow sequence errors) in the message.

Written for commit 8ba6f0f. Summary will update on new commits.

@sarthakNITT sarthakNITT requested a review from a team as a code owner January 20, 2026 20:52
@sarthakNITT sarthakNITT requested review from RomneyDa and removed request for a team January 20, 2026 20:52
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 20, 2026
Copy link
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 1 file

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

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant