diff --git a/apps/server/src/provider/Layers/CursorAdapter.ts b/apps/server/src/provider/Layers/CursorAdapter.ts index a086de2271..f43e144fa7 100644 --- a/apps/server/src/provider/Layers/CursorAdapter.ts +++ b/apps/server/src/provider/Layers/CursorAdapter.ts @@ -480,8 +480,10 @@ export function makeCursorAdapter( Effect.gen(function* () { if (ctx.stopped) return; ctx.stopped = true; - yield* settlePendingApprovalsAsCancelled(ctx.pendingApprovals); - yield* settlePendingUserInputsAsEmptyAnswers(ctx.pendingUserInputs); + yield* settlePendingCallbacksBeforeTurnCompletion( + ctx.pendingApprovals, + ctx.pendingUserInputs, + ); if (ctx.notificationFiber) { yield* Fiber.interrupt(ctx.notificationFiber); }