Skip to content

chore: prune stale yul binary caches on SessionStart - #14

Merged
algomaster99 merged 1 commit into
mainfrom
chore/prune-stale-yul-cache
Aug 15, 2026
Merged

chore: prune stale yul binary caches on SessionStart#14
algomaster99 merged 1 commit into
mainfrom
chore/prune-stale-yul-cache

Conversation

@algomaster99

Copy link
Copy Markdown
Member

`ensure-yul.sh` only ever added version directories under `~/.cache/yul/`, so every release left the previous ~8 MB binary behind forever.

Now, once the pinned `v/yul` binary is confirmed present (already cached or just downloaded), the hook removes the other `v*/` directories. If the download fails, nothing is pruned and the hook still exits 0, so the fail-open behavior is unchanged.

Before:

$ ls ~/.cache/yul/
v0.0.1  v0.0.2  v0.0.3

After a session on plugin 0.0.3:

$ ls ~/.cache/yul/
v0.0.3

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@algomaster99
algomaster99 merged commit 0d7ba6b into main Aug 15, 2026
2 checks passed
@algomaster99
algomaster99 deleted the chore/prune-stale-yul-cache branch August 15, 2026 23:53
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.

1 participant