fix(skills): stub autoUpdateManaged in the web preload API

The web client has no local skill filesystem, so the background batch
resolves to the same empty declined result the desktop returns when
auto-update is unavailable.
This commit is contained in:
Brennan Benson
2026-07-13 02:31:14 -07:00
parent be8888d5d7
commit 1df4feb005
+4
View File
@@ -2608,6 +2608,10 @@ function createSkillsApi(): NonNullable<Partial<PreloadApi>['skills']> {
replace: () => Promise.reject(new Error('Skill management is unavailable in the web client.')),
updateManaged: () =>
Promise.reject(new Error('Skill management is unavailable in the web client.')),
// Why: auto-update is a silent background batch, so the web client
// declines with the same empty result the desktop uses when unavailable.
autoUpdateManaged: () =>
Promise.resolve({ updatedSkillNames: [], failedSkillNames: [], inventory: null }),
recordOrcaInstall: () =>
Promise.reject(new Error('Skill management is unavailable in the web client.'))
}