The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): drop the Update-everything backend skip; title refusals from the target
kshitijk4poor78ea55eb2786
diff --git a/apps/desktop/src/app/updates-overlay.manual.test.tsx b/apps/desktop/src/app/updates-overlay.manual.test.tsxindex 7a2b7e13afa..461245151fc 100644--- a/apps/desktop/src/app/updates-overlay.manual.test.tsx+++ b/apps/desktop/src/app/updates-overlay.manual.test.tsx@@ -58,7 +58,7 @@ it('titles a command-less backend refusal honestly and offers nothing to copy',stage: 'manual',message,percent: null,- error: 'dashboard_update_managed_externally',+ error: null,command: null,log: []})diff --git a/apps/desktop/src/app/updates-overlay.tsx b/apps/desktop/src/app/updates-overlay.tsxindex 3b0be07dc6f..d6b1e8713ae 100644--- a/apps/desktop/src/app/updates-overlay.tsx+++ b/apps/desktop/src/app/updates-overlay.tsx@@ -133,7 +133,6 @@ export function UpdatesOverlay() {isBackend={isBackend}message={apply.message}onDone={() => handleClose(false)}- refused={apply.error !== null}/>)}@@ -341,14 +340,12 @@ function ManualView({command,isBackend,message,- onDone,- refused = false+ onDone}: {command: string | nullisBackend: booleanmessage?: stringonDone: () => void- refused?: boolean}) {const { t } = useI18n()const u = t.updates@@ -375,7 +372,7 @@ function ManualView({<Terminal className="size-8 text-primary" /><DialogTitle className="text-center text-xl">- {refused ? u.manualUnavailableTitle : u.manualTitle}+ {isBackend ? u.manualUnavailableTitle : u.manualTitle}</DialogTitle><DialogDescription className="text-center text-sm">{message || u.manualPickedUp}</DialogDescription></div>diff --git a/apps/desktop/src/store/updates.test.ts b/apps/desktop/src/store/updates.test.tsindex 8d9ba942732..3a53a4c25bc 100644--- a/apps/desktop/src/store/updates.test.ts+++ b/apps/desktop/src/store/updates.test.ts@@ -580,7 +580,6 @@ describe('requestActiveUpdate', () => {expect(result.command).toBeUndefined()expect($backendUpdateApply.get().stage).toBe('manual')expect($backendUpdateApply.get().command).toBeNull()- expect($backendUpdateApply.get().error).toBe('dashboard_update_managed_externally')expect($backendUpdateApply.get().message).toContain('managed outside this dashboard')})@@ -777,24 +776,6 @@ describe('applyEverythingUpdate', () => {expect(applyClientMock).not.toHaveBeenCalled()})- it('remote mode: skips a backend that reported it cannot update itself, and says why', async () => {- setRemote(true)- $backendUpdateStatus.set(- status({ supported: false, message: 'Hermes updates are managed outside this dashboard.' })- )- checkClientMock.mockResolvedValue(status({ behind: 2, updateAvailable: true }))-- await applyEverythingUpdate()-- expect(updateHermesSpy).not.toHaveBeenCalled()- expect($backendUpdateApply.get().stage).toBe('idle')- expect(notifySpy).toHaveBeenCalledWith(- expect.objectContaining({ message: 'Hermes updates are managed outside this dashboard.' })- )- // The client leg still runs.- expect(applyClientMock).toHaveBeenCalledTimes(1)- })-it('fans out to other registered connections, excluding local and the active backend', async () => {setRemote(true)$mockConnectionsRegistry.set(registryOf(['local', 'vps', 'homelab']))diff --git a/apps/desktop/src/store/updates.ts b/apps/desktop/src/store/updates.tsindex f4b772f88ec..8356f9e2907 100644--- a/apps/desktop/src/store/updates.ts+++ b/apps/desktop/src/store/updates.ts@@ -854,19 +854,10 @@ async function runBackendUpdate(): Promise<DesktopUpdateApplyResult> {// An empty update_command is the backend saying "there is no command to// run here" (managed container, commit build) — render the message-only// view. Only a field absent from an older backend falls back.- const command = (started as { update_command?: string | null }).update_command ?? 'hermes update'- $backendUpdateApply.set({- ...IDLE,- applying: false,- stage: 'manual',- message,- command: command || null,- // The backend refused (as opposed to "run this yourself"): the overlay- // titles a command-less refusal honestly instead of "from your terminal".- error: (started as { error?: string }).error || 'refused'- })+ const command = ((started as { update_command?: string | null }).update_command ?? 'hermes update') || null+ $backendUpdateApply.set({ ...IDLE, applying: false, stage: 'manual', message, command })- return { ok: false, error: 'manual', manual: true, message, command: command || undefined }+ return { ok: false, error: 'manual', manual: true, message, command: command ?? undefined }}$backendUpdateApply.set({@@ -1072,17 +1063,7 @@ async function runEverythingUpdate(): Promise<void> {// Its own finish path re-checks and nudges, but the everything-flow// continues regardless of the outcome: one unreachable backend must// not strand the other machines or the client.- // A backend that already reported it cannot update itself (managed- // container, commit build) is skipped with its own reason instead of- // being asked anyway, which only lands on a dead-end manual dialog.- const backendStatus = $backendUpdateStatus.get()-- if (isRemoteMode() && backendStatus?.supported === false) {- notify({- title: translateNow('updates.availableTitleBackend'),- message: backendStatus.message || translateNow('updates.everythingSkipped')- })- } else if (isRemoteMode()) {+ if (isRemoteMode()) {$updateOverlayTarget.set('backend')await applyBackendUpdate().catch(() => null)