Skip to content

fix: correct cache-memory paths for named caches#28439

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-cache-memory-paths
Apr 25, 2026
Merged

fix: correct cache-memory paths for named caches#28439
pelikhan merged 2 commits intomainfrom
copilot/fix-cache-memory-paths

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 25, 2026

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 — cache id: focus-areas
    • /tmp/gh-aw/cache-memory/focus-areas//tmp/gh-aw/cache-memory-focus-areas/ (5 occurrences)
  • repo-audit-analyzer.md — cache id: repo-audits
    • /tmp/gh-aw/cache-memory/repo-audits//tmp/gh-aw/cache-memory-repo-audits/ (8 occurrences)
  • Recompiled both workflows; regenerated .lock.yml files included

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
Copilot AI requested a review from pelikhan April 25, 2026 11:50
@pelikhan pelikhan marked this pull request as ready for review April 25, 2026 11:52
Copilot AI review requested due to automatic review settings April 25, 2026 11:52
@pelikhan pelikhan merged commit 5eec8da into main Apr 25, 2026
20 checks passed
@pelikhan pelikhan deleted the copilot/fix-cache-memory-paths branch April 25, 2026 11:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-areas cache 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-audits cache 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

@github-actions github-actions Bot mentioned this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[q] fix: correct cache-memory paths for named caches

3 participants