feat: fix support for auto model in Copilot CLI for Chat Extension#319815
Merged
Conversation
Contributor
DonJayamanne
commented
Jun 3, 2026
- Introduced multiple markdown files covering high-level overviews, detailed technical documentation, and reference documentation for the Agent Host.
- Documented changesets, snapshots, client reconciliation, file edit tracking, tool permissions, and customizations.
- Included diagrams using mermaid syntax to illustrate processes and interactions within the Agent Host.
- Enhanced the Copilot CLI to support automatic model inclusion based on configuration settings.
9f7582e to
16390e9
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR primarily introduces a comprehensive, book-style documentation set for the VS Code Agent Host subsystem (architecture, protocol/state, storage, changesets, permissions, etc.) under docs/platform/agentHost/, and also tweaks Copilot CLI model discovery to optionally include an auto model entry based on configuration.
Changes:
- Added an extensive Agent Host documentation set with overview, technical deep-dives, reference pages, and update/review playbooks.
- Added many “research / subagent” traceability notes and TODO trackers used during documentation regeneration.
- Updated Copilot CLI language model provider to prepend an
automodel whenCLIAutoModelEnabledis enabled.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotCli.ts | Prepends an auto model in provideLanguageModelChatInformation when configured. |
| docs/start.md | New top-level doc file containing LM-oriented instructions (appears to be a stray prompt). |
| docs/platform/agentHost/UPDATE-INSTRUCTIONS.md | Playbook for incremental doc updates based on a prior anchor commit. |
| docs/platform/agentHost/TODO.md | Top-level regeneration tracker, anchor commit, and progress log. |
| docs/platform/agentHost/TODO-SUBAGENT-12-ahp-spec-review.md | Subagent TODO tracking AHP spec review pass. |
| docs/platform/agentHost/TODO-SUBAGENT-11-ahp-spec-expansion.md | Subagent TODO tracking AHP spec expansion research. |
| docs/platform/agentHost/TODO-SUBAGENT-10-followup-review.md | Subagent TODO tracking follow-up docs review. |
| docs/platform/agentHost/TODO-SUBAGENT-09-changesets-deep-dive.md | Subagent TODO tracking changesets deep-dive research. |
| docs/platform/agentHost/TODO-SUBAGENT-08-old-docs-coverage.md | Subagent TODO tracking comparison vs old documentation. |
| docs/platform/agentHost/TODO-SUBAGENT-07-review.md | Subagent TODO tracking final docs-only review. |
| docs/platform/agentHost/TODO-SUBAGENT-06-client-remote.md | Subagent TODO tracking client/remote bridge research. |
| docs/platform/agentHost/TODO-SUBAGENT-05-worktrees-edits.md | Subagent TODO tracking worktrees/edits research. |
| docs/platform/agentHost/TODO-SUBAGENT-04-agents-tools.md | Subagent TODO tracking agents/tools research. |
| docs/platform/agentHost/TODO-SUBAGENT-03-sessions-storage.md | Subagent TODO tracking sessions/storage research. |
| docs/platform/agentHost/TODO-SUBAGENT-02-protocol-state.md | Subagent TODO tracking protocol/state research. |
| docs/platform/agentHost/TODO-SUBAGENT-01-architecture.md | Subagent TODO tracking architecture research. |
| docs/platform/agentHost/technical/16-customizations-attachments-terminal-workbench.md | Technical chapter covering customization sync, attachments, terminals, and workbench bridge. |
| docs/platform/agentHost/technical/15-tool-permissions-and-resource-access.md | Technical chapter covering tool approval and reverse resource access permissions. |
| docs/platform/agentHost/technical/14-file-edit-tracker-and-content-uris.md | Technical chapter covering file edit tracking and content URI schemes. |
| docs/platform/agentHost/technical/13-snapshots-and-client-reconciliation.md | Technical chapter covering snapshots, serverSeq/fromSeq, and reconnect reconciliation. |
| docs/platform/agentHost/technical/12-changesets-deep-dive.md | Technical chapter covering changesets model, compute, persistence, and retention. |
| docs/platform/agentHost/technical/00-index.md | Index for the technical documentation tier. |
| docs/platform/agentHost/REVIEW-INSTRUCTIONS.md | Checklist for reviewing doc accuracy, links, Mermaid, and stale-protocol pitfalls. |
| docs/platform/agentHost/research/SUBAGENT-38-reference-glossary.md | Research note backing glossary expansion. |
| docs/platform/agentHost/research/SUBAGENT-37-reference-uri-schemes.md | Research note backing URI schemes reference page. |
| docs/platform/agentHost/research/SUBAGENT-36-reference-database-schema.md | Research note backing DB schema reference page. |
| docs/platform/agentHost/research/SUBAGENT-35-reference-state-shape.md | Research note backing state shape reference page. |
| docs/platform/agentHost/research/SUBAGENT-34-reference-actions-catalogue.md | Research note backing actions catalogue reference page. |
| docs/platform/agentHost/research/SUBAGENT-33-reference-protocol-commands.md | Research note backing protocol commands reference page. |
| docs/platform/agentHost/research/SUBAGENT-32-reference-source-file-map.md | Research note backing source file map reference page. |
| docs/platform/agentHost/research/SUBAGENT-31-reference-quick-lookup.md | Research note backing quick lookup reference page. |
| docs/platform/agentHost/research/SUBAGENT-30-technical-telemetry-otel.md | Research note backing telemetry/OTel technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-29-technical-filesystems-resources.md | Research note backing filesystem/resource bridge technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-28-technical-client-remote-bridge.md | Research note backing client/remote bridge technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-27-technical-worktrees-changesets.md | Research note backing worktrees/changesets/checkpoints technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-25-technical-agents-runtimes.md | Research note backing agent runtimes technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-24-technical-sessions-storage.md | Research note backing sessions/storage/reconnect technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-23-technical-state-actions.md | Research note backing state/actions/reducers technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-22-technical-protocol.md | Research note backing protocol/transport technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-21-technical-agent-service.md | Research note backing agent service technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-20-technical-process-lifecycle.md | Research note backing process lifecycle technical chapter. |
| docs/platform/agentHost/research/SUBAGENT-19-overview-client-remote.md | Research note backing overview client/remote chapter. |
| docs/platform/agentHost/research/SUBAGENT-18-overview-storage-worktrees.md | Research note backing overview storage/worktrees/edits chapter. |
| docs/platform/agentHost/research/SUBAGENT-17-overview-state-protocol.md | Research note backing overview state/protocol chapter. |
| docs/platform/agentHost/research/SUBAGENT-16-overview-agents-tools.md | Research note backing overview agents/tools/customizations chapter. |
| docs/platform/agentHost/research/SUBAGENT-15-overview-sessions-turns.md | Research note backing overview sessions/turns chapter. |
| docs/platform/agentHost/research/SUBAGENT-14-overview-architecture.md | Research note backing overview architecture chapter. |
| docs/platform/agentHost/research/SUBAGENT-13-overview-introduction.md | Research note backing overview introduction chapter. |
| docs/platform/agentHost/research/SUBAGENT-10-followup-review.md | Follow-up docs review findings and resolutions log. |
| docs/platform/agentHost/research/SUBAGENT-07-review.md | Docs-only review summary and validation checks performed. |
| docs/platform/agentHost/research/SUBAGENT-05-worktrees-edits.md | Research notes for worktrees/changesets/checkpoints/file-edit tracking. |
| docs/platform/agentHost/research/SUBAGENT-03-sessions-storage.md | Research notes for sessions/storage/restore/reconciliation. |
| docs/platform/agentHost/reference/09-open-questions.md | Captures source ambiguities and unresolved questions from regeneration. |
| docs/platform/agentHost/reference/08-glossary.md | Glossary of Agent Host terms used across docs and source. |
| docs/platform/agentHost/reference/06-database-schema.md | Reference documentation of the session SQLite database schema and metadata keys. |
| docs/platform/agentHost/reference/00-index.md | Index for the reference documentation tier. |
| docs/platform/agentHost/overview/00-index.md | Index for the high-level overview documentation tier. |
| docs/platform/agentHost/DOCUMENTATION-GUIDE.md | Suggested reading paths for humans and LMs. |
| docs/platform/agentHost/00-INDEX.md | Top-level Agent Host docs index, tier map, and anchored commit metadata. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
723fd0e to
157dace
Compare
…del type parameter
…ate tests to include auto model flag
Yoyokrazy
approved these changes
Jun 4, 2026
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.