Стабилизация восстановления Bridge и Quick Connect

This commit is contained in:
DCCONSTRUCTIONS
2026-08-23 10:45:53 +03:00
parent 71c8b043c9
commit 7d911b4b1f
6 changed files with 381 additions and 17 deletions
@@ -351,6 +351,18 @@ export function provisioningAttemptViewState(
if (attempt.status === "succeeded" && attempt.control_state === "ready") {
return "settling";
}
// The network operation can be projected as succeeded immediately before
// its service-owned control bootstrap appears in the next snapshot. Keep
// the click-owned inline progress surface during that exact handoff; a
// terminal bootstrap failure still arrives as failed/control_not_ready.
if (
attempt.status === "succeeded"
&& attempt.phase === "network_applied"
&& attempt.control_state === "unknown"
&& attempt.safe_next_action === "verify-control-read-only"
) {
return "settling";
}
if (TERMINAL_PROVISIONING_STATUSES.has(attempt.status)) return "failed";
}
if (