feat(FN-5521): derive secrets media parsing from hook query

Test coverage for mobile views: `MobileNavBar.test.tsx` now syncs its mock with the viewport constant, and `SecretsView.mobile.test.tsx` derives secrets media parsing from the hook query.

Fusion-Task-Id: FN-5521

Fusion-Task-Lineage: eb37d760-ab67-49c5-9b57-2c14d648a98a

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
Fusion-Task-Id: FN-5521
This commit is contained in:
gsxdsm
2026-05-23 01:30:15 -07:00
parent 2498157ba5
commit f36abcc56e
3 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import { setTimeout as delay } from "node:timers/promises";
import type { AutoRecoverySettings } from "@fusion/core";
import { createLogger, type Logger } from "../logger.js";
import type { RunAuditor } from "../run-audit.js";
@@ -84,7 +85,7 @@ export class MessageDeliveryAutoRecoveryHandler {
}
const delayMs = backoffs[Math.min(attempts - 1, backoffs.length - 1)];
this.logger.warn(`message-delivery retrying ${attempt.correlation.kind} message for ${attempt.correlation.fromAgentId} attempt=${attempts + 1}`);
await (this.deps.sleep ? this.deps.sleep(delayMs) : new Promise((resolve) => setTimeout(resolve, delayMs)));
await (this.deps.sleep ? this.deps.sleep(delayMs) : delay(delayMs));
}
}