We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e13f53 commit d22c6f5Copy full SHA for d22c6f5
apps/server/src/orchestration/Layers/ProjectionPipeline.ts
@@ -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
1297
0 commit comments