Repository navigation
Preserve hooks in Copilot custom-agent frontmatter - #341712
Merged
Martin Aeschlimann (aeschli) merged 5 commits intoOct 19, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Co-authored-by: aeschli <[email protected]>
Copilot
AI
changed the title
[WIP] Fix dropped custom agent frontmatter hooks
Preserve hooks in Copilot custom-agent frontmatter
Oct 15, 2026
Martin Aeschlimann (aeschli)
marked this pull request as ready for review
October 18, 2026 20:28
Contributor
|
Copilot resolve the merge conflicts in this pull request |
Contributor
|
Base:
|
| ...(isCustomAgentReasoningEffort(reasoningEffort) ? { reasoningEffort } : {}), | ||
| tools: tools && tools.length > 0 ? tools : null, | ||
| ...(skills !== undefined ? { skills } : {}), | ||
| ...(hooks ? { hooks } : {}), |
Co-authored-by: aeschli <[email protected]>
Contributor
Author
Resolved by merging current main and preserving the updated plugin-agent catalog behavior. Merge commit: |
Federico Brancasi (federicobrancasi)
previously approved these changes
Oct 18, 2026
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Oct 18, 2026
Skip malformed custom-agent hook entries without discarding valid commands for the event. Add regression coverage for mixed entries and entirely malformed events. Co-authored-by: Copilot <[email protected]>
Martin Aeschlimann (aeschli)
dismissed stale reviews from Dmitriy Vasyura (dmitrivMS) and Federico Brancasi (federicobrancasi)
via
October 19, 2026 20:04
c9e4237
Martin Aeschlimann (aeschli)
enabled auto-merge (squash)
October 19, 2026 20:05
Alexandru Dima (alexdima)
approved these changes
Oct 19, 2026
Martin Aeschlimann (aeschli)
deleted the
copilot/fix-agent-hooks-issue
branch
October 19, 2026 20:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Custom-agent frontmatter hooks were dropped during conversion to Copilot SDK configuration, so session-start hooks did not run and pre-tool denials were bypassed. This also affected selected agents from file-based plugins.