@devries-cameron20 / t3code-1 / commits / d22c6f5280
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix: prevent user-input activities from leaking into pending approvals projection (#2051)

Marcus Grando committed Apr 16, 2026 at 02:09 UTC d22c6f52800673d954840bd447109aeb707c6e8e
1 file changed +8
apps/server/src/orchestration/Layers/ProjectionPipeline.ts
+8
@@ -1284,6 +1284,14 @@ const makeOrchestrationProjectionPipeline = Effect.fn("makeOrchestrationProjecti
1284 }
1285 return;
1286 }
1287 + // Only approval-requested activities should create pending-approval
1288 + // rows. Other activity kinds that happen to carry a requestId
1289 + // (e.g. user-input.requested / user-input.resolved) must not
1290 + // pollute this projection — they have their own accounting via
1291 + // derivePendingUserInputCountFromActivities.
1292 + if (event.payload.activity.kind !== "approval.requested") {
1293 + return;
1294 + }
1295 if (Option.isSome(existingRow) && existingRow.value.status === "resolved") {
1296 return;
1297 }