mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(auto-reply): guard missing dispatcher getFailedCounts without weakening the SDK type
This commit is contained in:
@@ -785,7 +785,7 @@ export function getDispatcherFinalOutcomeCounts(dispatcher: DispatcherOutcomeCou
|
||||
} {
|
||||
return {
|
||||
cancelled: dispatcher.getCancelledCounts?.().final ?? 0,
|
||||
failed: dispatcher.getFailedCounts?.().final ?? 0,
|
||||
failed: readDispatcherFailedCounts(dispatcher).final,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user