Add config folder upload step to copilot engine before CLI execution#1032
Merged
Add config folder upload step to copilot engine before CLI execution#1032
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update the copilot engine to add a step that uploads the content of the folder $XDG_CONFIG_HOME
- artifact name: config
- path: $XDG_CONFIG_HOME
- insert step before running copilot cli
Add XDG_CONFIG_HOME upload step to copilot engine before CLI execution
Sep 26, 2025
pelikhan
approved these changes
Sep 26, 2025
pelikhan
reviewed
Sep 26, 2025
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Add XDG_CONFIG_HOME upload step to copilot engine before CLI execution
Add config folder upload step to copilot engine before CLI execution
Sep 26, 2025
…74c1-41d9-af1b-e88663037298
- Added artifact upload for configuration files in multiple workflows. - Implemented log file creation and debugging output for Copilot execution logs. - Removed cleanup steps for engine output files to retain logs for analysis. - Introduced error validation for agent logs using GitHub Script, with customizable error patterns. - Ensured consistent handling of log files across various workflows to improve debugging capabilities.
pelikhan
reviewed
Sep 26, 2025
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Fixed all copilot engine tests to expect 3 steps instead of 2, accounting for the new log capture step that was added to all engines. All tests now pass. Commit: 1b4e08a |
pelikhan
approved these changes
Sep 26, 2025
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.
Implementation Complete: Add config folder upload step to copilot engine before CLI execution
Successfully implemented config folder upload functionality for the copilot engine.
Changes made:
generateUploadConfigStep()helper method to create the upload artifact stepGetExecutionSteps()method before copilot CLI execution/tmp/.copilot/instead of environment variable for better reliabilityUpload step specifications:
Current execution flow:
Testing:
The implementation follows existing patterns in the codebase and improves debuggability of copilot workflows by preserving the configuration state that affects CLI behavior.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.