Repository navigation
[cherry-pick] Fix policy continuation presenter registration in web Sessions - #344625
Merged
Merged
Conversation
Osvaldo Ortega (osortega)
enabled auto-merge (squash)
October 27, 2026 19:22
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow registration move supplies the missing web dependency while preserving delayed instantiation and existing desktop behavior.
No open issues 🎉
What changed in this PR
This cherry-pick fixes web Sessions chat creation by making the required policy continuation presenter available through shared startup rather than desktop-only startup.
Changes:
- Register the existing delayed singleton in the presenter module and import it from shared Sessions startup.
- Remove desktop-only registration without changing presenter behavior or local-agent startup.
- Add regression coverage for registration without the desktop contribution.
No actionable issues remain. Focused browser tests and live web/desktop verification are still pending, as noted in the PR.
| File | Description |
|---|---|
src/vs/sessions/sessions.common.main.ts |
Loads the presenter for both web and desktop Sessions. |
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostPolicyContinuationPresenter.test.ts |
Checks that the presenter registers with delayed instantiation. |
src/vs/sessions/contrib/providers/agentHost/browser/localAgentHost.contribution.ts |
Removes desktop-only registration and its unused imports. |
src/vs/sessions/contrib/providers/agentHost/browser/agentHostPolicyContinuationPresenter.ts |
Registers the existing presenter in its own module. |
Review effort: Balanced
Aaron Munger (amunger)
approved these changes
Oct 27, 2026
Michael Lively (Yoyokrazy)
approved these changes
Oct 27, 2026
|
Gg |
🤣 |
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.
Cherry-pick of #344623 from
main.Summary
Fix web Sessions chat creation failing because
agentHostPolicyContinuationPresenteris not registered. The shared chat widget requires the service, but its presenter was registered only by the desktop local-agent-host contribution.Addresses the web startup regression introduced by #340702.
Validation
git diff --check.No full application build or live end-to-end verification was performed. Unrelated host-compatibility and tunnel warnings are outside this change.