fix: quote argument-hint value so Copilot CLI 1.0.65 parses it as a string#4
Open
thejesh23 wants to merge 1 commit into
Open
Conversation
Unquoted `argument-hint: [--global]` parses as a YAML sequence (list containing the single string "--global"). Copilot CLI 1.0.65 requires `argument-hint` to be a string and rejects the sequence, which blocks loading the /init skill. Wrapping the value in double quotes keeps the visible hint identical for users while satisfying the schema.
Author
|
Tracking issue: #5 — 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.
The bug
skills/init/SKILL.mdhas:YAML parses
[--global]as a flow sequence (a list containing the single string--global), not as a string. Copilot CLI 1.0.65 tightened its frontmatter schema and now requiresargument-hintto be a string — the sequence form fails validation and the/initskill fails to load.The rule is the same as the recently-fixed latent issue in Claude Code proper (anthropics/claude-code#22161): unquoted
[X]in slash-command frontmatter is a YAML array, not a hint string.The fix
Wrap the value in double quotes so YAML treats it as a plain string:
The rendered hint the user sees is identical (
[--global]); only the parse type changes.Scope
Full-tree scan for
^argument-hint:\s*\[— one file affected:skills/init/SKILL.mdThe three
argument-hint:lines insetup.sh(<symbol-name>,<file-path>,<query>) use angle-bracket forms, which YAML already treats as plain strings, so no change needed.Test plan
python3 -c "import yaml,sys; d=yaml.safe_load(open('skills/init/SKILL.md').read().split('---')[1]); assert isinstance(d['argument-hint'], str), d['argument-hint']"passes/initwithout a frontmatter validation error[--global]hint still renders literally in the CLI's help output