Skip to content

Fix configured customizations in Agents window - #333908

Draft
Paul (pwang347) wants to merge 1 commit into
microsoft:mainfrom
pwang347:fix/configured-agent-customizations
Draft

Fix configured customizations in Agents window#333908
Paul (pwang347) wants to merge 1 commit into
microsoft:mainfrom
pwang347:fix/configured-agent-customizations

Conversation

@pwang347

@pwang347 Paul (pwang347) commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • sync customizations contributed through configured local and personal locations to Agent Host sessions
  • keep default workspace customizations host-discovered to avoid duplicate agents, skills, and instructions
  • add focused coverage for configured agents and skills

Fixes #332919

Validation

  • npm run typecheck-client
  • ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/agentSessions/enumerateLocalCustomizationsForHarness.test.ts --run src/vs/workbench/contrib/chat/test/browser/agentSessions/resolveCustomizationRefs.test.ts (41 passing)
  • launched the Agents Window with chat.agentFilesLocations and chat.agentSkillsLocations, then confirmed the configured workspace agent and skill are listed

Screenshot

Configured workspace skill shown in the Agents Window

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

Copilot-Session: a4bf98f8-855c-4524-8aa4-52ad8d1abc9c
Copilot AI balanced review requested due to automatic review settings September 2, 2026 00:04

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

Local paths are resolved against ambient workspace roots, and discovery is redundantly repeated per refresh.

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

Review tier: Balanced
Findings: 2 Medium severity

New issues introduced by this change (2)
Severity Finding
Medium severity src/​vs/​workbench/​contrib/​chat/​browser/​agentSessions/​agentHost/​agentHostLocalCustomizations.ts — Adding filesystem-backed local and user storage here makes every scope refresh repeat the same…
Medium severity src/​vs/​workbench/​contrib/​chat/​browser/​agentSessions/​agentHost/​agentHostLocalCustomizations.ts — Local configured locations are resolved against the ambient workbench folders because this call…
What changed in this PR

Syncs configured agent and skill locations into Agent Host sessions while leaving default workspace customizations host-discovered.

Changes:

  • Adds configured local/personal locations to customization synchronization.
  • Filters default workspace and personal locations appropriately.
  • Adds focused enumeration and bundling tests.
File Description
agentHostLocalCustomizations.ts Adds configured-location filtering and synchronization.
enumerateLocalCustomizationsForHarness.test.ts Tests configured-location enumeration.
resolveCustomizationRefs.test.ts Tests configured files are bundled.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 48 to +50
export const SYNCABLE_STORAGE_SOURCES: readonly PromptsStorage[] = [
PromptsStorage.local,
PromptsStorage.user,
const userDisabled = promptsService.getDisabledPromptFiles(type);
const lists = await Promise.all(
storageSources.map(storage => promptsService.listPromptFilesForStorage(type, storage, token)),
SYNCABLE_STORAGE_SOURCES.map(storage => promptsService.listPromptFilesForStorage(type, storage, token)),
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.

Agents Window: Better skill set configuration for a workspace

2 participants