fix(antigravity): keep doctor reporting when one target root is unsafe

An Antigravity home whose workflows directory resolves outside the
trusted config root made resolveTrustedRoots throw out of the doctor
loop, hiding results for every other installed target. Report it as an
unsafe-trusted-root error for that target instead, with a regression.

Also align the README support row with the pinned CLI 1.3.5 validation
and leave the shipped 2.2.0 release notes unchanged.
This commit is contained in:
haelyra committed 2026-11-16 21:02:31 -05:00
1 parent adcf7be6a7
commit f98320f140
4 files changed
+31 -5

No files matched your search

+9 -2
View File
@@ -1127,8 +1127,15 @@ function collectTargetPathIssues(record, state, issues) {
}
function collectOperationHealthIssues(record, context, state, issues) {
const trustedRoots = getInstallTargetAdapter(record.adapter.id || record.adapter.target)
.resolveTrustedRoots(context);
let trustedRoots;
try {
trustedRoots = getInstallTargetAdapter(record.adapter.id || record.adapter.target)
.resolveTrustedRoots(context);
} catch (error) {
// Report an unsafe root for this target without aborting the other targets.
issues.push(buildIssue('error', 'unsafe-trusted-root', error.message));
return;
}
const operationHealth = summarizeManagedOperationHealth(
context.repoRoot,
record.targetRoot,