Skip to content

Add adapter for agent customizations in shared client pipeline - #338985

Merged
Martin Aeschlimann (aeschli) merged 2 commits into
mainfrom
aeschli/agents/add-adapter-for-agent-customizations
Oct 1, 2026
Merged

Martin Aeschlimann (aeschli) merged 2 commits into
mainfrom
aeschli/agents/add-adapter-for-agent-customizations

Conversation

@aeschli

Copy link
Copy Markdown
Contributor

This pull request implements an adapter to support agent customizations from non-default configured locations in the shared client-customization pipeline. The changes ensure that the settings chat.agentSkillsLocations, chat.instructionsFilesLocations, and chat.agentFilesLocations are correctly forwarded to agent-host harnesses.

Key changes include:

  • Adapter Implementation: The adapter forwards agents, skills, and instructions from non-default configured locations while preserving default location discovery.
  • Preservation of Features: Maintains sync opt-outs, session filtering, deduplication, and existing remote user-file syncing.
  • Pre-session Picker: Configured agents are now available in the pre-session picker.

Testing:

  • 103 targeted tests were executed successfully, covering various scenarios including default-location exclusion and client bundling.
  • Type checks, ESLint, and whitespace checks also passed.

This enhancement addresses user requests for improved customization handling across different harnesses.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 20:40
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: d547327f Current: f5377ad8

Changed (1)

sessions/accountMenu/WeeklyAndFiveHourLimits/Light
Before After
before after

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

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

Configured-agent selections use mismatched URIs, and workspace-local customizations are not scoped to session roots.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Adds configured-location agents, skills, and instructions to the shared Agent Host customization pipeline.

Changes:

  • Adapts non-default configured customizations while preserving existing filtering.
  • Exposes configured agents in the pre-session picker.
  • Adds targeted enumeration and bundling tests.
File Description
agentHostLocalCustomizations.ts Enumerates configured locations for Agent Host synchronization.
enumerateLocalCustomizationsForHarness.test.ts Tests filtering, deduplication, and harness coverage.
resolveCustomizationRefs.test.ts Tests bundling and picker discovery.

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

Comment on lines +98 to +100
const storageSources = type === PromptsType.prompt
? fullySyncedStorageSources
: [PromptsStorage.local, PromptsStorage.user, ...SYNCABLE_STORAGE_SOURCES];
@aeschli
Martin Aeschlimann (aeschli) marked this pull request as ready for review October 1, 2026 11:28
@aeschli
Martin Aeschlimann (aeschli) merged commit 1418273 into main Oct 1, 2026
55 of 56 checks passed
@aeschli
Martin Aeschlimann (aeschli) deleted the aeschli/agents/add-adapter-for-agent-customizations branch October 1, 2026 13:34
@vs-code-engineering vs-code-engineering Bot added this to the 1.141.0 milestone Oct 1, 2026
@willyboy

Copy link
Copy Markdown

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants