fix: correct cache-memory paths for named caches#28439
Merged
Conversation
Named caches use a flat hyphenated path (cache-memory-{id}), not a
nested subdirectory (cache-memory/{id}). Fix hardcoded wrong paths
in two workflow prompts so agent state is persisted correctly.
Fixes #28431
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/eb5f2dcc-47f8-43f4-8949-d7c778f85a38
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix cache-memory paths for named caches
fix: correct cache-memory paths for named caches
Apr 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes incorrect hardcoded cache-memory directory paths for named caches in two agentic workflow prompt files so state is written into the cached directory that GitHub Actions will persist across runs.
Changes:
- Update
focus-areascache path references to use/tmp/gh-aw/cache-memory-focus-areas/(flat, hyphenated) instead of the nested/tmp/gh-aw/cache-memory/focus-areas/. - Update
repo-auditscache path references to use/tmp/gh-aw/cache-memory-repo-audits/instead of the nested/tmp/gh-aw/cache-memory/repo-audits/.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/repository-quality-improver.md | Corrects all focus-areas cache path references to the named-cache directory format so history/state persists. |
| .github/workflows/repo-audit-analyzer.md | Corrects all repo-audits cache path references to the named-cache directory format so audit artifacts persist. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
Closed
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.
Named caches use a flat hyphenated directory (
/tmp/gh-aw/cache-memory-{id}/), not a nested subdirectory (/tmp/gh-aw/cache-memory/{id}/). Two workflows had the wrong path hardcoded in their prompts, silently writing state to an untracked location that was never saved to the Actions cache — losing all persistence across runs.Changes
repository-quality-improver.md— cacheid: focus-areas/tmp/gh-aw/cache-memory/focus-areas/→/tmp/gh-aw/cache-memory-focus-areas/(5 occurrences)repo-audit-analyzer.md— cacheid: repo-audits/tmp/gh-aw/cache-memory/repo-audits/→/tmp/gh-aw/cache-memory-repo-audits/(8 occurrences).lock.ymlfiles included