Repository navigation
agentHost: unify session and chat creation tools - #332758
Merged
Sandeep Somavarapu (sandy081) merged 5 commits intoAug 26, 2026
Merged
Sandeep Somavarapu (sandy081) merged 5 commits into
Sandeep Somavarapu (sandy081) merged 5 commits into
Conversation
Advertise one create_session contract that distinguishes current-session and independent work, requires titles, and preserves legacy create_chat routing temporarily. Persist created chat titles and keep provider prompts, labels, and tests aligned. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Keep per-session session-tool schemas stable without freezing dynamic tool groups, and validate required titles before creating chats or sessions. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Unifies Agent Host session and chat creation under the create_session tool while retaining legacy create_chat compatibility.
Changes:
- Adds relationship-aware creation, title persistence, and provider/model validation.
- Preserves materialized tool definitions and legacy routing.
- Updates UI progress handling, tests, snapshots, and replay fixtures.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/test/browser/agentSessions/stateToProgressAdapter.test.ts |
Tests peer-chat progress chips. |
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/stateToProgressAdapter.ts |
Detects chat-scoped creation links. |
src/vs/platform/agentHost/test/node/sessionServerTools.test.ts |
Expands unified-tool and compatibility tests. |
src/vs/platform/agentHost/test/node/serverToolGroups.test.ts |
Tests relationship-specific display labels. |
src/vs/platform/agentHost/test/node/e2e/suites/serverToolsSuite.ts |
Migrates creation E2E scenarios. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5-mini.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5-codex.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5_6-terra.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5_6-sol.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5_6-luna.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5_1.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5_1-codex.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gpt-5_1-codex-mini.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_gemini-2_0-flash.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-sonnet-5.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-sonnet-4_6.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-sonnet-4_5.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-opus-5.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-opus-4_8.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-opus-4_7.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-opus-4_6.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-opus-4_5.prompt.md |
Updates prompt schema snapshot. |
.../Agent_Host_E2E___Copilot_prompts_claude-haiku-4_5.prompt.md |
Updates prompt schema snapshot. |
src/vs/platform/agentHost/test/node/e2e/KNOWN_ISSUES.md |
Renames the Claude known issue. |
.../copilotcli-server-tool-create-session-materializes-a-selected-model-child-session-and-starts-its-prompt.yaml |
Updates independent-session replay. |
.../copilotcli-server-tool-create-session-currentsession-starts-a-prompt-in-a-peer-chat.yaml |
Adds current-session replay. |
.../copilotcli-server-tool-create-session-currentsession-applies-an-explicit-peer-title.yaml |
Updates peer-title replay. |
.../copilotcli-server-tool-create-chat-defaults-to-the-invoking-session-and-starts-its-local-prompt.yaml |
Removes obsolete replay. |
src/vs/platform/agentHost/test/node/agentService.test.ts |
Migrates service-level creation tests. |
src/vs/platform/agentHost/node/shared/sessionServerTools.ts |
Implements the unified contract and legacy route. |
src/vs/platform/agentHost/node/shared/agentServerToolHost.ts |
Adds per-session definition materialization. |
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts |
Uses session-specific tool definitions. |
src/vs/platform/agentHost/node/agentService.ts |
Updates orchestration documentation. |
src/vs/platform/agentHost/node/agentHostTelemetryReporter.ts |
Updates telemetry documentation. |
src/vs/platform/agentHost/AGENTS.md |
Documents unified creation semantics. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 36/36 changed files
- Comments generated: 2
- Review effort level: Balanced
Scope current-session model lookup to its provider, reject ambiguous independent model names, and validate legacy chat titles before creating persistent work. Co-authored-by: Copilot <[email protected]>
roblourens
approved these changes
Aug 26, 2026
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/session-vs-chat-tools-summary
branch
August 26, 2026 17:51
2 tasks done
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
create_sessionandcreate_chattools with onecreate_sessioncontract usingrelationship: currentSession | independentcreate_chatas an unadvertised compatibility route for restored calls until October 26, 2026Testing
npm run compilenpm run hygienecreate_sessionstrict-replay E2E scenarios (3 passing)