Harden bounded Panama recovery actions

This commit is contained in:
Gabriel Brown
2026-08-18 10:58:48 -04:00
parent 2cc109f5e1
commit 8bfae70284
4 changed files with 403 additions and 71 deletions
@@ -117,6 +117,8 @@ Singleton {
}
function refresh(): bool {
if (root.postRepairScanPending)
return false;
if (scanProcess.running || repairProcess.running) {
root.queuedRefresh = true;
return false;
@@ -239,6 +241,8 @@ Singleton {
const check = root.checks.find(candidate => candidate.id === id);
if (!check || !check.action || check.action.kind !== "repair")
return false;
if (external && check.action.confirm)
return false;
root.repairingId = id;
root.lastError = "";