You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[deep-report] Make cacheMemoryDirFor return an error instead of panicking on invalid cache-memory ID #65083
cacheMemoryDirFor (pkg/workflow/cache_config.go:37) panics on an invalid cache-memory ID instead of returning an error, forcing a string-returning API shape onto what is really a fallible operation. It's called from 8 sites across cache_memory.go and sandbox.go. Validation currently happens at parse time so the practical risk is low, but any future caller that skips that validation step (or a validation gap) turns into an uncaught panic rather than a handled error.
Expected Impact
Removes the last of the four reachable-panic sites flagged in this audit, making the cache-memory path consistent with the rest of the compiler's error-returning conventions.
Suggested Agent
GitHub Copilot coding agent — change cacheMemoryDirFor to return (string, error), update all 8 callers in cache_memory.go/sandbox.go to propagate the error, and update TestCacheMemoryDirFor_InvalidIDPanics (in cache_id_validation_test.go) to assert an error instead of a panic.
Activity
github-actions commentedon Oct 2, 2026
🍪 Issue Monster selected this for Copilot
Ive identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
github-actions commentedon Oct 4, 2026
This issue was automatically closed because it expired on 2026-10-04T18:42:38.112Z.