Repository navigation
Fix incorrect aw.patch download path in push-failure fallback instructions - #17267
Merged
Merged
Conversation
The artifact upload strips the common parent /tmp/gh-aw/ from paths, so aw.patch is stored at the artifact root. Users should look for it at agent-artifacts/aw.patch, not agent-artifacts/tmp/gh-aw/aw.patch. Co-authored-by: dsyme <[email protected]>
Copilot
AI
changed the title
[WIP] Fix missing aw.patch from agentic workflow run artifacts
Fix incorrect aw.patch download path in push-failure fallback instructions
Feb 20, 2026
dsyme
marked this pull request as ready for review
February 20, 2026 20:23
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes incorrect download path instructions in push-failure fallback messages. When git push fails during PR creation, users are given instructions to manually download and apply a patch file. The instructions incorrectly stated the patch would be at agent-artifacts/tmp/gh-aw/aw.patch, but actions/upload-artifact strips the common path prefix /tmp/gh-aw/ from all uploaded files, so the actual location is agent-artifacts/aw.patch.
Changes:
- Updated fallback issue instructions to reference the correct patch download path
- Updated documentation to reflect the correct artifact structure after download
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| actions/setup/js/create_pull_request.cjs | Fixed patch path in push-failure fallback issue body from agent-artifacts/tmp/gh-aw/aw.patch to agent-artifacts/aw.patch |
| scratchpad/safe-output-messages.md | Updated documentation examples to show correct patch path after artifact download |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dsyme
reviewed
Feb 20, 2026
dsyme
reviewed
Feb 20, 2026
…llution
Downloads to /tmp/agent-artifacts-{runId} instead of creating an
agent-artifacts/ directory in the current (repo) directory.
Co-authored-by: dsyme <[email protected]>
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.
When
git pushfails during PR creation, a fallback issue is created with instructions to manually apply the patch. Those instructions referencedagent-artifacts/tmp/gh-aw/aw.patch— a path that doesn't exist after download.actions/upload-artifactstrips the longest common path prefix from all uploaded files. Since all artifacts share/tmp/gh-aw/as a common parent, the patch is stored at the artifact root asaw.patch, nottmp/gh-aw/aw.patch. The download command also now uses-D /tmp/agent-artifacts-{runId}to avoid creating anagent-artifacts/directory in the user's current repo.Changes
actions/setup/js/create_pull_request.cjs: Fix the download path in the push-failure fallback issue body:scratchpad/safe-output-messages.md: Update matching documentation to reflect the correct path and-Dflag usage.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.