From 4fa6d21a690349fc4fbb06d0e8301de8caf27eab Mon Sep 17 00:00:00 2001 From: Laith Al-Saadoon Date: Sun, 17 May 2026 00:08:59 +0000 Subject: [PATCH] fix(cli): code-pack must open temporal store for embeddings staging --- packages/cli/src/commands/code-pack.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/src/commands/code-pack.ts b/packages/cli/src/commands/code-pack.ts index 6a3b4af..049bd55 100644 --- a/packages/cli/src/commands/code-pack.ts +++ b/packages/cli/src/commands/code-pack.ts @@ -140,6 +140,10 @@ async function runPackEngine(repoPath: string, args: CodePackArgs): Promise { const composed = await openStore({ path: dbPath, readOnly: true }); await composed.graph.open(); + // Pack stages embeddings through `temporal.exportEmbeddingsToParquet`, + // so the temporal DuckDB also needs an open connection — the graph + // view alone is not enough. + await composed.temporal.open(); return composed; })() : undefined;