Skip to content

docs(copilotcli): document list-valued subagent model and tighten tests - #3606

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-3603-copilotcli-model-list
Oct 22, 2026
Merged

dyoshikawa merged 1 commit into
mainfrom
resolve-issue-3603-copilotcli-model-list

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-ups from #3602 on the copilotcli subagent's list-valued model. No runtime behaviour change.

  • Source of the list form. The Copilot CLI changelog for v1.0.83 (2026-09-04) says: "Custom agents can list several models in model, tried in order until one is available to you". The CLI command reference and the custom agents configuration reference still type model as a string. The code comment now cites the CLI changelog (keeping the VS Code reference as secondary) and notes that a string is the safe form for CLIs older than v1.0.83.
  • Docs. docs/reference/file-formats.md now says copilotcli.model accepts a string or a preference-ordered list (CLI v1.0.83+), that Rulesync keeps the list in model rather than moving it to models, and that models overrides model when both are set. Docs content regenerated.
  • Tests. Home-directory setup/cleanup is scoped to the one round-trip test that needs it; added a generate-direction test (model: [a, b] is emitted as a YAML list, models untouched) and a case with both model and models as lists.

Verification

  • pnpm cicheck: 598 files / 15,790 tests passed; format, lint, types, docs-content, cspell, secretlint passed.

Closes #3603

🤖 Generated with Claude Code

https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth

- Cite the Copilot CLI v1.0.83 changelog as the source for a
  preference-ordered list in `model`, and note that the CLI reference
  still documents a string, so a string is the safe form for older CLIs.
- Document the list form and its relation to `models` in
  docs/reference/file-formats.md and regenerate docs content.
- Scope the home-directory test setup to the one test that needs it, and
  add generate-direction and list `model` + `models` test cases.

Closes #3603

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
@dyoshikawa
dyoshikawa merged commit c748288 into main Oct 22, 2026
10 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3603-copilotcli-model-list branch October 22, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant