Commit d3777b0
fix(core): default fastembed cache to ~/.basic-memory/fastembed_cache
FastEmbed's own default of /tmp/fastembed_cache is ephemeral in sandboxed
runtimes like Codex CLI where /tmp is wiped between invocations, causing
ONNXRuntimeError: NO_SUCHFILE on every subsequent semantic search or sync.
Add _default_fastembed_cache_dir() that mirrors the existing data_dir_path
logic (honors BASIC_MEMORY_CONFIG_DIR for isolated test environments) and
use it as default_factory for semantic_embedding_cache_dir. The field stays
str | None so users can explicitly set null to restore FastEmbed's own default.
Fixes #741. Related to #681.
Co-authored-by: Drew Cain <groksrc@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>1 parent 8f2b25f commit d3777b0
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
53 | 70 | | |
54 | 71 | | |
55 | 72 | | |
| |||
221 | 238 | | |
222 | 239 | | |
223 | 240 | | |
224 | | - | |
225 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
226 | 246 | | |
227 | 247 | | |
228 | 248 | | |
| |||
0 commit comments