From a4db955403d9271f02a2c816f50bfcfb3a216da5 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sun, 1 Nov 2026 03:38:53 -0600 Subject: [PATCH] fix: narrow enrollment cleanup predicate for Drizzle Co-Authored-By: Paperclip --- server/src/services/agent-instruction-working-copies.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/services/agent-instruction-working-copies.ts b/server/src/services/agent-instruction-working-copies.ts index 2a8b8eb0d3b..3e7a6363ecf 100644 --- a/server/src/services/agent-instruction-working-copies.ts +++ b/server/src/services/agent-instruction-working-copies.ts @@ -50,7 +50,7 @@ export async function hasUnsettledLocalInstructionCopies(db: Db): Promise>'schema', '') = 'paperclip.agent-files.v1'`, - sql`coalesce(${copies.receipt}->>'cleanupPending', '') = 'false'`)), + sql`coalesce(${copies.receipt}->>'cleanupPending', '') = 'false'`)!), )).limit(1)).length > 0; }