You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio: say antivirus when a runtime repair fails or the damage comes back, not only when repair cannot run #11432
#10494 gives a quarantined llama.cpp runtime a launch-time verdict and an automatic repair, and a message that names antivirus as the likely cause. That message is on the branch where the repair cannot run, which on a release build is close to unreachable: can_auto_repair is release_auto_repair() && !managed_profile_unreachable(managed), and a llama_runtime_* reason blocks neither, so the desktop repairs silently and the user reads nothing.
The two states where a user most needs to hear "add an antivirus exclusion" are the two states that say nothing about it today.
1. The repair ran and failed.runRepair reports the failure as setBackendError(msg, "repair-error") with whatever start_managed_repair said. The preflight reason that triggered the repair is not carried into it, so a reinstall that antivirus ate on the way down reads as a generic repair failure. This is the likely shape when the exclusion is genuinely needed: the tree is being re-quarantined as fast as it is written, or the download itself is blocked.
2. The same runtime is found broken again. One quarantine is bad luck. A second within a few launches of a successful repair is the antivirus doing it again, and that is the point where a retry is certain to be wasted and an exclusion is the only thing that helps. Nothing tracks that today, so the user gets the same silent repair loop with no explanation.
Record the last repair that a runtime reason triggered (timestamp plus the reason) and, when preflight rejects the runtime again inside some window of it, say so plainly instead of repairing a third time. A repair that changes nothing is worse than a message.
Worth deciding at the same time: whether a second failure should stop auto repairing and hand over to the message, or keep repairing and warn.
Not in scope
A code integrity block, where the file is present and healthy and Windows refuses it at load. That has its own message from #10404 and signing is the fix.
Activity