Repository navigation
Fix bash tool parser to merge default commands with custom arrays - #1094
Merged
Merged
Conversation
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
Copilot
AI
changed the title
[WIP] Add tools bash permission to Go tools, "make *" to tiny.md
Analyze missing tool data at https://github.com/githubnext/gh-aw/actions/runs/18088588008/job/51464226832#step:2:1
Add make:* commands to DefaultBashTools for workflow compatibility
Sep 29, 2025
Collaborator
|
Co-authored-by: pelikhan <[email protected]>
Contributor
Author
Fixed both issues in commit 683f6ba:
The root issue was that
The tidy.md workflow now correctly includes 20+ bash tools instead of just git + make commands. |
Copilot
AI
changed the title
Add make:* commands to DefaultBashTools for workflow compatibility
Fix bash tool parser to merge default commands with custom arrays
Sep 29, 2025
pelikhan
approved these changes
Sep 29, 2025
pelikhan
marked this pull request as ready for review
September 29, 2025 12:59
Collaborator
|
@dsyme should we explicitely have the user add a "defaults" toolset? |
Collaborator
|
@copilot format, lint |
Co-authored-by: pelikhan <[email protected]>
Contributor
Author
Code formatting and linting completed in commit e8c2174:
The code is now properly formatted and follows project style guidelines. |
pelikhan
deleted the
copilot/fix-406d05f2-a2bd-4e63-a437-be82bef59b8a
branch
September 29, 2025 13:11
Copilot stopped work on behalf of
pelikhan due to an error
September 29, 2025 13:11
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.
makecommandstidy.mdhasbash: ["make:*"]but currentDefaultBashToolsdoesn't includemakepatternsSummary
Issue: The parser was not correctly handling the case where
bash: ["make:*"]was specified. Previously, this would ONLY provide make commands, but AI agents also need basic commands likeecho,ls,pwd, etc.Root Cause: The compiler had logic that said
bash: ["cmd1", "cmd2"] → Keep specific commands as-is, but it should have beenbash: ["cmd1", "cmd2"] → Add default commands + specific commands.Solution: Updated the compiler logic in
pkg/workflow/compiler.goto merge default bash tools with custom commands when an array is specified. Now when someone usesbash: ["make:*"], they get:echo,ls,pwd,cat,head,tail,grep,wc,sort,uniq,datemake:*git add:*,git commit:*, etc.Verification: The tidy.md workflow now correctly includes 20+ bash tools instead of just git + make commands, giving AI agents access to all the tools they need for basic operations and build commands.
Formatting: Applied
go fmtto ensure code consistency and quality.Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.