Skip to content

sessions: Add no-workspace option to new session picker - #334356

Merged
Megan Rogge (meganrogge) merged 7 commits into
mainfrom
agents/consolidated-remote-workspaces-setting
Sep 3, 2026
Merged

sessions: Add no-workspace option to new session picker#334356
Megan Rogge (meganrogge) merged 7 commits into
mainfrom
agents/consolidated-remote-workspaces-setting

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Fixes #334345

Adds a No workspace option to the Agents Window new-session workspace picker when chat.agentSessions.consolidatedRemoteWorkspaces is enabled. The existing picker presentation, grouping, and Automations picker remain unchanged.

Selecting the option creates a workspace-less quick-chat draft, cancels pending workspace creation, and avoids carrying the previous workspace into feedback formatting. The option is shown only when a provider supports quick chats, while remaining available for an already-active workspace-less draft.

Testing

  • npm run compile
  • npm run hygiene
  • ./scripts/test.sh --run src/vs/sessions/contrib/chat/test/browser/sessionWorkspacePicker.test.ts --run src/vs/sessions/contrib/chat/test/browser/newChatWidget.test.ts (91 passing)

Offer a workspace-less quick chat from the Agents Window workspace picker when consolidated remote workspaces are enabled, while preserving the existing picker presentation and safely cancelling pending workspace drafts.\n\nFixes #334345\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the option available for an existing workspace-less draft, but do not offer it when no provider can create quick chats.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 3, 2026 19:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The onboarding tour cannot advance when a first-run user selects the valid No workspace option.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 2 Low severity

New issues introduced by this change (2)
Severity Finding
Low severity src/​vs/​sessions/​contrib/​chat/​browser/​newChatWidget.ts — This setting now also controls whether the picker remains visible for quick chats and whether **No…
Low severity src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts — The option is absent when no provider supports quick chats, but this help text says it is always…
What changed in this PR

Adds workspace-less quick-chat selection to the Agents Window’s consolidated workspace picker.

Changes:

  • Adds and presents a selectable No workspace option.
  • Cancels pending workspace creation and prevents stale workspace feedback context.
  • Adds accessibility guidance and unit tests.
File Description
sessionWorkspacePicker.ts Adds option rendering and selection presentation.
newChatWidget.ts Creates and manages workspace-less drafts.
sessionsChatAccessibilityHelp.ts Documents the new picker option.
sessionWorkspacePicker.test.ts Tests consolidated-picker selection.
newChatWidget.test.ts Tests availability, cancellation, and workspace roots.
Suppressed comments (1)

src/vs/sessions/contrib/chat/browser/newChatWidget.ts:470

  • This makes the workspace onboarding step eligible for quick-chat drafts, but that step hides Next and advances only when SessionHasWorkspaceContext becomes true (newSessionViewTourShared.ts:24-35). Selecting the newly valid No workspace option leaves that key false, so first-run users cannot complete the step without choosing a workspace. Update the tour to also advance for IsQuickChatSessionContext (and adjust its copy/tests).
				this._workspacePickerVisibleKey.set(!isQuickChat || useConsolidatedPicker);

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/sessions/contrib/chat/browser/newChatWidget.ts
Comment thread src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Base: 5be7ea09 Current: b48e73b3

No screenshot changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 85ad2220-1132-4b10-86b1-266e38e2ba29
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hediet

Copy link
Copy Markdown
Member

I don't know why the screenshot changed (the css must have changed in a very subtle way), I believe you can just update the hash.

@meganrogge
Megan Rogge (meganrogge) merged commit ac06751 into main Sep 3, 2026
40 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/consolidated-remote-workspaces-setting branch September 3, 2026 21:17
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 3, 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.

Add No workspace option to agents window new session chat input

4 participants