fix(council-continuation): increment nudge count only after successful dispatch
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user