feat(ui-flow): pass digest snapshot fetch retry options to platform

Forward maxAttempts and baseDelayMs for automation digest mesh fetch;
surface fetchAttempts on error events for UI retry feedback.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 05:37:33 -04:00
co-authored by Cursor
parent 34f63baf09
commit f2d3928e1d
+6 -2
View File
@@ -213,18 +213,22 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
return true
}
if (t === 'fetch-automation-digest-snapshot') {
const fetchMesh = true
try {
const out = await platform.fetchAutomationDigestSnapshotFromMesh(msg.snapshotId, {
timeoutMs: msg.timeoutMs,
maxAttempts: msg.maxAttempts,
baseDelayMs: msg.baseDelayMs,
targetMemberId: msg.targetMemberId || null
})
send({ type: 'automation-digest-snapshot-body', ...out, fetchMesh: true })
send({ type: 'automation-digest-snapshot-body', ...out, fetchMesh })
} catch (err) {
send({
type: 'automation-digest-snapshot-error',
snapshotId: msg.snapshotId,
message: err?.message || String(err),
fetchMesh: true
fetchAttempts: err?.fetchAttempts || 0,
fetchMesh
})
}
return true