Repository navigation
Update cache-memory folder naming: default at /tmp/gh-aw/cache-memory/, others at /tmp/gh-aw/cache-memory-{id}/ - #1985
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update folder naming schema for cache memory
Update cache-memory folder naming to /tmp/cache-memory-{id}/ to prevent overlaps
Oct 19, 2025
Collaborator
|
. |
Collaborator
|
@copilot Update the folder path scheme to: For the "default" cache: /tmp/gh-aw/cache-memory/ For other caches: /tmp/gh-aw/cache-memory-/ |
…ry/, others=/tmp/gh-aw/cache-memory-{id}/
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Updated cache-memory paths as requested:
Changes in commit 7c5ddc9 |
Copilot
AI
changed the title
Update cache-memory folder naming to /tmp/cache-memory-{id}/ to prevent overlaps
Update cache-memory folder naming: default at /tmp/gh-aw/cache-memory/, others at /tmp/gh-aw/cache-memory-{id}/
Oct 19, 2025
Collaborator
|
@copilot recompile |
Contributor
Author
Recompiled all 37 workflows successfully. No changes were needed as the workflows were already compiled with the latest cache-memory path updates:
|
Contributor
|
Agentic Changeset Generator triggered by this pull request. |
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.
Problem
The previous cache-memory implementation used nested folder paths that could cause overlaps:
/tmp/gh-aw/cache-memory//tmp/gh-aw/cache-memory/{id}/This meant the default cache folder could conflict with the parent directory of multiple cache configurations, potentially causing unexpected behavior when switching between single and multiple cache setups.
Solution
Updated the cache-memory folder naming schema to use a flat, non-overlapping structure while maintaining backward compatibility:
/tmp/gh-aw/cache-memory/(unchanged for backward compatibility)/tmp/gh-aw/cache-memory-{id}/(flat structure with ID suffix)This ensures custom caches have their own isolated directories at the same level as the default cache, preventing any possibility of path conflicts while maintaining backward compatibility for existing workflows.
Changes
Core Implementation
generateCacheMemorySteps()to use/tmp/gh-aw/cache-memory/for default cache and/tmp/gh-aw/cache-memory-{id}/for other caches; updatedgenerateCacheMemoryPromptSection()to reflect correct paths in AI agent prompts--add-dirflag using the correct path for each cachecomputeAllowedClaudeToolsString()to acceptCacheMemoryConfigparameter and generate path-specific tools for each cache directory with correct paths/tmp/gh-aw/cache-memory/path for default cacheTesting
Documentation
docs/src/content/docs/reference/cache-memory.mdto reflect new folder structureExamples
Single cache (default):
Creates:
/tmp/gh-aw/cache-memory/(backward compatible)Multiple caches:
Creates:
/tmp/gh-aw/cache-memory-session/and/tmp/gh-aw/cache-memory-logs/Mixed (default + others):
Creates:
/tmp/gh-aw/cache-memory/and/tmp/gh-aw/cache-memory-session/Verification
Fixes the folder naming overlap issue while maintaining backward compatibility and providing a clean, predictable cache directory structure.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.