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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user