Skip to content

prompts: fix agent plugin hooks being picked up multiple times#304523

Merged
connor4312 merged 3 commits intomainfrom
connor4312/plugin-dupe-hooks
Mar 24, 2026
Merged

prompts: fix agent plugin hooks being picked up multiple times#304523
connor4312 merged 3 commits intomainfrom
connor4312/plugin-dupe-hooks

Conversation

@connor4312
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 24, 2026 17:19
@connor4312 connor4312 enabled auto-merge (squash) March 24, 2026 17:19
@connor4312 connor4312 self-assigned this Mar 24, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.114.0 milestone Mar 24, 2026
Copy link
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 fixes duplicate collection of agent plugin hooks by ensuring plugin-provided hook entries returned from listPromptFiles(PromptsType.hook) are not also parsed as regular hook files, since plugin hooks are collected separately from agentPluginService.

Changes:

  • Skip PromptsStorage.plugin entries during the hook-file parsing loop in computeHooks.
  • Rely exclusively on the existing “Collect hooks from agent plugins” path for plugin hooks.

@connor4312 connor4312 merged commit 0848b91 into main Mar 24, 2026
19 checks passed
@connor4312 connor4312 deleted the connor4312/plugin-dupe-hooks branch March 24, 2026 18:21
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.

3 participants