fix(retrieval): keep active runtime after benchmark

This commit is contained in:
Julian lechner committed 2026-09-24 17:08:30 +02:00
1 parent 046cf48452
commit f3c938910d
3 files changed
+21 -2

No files matched your search

+1 -1
View File
@@ -149,7 +149,7 @@ def benchmark(root, home, dry_run, summary=False):
outcome = json.loads(result.stdout)
if not isinstance(outcome, dict) or not isinstance(outcome.get('recommended'), bool):
raise ValueError('Semantic retrieval benchmark returned an invalid result.')
if outcome['recommended']:
if outcome['recommended'] or state['clients']:
save_state(state_path, state, False)
else:
shutil.rmtree(target)