From 14b9185e86d587f4817fdd3c7ab16ea1628e7b65 Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Thu, 1 Oct 2026 13:27:54 +0200 Subject: [PATCH] feat(retrieval): create the data directory on install Sandboxed clients may write only to data/ and cannot create it themselves. Co-Authored-By: Claude Opus 5.5 --- scripts/lib/semantic-retrieval.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lib/semantic-retrieval.py b/scripts/lib/semantic-retrieval.py index 6e5ef8e..fc5f8f7 100644 --- a/scripts/lib/semantic-retrieval.py +++ b/scripts/lib/semantic-retrieval.py @@ -150,6 +150,8 @@ def sync(root, home, clients, enabled, dry_run, update, summary=False): save_state(state_path, state, False) python = ensure_runtime(target, False) ensure_models(python, target) + # Sandboxed clients may write only to data/; it cannot be created from inside the sandbox. + (target / 'data').mkdir(exist_ok=True) state['clients'] = list(dict.fromkeys(state['clients'])) save_state(state_path, state, False) for client in clients: