Skip to content

Enable agents window in stable#315245

Merged
sandy081 merged 1 commit into
mainfrom
sandy081/enable-agents-stable
May 8, 2026
Merged

Enable agents window in stable#315245
sandy081 merged 1 commit into
mainfrom
sandy081/enable-agents-stable

Conversation

@sandy081
Copy link
Copy Markdown
Member

@sandy081 sandy081 commented May 8, 2026

Removes all quality !== 'stable' guards that were blocking the agents window from being accessible in stable builds.

Changes

  • app.ts — Remove quality check from --agents CLI flag and from tryConsumeAgentsLastRunningMarker (agents window now restores on startup in stable too)
  • launchMainService.ts — Remove quality check when re-launching with --agents flag; remove now-unused IProductService dependency
  • constants.ts — Remove ProductQualityContext.notEqualsTo('stable') from OPEN_AGENTS_WINDOW_PRECONDITION, enabling the "Open Agents Window" action in stable
  • agentSessionsBanner.ts — Remove quality check from canShowAgentsBanner so the "Try out the new Agents" banner shows in stable (for users with Copilot access); remove now-unused productService parameter
  • chatTipCatalog.ts — Remove the tip.openAgentsWindow chat tip shown above the chat input — already enough promotion via the banner and actions

Not changed

  • agentsAppMergedBanner.contribution.ts — Kept gated to non-stable (migration notice for users of the old standalone Agents app, which never existed in stable)
  • agentSessionsBanner.ts (canShowAgentsBanner) — The banner itself still respects AI entitlement (sentiment.hidden, sentiment.disabled), just no longer requires non-stable
  • agentSessionsExperiments.contribution.ts — "Agent Quick Input" toggle kept as Insiders-only experimental feature

- Remove quality !== 'stable' guards from --agents CLI flag handling and last-running marker restore in app.ts
- Remove quality !== 'stable' guard from launchMainService when re-launching with --agents flag
- Remove quality !== 'stable' guard from OPEN_AGENTS_WINDOW_PRECONDITION context key expression
- Enable 'Try out the new Agents' banner in stable (canShowAgentsBanner no longer checks quality)
- Remove the 'tip.openAgentsWindow' chat tip shown above the chat input

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 8, 2026 11:47
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@deepak1556

Matched files:

  • src/vs/code/electron-main/app.ts

@sandy081 sandy081 enabled auto-merge (squash) May 8, 2026 11:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Enables the Agents window experience in Stable builds by removing product-quality gating across window launch/restore paths, command preconditions, and related promotional UI.

Changes:

  • Removes quality !== 'stable' guards for launching/restoring the Agents window (--agents flag and last-running marker restore).
  • Enables the “Open Agents Window” action precondition in Stable by dropping the ProductQualityContext check.
  • Simplifies Agents banner gating and removes the “open agents window” chat tip entry.
Show a summary per file
File Description
src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts Updates Agents banner visibility check to match new canShowAgentsBanner signature.
src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.ts Updates Agents banner visibility check to match new canShowAgentsBanner signature.
src/vs/workbench/contrib/chat/common/constants.ts Removes Stable-quality gate from OPEN_AGENTS_WINDOW_PRECONDITION.
src/vs/workbench/contrib/chat/browser/chatTipCatalog.ts Removes the tip.openAgentsWindow tip and associated imports.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.ts Removes product-quality gating from banner eligibility and drops IProductService dependency.
src/vs/platform/launch/electron-main/launchMainService.ts Allows --agents relaunch in Stable; removes now-unused IProductService injection.
src/vs/code/electron-main/app.ts Allows --agents handling and last-running marker restore in Stable.

Copilot's findings

  • Files reviewed: 7/7 changed files
  • Comments generated: 1

Comment on lines 35 to +39
* The banner requires the open agents window command
* to be registered (desktop builds only) and is limited to Insiders quality.
* It is also hidden when AI features are disabled.
*/
export function canShowAgentsBanner(productService: IProductService, chatEntitlementService: IChatEntitlementService): boolean {
export function canShowAgentsBanner(chatEntitlementService: IChatEntitlementService): boolean {
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Screenshot Changes

Base: 94197da9 Current: 38db6f6b

Changed (4)

chat/chatToolRiskBadge/GreenElicitationInContext/Light
Before After
before after
chat/chatToolRiskBadge/OrangeElicitationInContext/Dark
Before After
before after
chat/chatToolRiskBadge/RedElicitationInContext/Dark
Before After
before after
chat/chatToolRiskBadge/RedElicitationInContext/Light
Before After
before after

@sandy081 sandy081 merged commit dc64a46 into main May 8, 2026
29 checks passed
@sandy081 sandy081 deleted the sandy081/enable-agents-stable branch May 8, 2026 12:05
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 8, 2026
lszomoru pushed a commit that referenced this pull request May 8, 2026
- Remove quality !== 'stable' guards from --agents CLI flag handling and last-running marker restore in app.ts
- Remove quality !== 'stable' guard from launchMainService when re-launching with --agents flag
- Remove quality !== 'stable' guard from OPEN_AGENTS_WINDOW_PRECONDITION context key expression
- Enable 'Try out the new Agents' banner in stable (canShowAgentsBanner no longer checks quality)
- Remove the 'tip.openAgentsWindow' chat tip shown above the chat input

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

Hi, I don't think the Agents Window is ready for stable. It still has a lot of development work remaining.
For example, the Agents Window can't use the extensions installed in VS Code, which results in no LSP support for my Lua files.

In agents window:
image

In vscode window:
image

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.

4 participants