fix(commands): quote argument-hint values for Copilot CLI 1.0.65 YAML parser#128
Open
thejesh23 wants to merge 1 commit into
Open
fix(commands): quote argument-hint values for Copilot CLI 1.0.65 YAML parser#128thejesh23 wants to merge 1 commit into
thejesh23 wants to merge 1 commit into
Conversation
… parser Copilot CLI 1.0.65 tightened frontmatter parsing to require argument-hint to be a YAML string. Unquoted values starting with '[' were previously parsed as YAML flow sequences (arrays), and values containing bare ':' inside brackets triggered "mapping values are not allowed here" errors. Wrap all affected argument-hint values in explicit YAML quotes: - 9 files with unquoted '[' start: wrap in single quotes (values contain double-quoted examples, so single quotes avoid escaping) - 2 reset commands with '[target: overview|...]': wrap in double quotes to escape the ':' that would otherwise be read as a mapping separator Latent under prior parsers; surfaces as a hard error under Copilot CLI 1.0.65 and matches the tightened Claude Code frontmatter contract tracked in anthropics/claude-code#22161.
Author
|
Tracking issue: #129 — captures the bug diagnosis and reproducer separately for anyone searching the repo who lands there before this PR. |
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.
Description
Copilot CLI 1.0.65 tightened frontmatter parsing so that
argument-hintmust be a YAML string. The current command files declare values in two shapes that no longer parse cleanly:[, so YAML parses them as arrays rather than strings.[target: overview|patterns|...]where the bare:inside the flow node causes YAML to raisemapping values are not allowed here.Both forms happen to work under looser parsers used by earlier tool versions but fail hard under the new contract.
Related Issue
No open issue in this repo. Cross-references:
Type of Change
Changes Made
argument-hintvalues that start with[in single quotes (values contain double-quoted examples like"react", so single quotes avoid escaping):.claude/commands/atlas.pattern.md.claude/commands/atlas.flow.md.claude/commands/atlas.deps.md.claude/commands/atlas.impact.md.claude/commands/atlas.overview.mdplugin/commands/pattern/SKILL.mdplugin/commands/flow/SKILL.mdplugin/commands/deps/SKILL.mdplugin/commands/impact/SKILL.mdargument-hintvalues containing[target: overview|...]in double quotes to escape the bare:that YAML would otherwise treat as a mapping separator:.claude/commands/atlas.reset.mdplugin/commands/reset/SKILL.mdThe 3 other command files already had correct string forms (
plugin/commands/overview/SKILL.mdwas already double-quoted; thehistoryfiles start with(optional)which YAML parses as a scalar and were not affected by either failure mode).Testing
Verified every
argument-hintvalue parses as a YAML string withyaml.safe_loadon the frontmatter block for all 14 command files (7 under.claude/commands/, 7 underplugin/commands/*/SKILL.md). All 14 now reporttype=str; the 2 reset files previously raisedmapping values are not allowed hereand the 9 array-form files previously parsed aslist.The change is a pure YAML-quoting fix in frontmatter; the underlying analysis flows are untouched, so platform matrix testing is not applicable.
Checklist
fix(scope): ...conventional commit)PRD.mdanddev-notes/archives/*contain the same syntax in fenced code blocks documenting historical designs — left untouched to preserve historical accuracy)Screenshots (if applicable)
n/a