Skip to content

fix: derive cache_dir from base_dir so embedding cache survives restarts#88

Merged
samcm merged 1 commit intomasterfrom
nimble-penguin-390
Mar 18, 2026
Merged

fix: derive cache_dir from base_dir so embedding cache survives restarts#88
samcm merged 1 commit intomasterfrom
nimble-penguin-390

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Mar 18, 2026

Derives cache_dir as a sibling of base_dir instead of hardcoding ~/.panda/data/cache. Adds /data/cache to Dockerfiles and entrypoint chown logic so the embedding vector cache persists across container restarts.

Users with configs generated before cache_dir was added to the init
template defaulted to ~/.panda/data/cache inside the container — an
ephemeral path not on the persistent panda-cache volume. Every container
recreate lost the cache, re-embedding 8k+ EIP chunks on every startup.

Derive cache_dir as a sibling of base_dir instead, and add /data/cache
to the Dockerfile and entrypoint chown logic.
@samcm samcm merged commit 6875279 into master Mar 18, 2026
4 checks passed
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