Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/ingest-recovery/agent-migration-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ export async function controlPlaneMigrationLock(
throw new Error(
`Control-plane migration lock failed (${code}, ${diagnostic.length} diagnostic bytes)`,
);
const result: unknown = JSON.parse(output);
// `convex run` prints nothing when a function returns null, which is the `complete` contract.
const result: unknown = output.trim() === '' ? null : JSON.parse(output);
if (
(phase === 'begin' && typeof result !== 'boolean') ||
(phase === 'complete' && result !== null)
Expand Down