Conversation
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @deepak1556Matched files:
|
There was a problem hiding this comment.
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_IDandOPEN_AGENTS_WINDOW_PRECONDITIONtochat/common/constants.tsand updated callers to use them. - Disabled
--agentsstartup 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,
canShowAgentsBannershould also account for Linux. Right now it only checksquality !== 'stable'and command registration; on Linux Insiders the command is still registered, so the banner would show and clicking it will still executeworkbench.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
| 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'; |
There was a problem hiding this comment.
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.
| import { OPEN_AGENTS_WINDOW_COMMAND_ID } from '../../common/constants.js'; | |
| import { OPEN_AGENTS_WINDOW_COMMAND_ID } from '../../../common/constants.js'; |
|
but why? |
No description provided.