Skip to content

feat: multi-session agent preview support @W-20436429@#206

Draft
marcelinollano wants to merge 3 commits into
mainfrom
ml/W-20436429-multiple-sessions-support
Draft

feat: multi-session agent preview support @W-20436429@#206
marcelinollano wants to merge 3 commits into
mainfrom
ml/W-20436429-multiple-sessions-support

Conversation

@marcelinollano
Copy link
Copy Markdown
Collaborator

@marcelinollano marcelinollano commented May 13, 2026

Status:

  • Out of scope for now. Leaving up as a draft for future reference.
  • The legacy single-sidebar flow is unchanged when the flag is off.

What does this PR do?

Adds multi-session agent preview support behind the salesforce.agentforceDX.multiSession.enabled feature 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-activeBackground so 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:

  • Session-list sidebar shows all open sessions
  • Each session opens as its own editor tab with independent state
  • Activate-version action available from sidebar and per-session panel

Testing

Automated tests: none added (feature is gated and not finalized).

Manual verification:

  1. With the flag off (default), confirm the legacy single-sidebar agent preview behaves as before.

    • Open the Agentforce DX sidebar, run a preview, and verify nothing about the existing flow has changed.
  2. Enable the feature flag in VS Code settings:

    • Open settings, search for salesforce.agentforceDX.multiSession.enabled, and enable it.
    • Reload the window. The session-list view should appear in the sidebar.
  3. Open multiple sessions and verify isolation:

    • From the session-list view, create two or more sessions.
    • Each should open as its own editor tab. Toggle live mode in one and confirm the others are unaffected. Same for Apex debug state.
  4. Verify activate-version from the sidebar:

    • Click the versions icon in the session-list view title bar.
    • Confirm it prompts for an agent and then activates/deactivates the chosen published version.
  5. Verify activate-version from a session panel:

    • With a session panel focused, click the versions action in the editor/title bar.
    • Confirm it targets the focused session's agent without prompting again.

marcelinollano and others added 3 commits April 28, 2026 14:02
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.
@marcelinollano marcelinollano changed the title [Draft][W-20436429] Multi-session agent preview support feat: multi-session agent preview support [DRAFT - out of scope] May 13, 2026
@marcelinollano marcelinollano changed the title feat: multi-session agent preview support [DRAFT - out of scope] feat: multi-session agent preview support @W-20436429@ May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant