diff --git a/src/features/background-agent/council-continuation-enforcer.ts b/src/features/background-agent/council-continuation-enforcer.ts index bd29652e9..a730b34c4 100644 --- a/src/features/background-agent/council-continuation-enforcer.ts +++ b/src/features/background-agent/council-continuation-enforcer.ts @@ -59,7 +59,6 @@ export function sendCouncilContinuationNudge( } nudgeCountByTask.set(task.id, count + 1) - const resumeModel = task.model ? { providerID: task.model.providerID, modelID: task.model.modelID } : undefined @@ -90,6 +89,7 @@ export function sendCouncilContinuationNudge( parts: [createInternalAgentTextPart(CONTINUATION_PROMPT)], }, }).catch((error) => { + nudgeCountByTask.set(task.id, count) log("[council-continuation] Nudge prompt error:", { taskId: task.id, error: String(error), @@ -101,4 +101,4 @@ export function sendCouncilContinuationNudge( } return true -} +} \ No newline at end of file