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)
|
nudgeCountByTask.set(task.id, count + 1)
|
||||||
|
|
||||||
const resumeModel = task.model
|
const resumeModel = task.model
|
||||||
? { providerID: task.model.providerID, modelID: task.model.modelID }
|
? { providerID: task.model.providerID, modelID: task.model.modelID }
|
||||||
: undefined
|
: undefined
|
||||||
@@ -90,6 +89,7 @@ export function sendCouncilContinuationNudge(
|
|||||||
parts: [createInternalAgentTextPart(CONTINUATION_PROMPT)],
|
parts: [createInternalAgentTextPart(CONTINUATION_PROMPT)],
|
||||||
},
|
},
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
nudgeCountByTask.set(task.id, count)
|
||||||
log("[council-continuation] Nudge prompt error:", {
|
log("[council-continuation] Nudge prompt error:", {
|
||||||
taskId: task.id,
|
taskId: task.id,
|
||||||
error: String(error),
|
error: String(error),
|
||||||
|
|||||||
Reference in New Issue
Block a user