fix(cli): keep search index ephemeral

This commit is contained in:
Hypatia May
2026-07-27 12:51:47 +08:00
parent 31215687f9
commit bd42204e53
10 changed files with 19 additions and 20 deletions

View File

@@ -163,7 +163,7 @@ export async function launchWebScaffold(options: LaunchOptions = {}): Promise<We
// stops matching a row fails the boot sweep loudly instead of drifting).
const patches: PatchOptions[] = [
{ id: 'session-persistence-jsonl', config: { root: persistenceRoot } },
{ id: 'session-query-sqlite', config: { path: join(persistenceRoot, 'session-query.db') } },
{ id: 'session-query-sqlite', config: { path: ':memory:' } },
// storage-json's './.storages' yml default is cwd-relative and resolves
// per write; the scaffold restores the original cwd after boot, so the
// row gets an absolute temp root (removed with the workspace at close).