You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
copilotcli subagent list-valued model: docs, CLI source and test follow-ups from #3602 #3603
PR #3602 lets the copilotcli subagent schema accept model as either a string or a preference-ordered list of strings, so list-valued model in .github/agents/*.agent.md no longer fails import or generate. The review found nothing blocking (the list stays inside the copilotcli: section and cannot reach targets that expect a string), but left three low-severity follow-ups that are tracked here instead of holding up the merge.
Details
Docs are stale.docs/reference/file-formats.md (around the copilotcli subagent example, ~line 747) still shows model as a single model id only. Users cannot tell that a list is accepted, and may move a list into models instead.
Source of the list form. The new comment in src/features/subagents/copilotcli-subagent.ts cites the VS Code custom-agent file reference, which documents the copilot (VS Code) harness. The Copilot CLI reference still documents model as a string, and main previously rejected the list form on purpose (the old test called it "the changelog spelling ... not the documented form"). If some Copilot CLI versions do not read a list-valued model, a generated agent could fail to load or silently ignore the model.
Test gaps / noise in src/features/subagents/copilotcli-subagent.test.ts:
home-directory setup/cleanup was added to every test's beforeEach, though only one new test needs it;
no direct generate-direction test (fromRulesyncSubagent with model: ["a", "b"] emits a list); it is only covered indirectly by the round-trip test;
no case where both model and models are lists.
Solution / Next Steps
Verify against the Copilot CLI changelog / reference whether (and since which version) list-valued model is read. Cite the CLI source in the code comment, or add a version note.
Update docs/reference/file-formats.md to say model accepts a string or a preference-ordered list, and how it relates to models; run pnpm run generate:docs-content.
Scope the home-directory setup to the test that needs it, and add the generate-direction and model + models test cases.
Activity
docs(copilotcli): document list-valued subagent model and tighten tests