Repository navigation
agentHost: Refine workspace transition boundaries - #334919
Merged
Sandeep Somavarapu (sandy081) merged 3 commits intoSep 7, 2026
Merged
Sandeep Somavarapu (sandy081) merged 3 commits into
Sandeep Somavarapu (sandy081) merged 3 commits into
Conversation
Skip recording and publishing the workspace transition when conversion is requested during the first turn. Preserve durable boundaries for later turns and failure notifications for unsuccessful conversions. Co-authored-by: Copilot <[email protected]>
Reuse the session restore database reference to load transition metadata in parallel with provider history. Pass the storage-specific map into hydration so peer and subagent chats do not repeat empty transition probes. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Storage-specific transitions must be loaded and passed for peer and subagent restore paths, with AgentService coverage.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
src/vs/platform/agentHost/node/agentService.ts — workspaceTransitions is now the only way this hydration stage can restore boundaries, but only… |
What changed in this PR
Refines workspace conversion boundaries and restores persisted transitions during chat hydration.
Changes:
- Suppresses successful first-turn transition markers while preserving failures and later boundaries.
- Preloads transition data alongside provider history.
- Updates conversion and restoration tests.
- Critical (2 votes): Peer and subagent restore paths do not pass storage-specific transitions, silently losing persisted boundaries.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/sessionWorkspaceConversion.test.ts |
Updates conversion and hydration coverage. |
src/vs/platform/agentHost/test/node/agentService.test.ts |
Tests concurrent transition loading, but not the affected restore paths. |
src/vs/platform/agentHost/node/chatContributions/sessionWorkspaceConversion/sessionWorkspaceConversionService.ts |
Controls transition visibility and persistence. |
src/vs/platform/agentHost/node/chatContributions/sessionWorkspaceConversion/sessionWorkspaceConversionContribution.ts |
Hydrates supplied transition data. |
src/vs/platform/agentHost/node/agentService.ts |
Preloads default-session transitions, but omits them for peer and subagent restoration. |
src/vs/platform/agentHost/common/agentHostChatContributionsService.ts |
Extends hydration context with transitions. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Henning Dieterichs (hediet)
previously approved these changes
Sep 7, 2026
Load transition maps from each peer or subagent chat storage while provider history is restored. Keep default-chat restoration on its existing database reference and avoid querying the parent session for child transitions. Co-authored-by: Copilot <[email protected]>
Giuseppe Cianci (Giuspepe)
approved these changes
Sep 7, 2026
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/hide-initial-workspace-transition
branch
September 7, 2026 16:16
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
Validation
npm run transpile-clientnpm run typecheck-client./scripts/test.sh --run src/vs/platform/agentHost/test/node/sessionWorkspaceConversion.test.ts(26 passing)./scripts/test.sh --run src/vs/platform/agentHost/test/node/agentService.test.ts --grep "loads workspace transitions alongside provider history"(1 passing)git diff --check origin/main...HEAD