Repository navigation
fix(api): keep literal dashes inside skill frontmatter - #43602
Merged
crazywoola merged 1 commit intoOct 30, 2026
Merged
crazywoola merged 1 commit into
crazywoola merged 1 commit into
Conversation
SKILL.md frontmatter was split on the first "---", so a description containing that text was truncated or rejected as invalid YAML. Only a standalone delimiter line now closes the frontmatter.
Contributor
Pyrefly Type Coverage
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-10-06 10:16:46.104466780 +0000
+++ /tmp/pyrefly_pr.txt 2026-10-06 10:16:37.084398358 +0000
@@ -6203,7 +6203,7 @@
ERROR Object of class `NoneType` has no attribute `workflow_prompt` [missing-attribute]
--> tests/unit_tests/services/agent/test_composer_mention_validation.py:113:5
ERROR Argument `object` is not assignable to parameter `pwd` with type `bytes | None` in function `zipfile.ZipFile.read` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_skill_package_service.py:306:44
+ --> tests/unit_tests/services/agent/test_skill_package_service.py:327:44
ERROR Object of class `NoneType` has no attribute `node_job_config_dict` [missing-attribute]
--> tests/unit_tests/services/agent/test_workflow_publish_service.py:569:49
ERROR Object of class `NoneType` has no attribute `node_job_config_dict` [missing-attribute]
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #43602 +/- ##
==========================================
- Coverage 88.62% 88.62% -0.01%
==========================================
Files 5184 5184
Lines 326248 326253 +5
Branches 65396 65398 +2
==========================================
+ Hits 289152 289155 +3
- Misses 31872 31874 +2
Partials 5224 5224
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Closed
6 tasks done
crazywoola
approved these changes
Oct 30, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
Skill ZIP upload rejected or shortened a
SKILL.mddescription when the text contained---._parse_frontmatterusedcontent.split("---", 2), so a delimiter inside a YAML value closed the frontmatter early. A quotedbefore---afterdescription failed as invalid YAML, and a plain one was stored asbefore.The parser now treats only a standalone
---line as the opening and closing delimiter. Existing required-field checks are unchanged. An opening line such as---junkis no longer read as frontmatter.Fixes #43600
Screenshots
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint gods