Skip to content

copilotcli subagent list-valued model: docs, CLI source and test follow-ups from #3602 #3603

Closed

Description

@dyoshikawa

Background

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

  1. 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.
  2. 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.
  3. 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

  1. added
    documentation
    maintainer-scrap
    on Oct 22, 2026
  2. added a commit that references this issue on Nov 23, 2026
    4385c65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationimprovementmaintainer-scrap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions