Skip to content

remove agent app support in linux#311910

Merged
sandy081 merged 1 commit intomainfrom
sandy081/neutral-cuckoo
Apr 22, 2026
Merged

remove agent app support in linux#311910
sandy081 merged 1 commit intomainfrom
sandy081/neutral-cuckoo

Conversation

@sandy081
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 14:36
@sandy081 sandy081 enabled auto-merge (squash) April 22, 2026 14:36
@sandy081 sandy081 self-assigned this Apr 22, 2026
@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

@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: acb6bc5d Current: 0b050104

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

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

This PR removes Linux support for opening the “Agents Application/Agents window” and centralizes the command ID + enablement precondition into shared chat constants so UI entry points use consistent gating.

Changes:

  • Added OPEN_AGENTS_WINDOW_COMMAND_ID and OPEN_AGENTS_WINDOW_PRECONDITION to chat/common/constants.ts and updated callers to use them.
  • Disabled --agents startup handling on Linux in the Electron main process (launchMainService.ts, app.ts).
  • Updated the tip catalog to reference the command ID via localization placeholders.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/electron-browser/agentSessions/agentSessionsActions.ts Switched command ID/precondition to shared constants (but import path is currently incorrect).
src/vs/workbench/contrib/chat/common/constants.ts Introduced shared command ID + precondition (currently missing stable-quality gating).
src/vs/workbench/contrib/chat/browser/chatTipCatalog.ts Uses shared precondition and command ID placeholder for the “Agents Application” tip.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.ts Uses shared command ID (but import path is currently incorrect; banner logic also doesn’t exclude Linux).
src/vs/platform/launch/electron-main/launchMainService.ts Prevents --agents from opening Agents window on Linux.
src/vs/code/electron-main/app.ts Prevents --agents from opening Agents window on Linux during app startup.

Copilot's findings

Comments suppressed due to low confidence (1)

src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.ts:40

  • With Linux support being removed, canShowAgentsBanner should also account for Linux. Right now it only checks quality !== 'stable' and command registration; on Linux Insiders the command is still registered, so the banner would show and clicking it will still execute workbench.action.openAgentsWindow. Consider adding an explicit !isLinux (or equivalent) gate here to match the new platform restrictions.
export function canShowAgentsBanner(productService: IProductService): boolean {
	return productService.quality !== 'stable'
		&& !!CommandsRegistry.getCommand(OPEN_AGENTS_WINDOW_COMMAND_ID);
  • Files reviewed: 6/6 changed files
  • Comments generated: 3

Comment thread src/vs/workbench/contrib/chat/common/constants.ts
import { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.js';

const OPEN_AGENTS_WINDOW_COMMAND = 'workbench.action.openAgentsWindow';
import { OPEN_AGENTS_WINDOW_COMMAND_ID } from '../../common/constants.js';
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

The relative import path for OPEN_AGENTS_WINDOW_COMMAND_ID is incorrect. From chat/browser/agentSessions, ../../common/constants.js resolves to chat/browser/common, which doesn't exist; this should point to chat/common/constants.js (e.g. ../../../common/constants.js).

This issue also appears on line 38 of the same file.

Suggested change
import { OPEN_AGENTS_WINDOW_COMMAND_ID } from '../../common/constants.js';
import { OPEN_AGENTS_WINDOW_COMMAND_ID } from '../../../common/constants.js';

Copilot uses AI. Check for mistakes.
@sandy081 sandy081 merged commit 683373f into main Apr 22, 2026
30 checks passed
@sandy081 sandy081 deleted the sandy081/neutral-cuckoo branch April 22, 2026 14:58
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 22, 2026
@lajczi
Copy link
Copy Markdown

lajczi commented Apr 22, 2026

but why?

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