Skip to content

Commit 1a06fbe

Browse files
committed
fix: remove unintentional deleted_at filter from getThreadCheckpointContextThreadRow
The new targeted query added AND threads.deleted_at IS NULL, but the original code path returned all threads regardless of deletion status. This caused checkpoint diff requests for soft-deleted threads to fail with a CheckpointInvariantError instead of returning diff data.
1 parent 0e0bad4 commit 1a06fbe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/server/src/orchestration/Layers/ProjectionSnapshotQuery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ const makeProjectionSnapshotQuery = Effect.gen(function* () {
407407
INNER JOIN projection_projects AS projects
408408
ON projects.project_id = threads.project_id
409409
WHERE threads.thread_id = ${threadId}
410-
AND threads.deleted_at IS NULL
411410
LIMIT 1
412411
`,
413412
});

0 commit comments

Comments
 (0)