feat: multi-session agent preview support @W-20436429@#206
Draft
marcelinollano wants to merge 3 commits into
Draft
feat: multi-session agent preview support @W-20436429@#206marcelinollano wants to merge 3 commits into
marcelinollano wants to merge 3 commits into
Conversation
Adds a session-list sidebar and per-session editor tabs for agent preview, gated by the `salesforce.agentforceDX.multiSession.enabled` setting (default off). Users can run several agent sessions in parallel, each with its own panel, live-mode toggle, and Apex debug state. The legacy single-sidebar flow remains unchanged when the flag is off. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sets the body and top-level container panels (`.app`, `.agent-preview`, `.agent-tracer`, `.app-menu`, `.tab-navigation`, `.form-container`, `.chat-input`) inside a session panel to use `--vscode-tab-activeBackground` so the session tab's content area matches the VS Code tab strip instead of falling back to the sidebar color. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds a versions icon to the session list view title and an editor/title action on session panels so users can activate or deactivate a published agent's version in the multi-session UI. The sidebar button prompts for the agent first; the panel button targets the focused session.
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.
What does this PR do?
Adds multi-session agent preview support behind the
salesforce.agentforceDX.multiSession.enabledfeature flag (default off). Users can run several agent sessions in parallel, each in its own editor tab with independent live-mode and Apex debug state, listed in a session sidebar. Also adds an "activate agent version" action available from the sidebar (prompts for agent) and from a session panel (targets the focused session), and tweaks panel backgrounds to use--vscode-tab-activeBackgroundso tab content matches the VS Code tab strip.What issues does this PR fix or reference?
@W-20436429@
Before
Single sidebar agent preview. Only one session at a time.
After
With the feature flag on:
Testing
Automated tests: none added (feature is gated and not finalized).
Manual verification:
With the flag off (default), confirm the legacy single-sidebar agent preview behaves as before.
Enable the feature flag in VS Code settings:
salesforce.agentforceDX.multiSession.enabled, and enable it.Open multiple sessions and verify isolation:
Verify activate-version from the sidebar:
Verify activate-version from a session panel: