jlcodes99/cockpit-tools · info
[AntigravityInstalledVersionBadge] failed to complete instal
Error message
[AntigravityInstalledVersionBadge] failed to complete installed version scan:
What it means
After the quick scan, `loadVersion` runs a full installed-version scan via the same backend service. If the full scan rejects (deeper filesystem traversal, registry/plist parsing, or IPC error), the warning is logged and `loaded` is set to true so the badge stops retrying, potentially with stale/missing info.
Source
Thrown at src/components/AntigravityInstalledVersionBadge.tsx:45
setLoaded(!!quickInfo);
}
} catch (error) {
console.warn('[AntigravityInstalledVersionBadge] failed to load installed version:', error);
if (!cancelled) {
setInfo(null);
}
}
try {
const fullInfo = await getAntigravityInstalledVersionInfo(runtimeTarget, 'full');
if (!cancelled) {
if (fullInfo) {
setInfo(fullInfo);
}
setLoaded(true);
}
} catch (error) {
console.warn('[AntigravityInstalledVersionBadge] failed to complete installed version scan:', error);
if (!cancelled) {
setLoaded(true);
}
}
};
timer = window.setTimeout(() => {
void loadVersion();
}, INSTALLED_VERSION_DEFER_MS);
return () => {
cancelled = true;
if (timer) {
window.clearTimeout(timer);
}
};
}, [runtimeTarget]);
View on GitHub (pinned to 1ed8b77992)
Solutions
- Read the logged error to identify which part of the full scan failed and fix the corresponding path/permission.
- Ensure the app handles partial results: keep quick-scan info instead of discarding it when the full scan fails.
- Update the backend scan to skip unreadable locations rather than rejecting the whole command.
- Reinstall/repair the Antigravity installation to restore complete version metadata.
Defensive patterns
Strategy: fallback
Validate before calling
if (!info) {
console.info('quick scan produced nothing; full scan may fail on broken installs');
} Type guard
function isFullScanResult(v: unknown): v is { version: string; locations: string[] } {
return typeof v === 'object' && v !== null && 'version' in v;
} Try / catch
try {
const fullInfo = await getAntigravityInstalledVersionInfo(runtimeTarget, 'full');
if (fullInfo) setInfo(fullInfo);
} catch (error) {
console.warn('full scan failed, keeping quick-scan info:', error);
} finally {
setLoaded(true);
} Prevention
- Preserve quick-scan results instead of discarding them when the full scan fails
- Make the backend skip unreadable install locations rather than rejecting
- Alert on repeated full-scan failures to detect corrupted installs
When it happens
Trigger: The 'full' scan call in AntigravityInstalledVersionBadge rejects: multiple install locations probed and one throws, corrupted install metadata, or the full-scan Tauri command panics/times out.
Common situations: Users with non-standard install locations; beta/stable dual installs where one is broken; slow disks causing command timeouts; backend changes to scan logic after an upgrade.
Related errors
- [AntigravityInstalledVersionBadge] failed to load installed
- [account-sync] Failed to emit ${eventName}:
- [account-sync] Failed to emit ${ACTIVE_PLATFORM_FOCUS_EVENT}
- [WorkbuddyAutoCheckin] 监听后端签到配置事件失败:
- [WorkbuddyAutoCheckin] 读取后端签到日志失败:
AI-assisted analysis of jlcodes99/cockpit-tools@1ed8b77992 (2026-09-05).
Data as JSON: /api/errors/65eb4a0e68731af7.
Report an issue: GitHub.