fix(auto-reply): guard missing dispatcher getFailedCounts without weakening the SDK type

This commit is contained in:
clawsweeper
2026-06-02 03:57:26 +00:00
parent 14487888b5
commit 0bdfb4adeb

View File

@@ -785,7 +785,7 @@ export function getDispatcherFinalOutcomeCounts(dispatcher: DispatcherOutcomeCou
} {
return {
cancelled: dispatcher.getCancelledCounts?.().final ?? 0,
failed: dispatcher.getFailedCounts?.().final ?? 0,
failed: readDispatcherFailedCounts(dispatcher).final,
};
}