Fix: Skip tools validation for custom agent files with array-format tools#9307
Merged
Fix: Skip tools validation for custom agent files with array-format tools#9307
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issues when importing custom agents due to tools format
Fix: Skip tools validation for custom agent files with array-format tools
Jan 8, 2026
Collaborator
|
@copilot format, lint |
Copilot stopped work on behalf of
pelikhan due to an error
January 8, 2026 04:47
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.
Custom agent files (
.github/agents/*.md) use GitHub Copilot's format wheretoolsis an array of strings, while workflows expect an object. Importing these files caused schema validation errors.Changes
isCustomAgentFile()helper to detect agent files under.github/agents/include_processor.go- they have a different schemaAgent files are passed directly to AI engines (e.g., via
--agentflag) and shouldn't be validated against workflow schemas.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login 2040108811 refs/tags/v2 /usr/bin/infocmp -json GO111MODULE 64/bin/go infocmp -1 k/gh-aw/gh-aw/.github/workflows go /usr/bin/infocmp 2323241/run-5 GO111MODULE tions/setup/node/repos/actions/github-script/git/ref/tags/v8 infocmp(http block)/usr/bin/gh gh api user --jq .login xterm-color go /usr/bin/infocmp '**/*.ts' '**/*.gh GO111MODULE 64/pkg/tool/linu/repos/actions/github-script/git/ref/tags/v8 infocmp -1 xterm-color 64/pkg/tool/linu--jq /usr/bin/infocmp -json GO111MODULE 64/pkg/tool/linu-c infocmp(http block)/usr/bin/gh gh api user --jq .login runs/20260108-043357-72167/test-668715913/.githu99c8f7c4e5923f2e885ec86ed035d8ba0671ce7211c81a9dinfocmp --jq(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
tools(due to incompatibletoolsformat) #9305✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.