Repository navigation
Honor side placement for agent-session links in editor windows - #342109
Merged
Henning Dieterichs (hediet) merged 1 commit intoOct 16, 2026
Merged
Conversation
Forward opener editor options and use SIDE_GROUP without revealing the session in its old location when openToSide is requested. Co-authored-by: Copilot <[email protected]>
Dirk Bäumer (dbaeumer)
approved these changes
Oct 16, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused change has targeted regression coverage and no unresolved findings; tests were not rerun.
0 open findings
What changed in this PR
Makes agent-session links honor explicit side-opening requests in regular editor windows while preserving normal Chat view behavior.
Changes:
- Forward opener options and route side requests to
SIDE_GROUP, disabling reveal-at-existing-location behavior. - Add six regression cases covering session and peer-chat links with absent, false, and true side options.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.test.ts | Tests placement and editor-option forwarding. |
| src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.ts | Honors side placement and forwards editor options. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Henning Dieterichs (hediet)
enabled auto-merge
October 16, 2026 17:26
Henning Dieterichs (hediet)
deleted the
hediet/agent-session-links-to-side
branch
October 16, 2026 18:12
Henning Dieterichs (hediet)
added a commit
that referenced
this pull request
Oct 26, 2026
…342131) The Session Activity Bar `SubmenuOpen` fixture produces flaky screenshot comparisons. Mark it as `animated` across all themes so it stays available in Component Explorer but is excluded from automated screenshot capture. The same `sessions/sessionActivityBar/sessionActivityBar/SubmenuOpen/Light` image pair appears in these screenshot reports: - [#342109 — Honor side placement for agent-session links in editor windows](#342109 (comment)) - [#342081 — Support opening links directly from Quick Open](#342081 (comment)) - [#342099 — Fix session diff statistics for inactive folder sessions](#342099 (comment)), with the before/after images reversed. - [#342079 — Update distro for Copilot BYOK voice speech proposal](#342079 (comment)) Validation: editor diagnostics and `git diff --check` passed. No runtime tests were run for this metadata-only change. Fixes #342130
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.
Fixes #342119
Summary
Honor explicit open-to-side requests for
agent-host-session://links in regular editor windows.The built-in session-link opener previously discarded opener options and always targeted the Chat view. This made Alt+click / Alt+Enter ignore side placement even when the link source passed
openToSide: true.SIDE_GROUP.revealIfOpenedfor explicit side requests, so a session already visible elsewhere is opened/moved to the requested side rather than merely revealed at its previous location.Validation
agent-host-session://ahp-session/...URI followed by Alt+Enter opened the actual session in a second editor group while retainingUntitled-1in the original group. Also exercised Alt+click on the Quick Pick result and verified the two-group result with no notifications.This PR contains only the session-link handler and its tests. The Quick Open implementation remains in #342081; both fixes are present on a separate local integration branch for manual testing.
Related: #342050, #340724, #342051.