The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): show underlying update check errors
etherneta4f9effcc904
diff --git a/apps/desktop/src/components/update-status.test.tsx b/apps/desktop/src/components/update-status.test.tsxindex cb7d99d95b4..4e8ebd7c999 100644--- a/apps/desktop/src/components/update-status.test.tsx+++ b/apps/desktop/src/components/update-status.test.tsx@@ -58,12 +58,18 @@ describe('deriveUpdateStatus', () => {expect(view.supported).toBe(false)})- it('check error surfaces the tone and the transport message separately', () => {+ it('check error includes both the transport message and the underlying error', () => {const view = derive({ supported: true, error: 'check-failed', message: 'ECONNREFUSED' })expect(view.tone).toBe('error')expect(view.line).toBe(en.updates.cantReach)- expect(view.error).toBe('ECONNREFUSED')+ expect(view.error).toBe('ECONNREFUSED\ncheck-failed')+ })++ it.each([undefined, ''])('keeps the error when the transport message is %s', message => {+ const view = derive({ supported: true, error: 'check-failed', message })++ expect(view.error).toBe('check-failed')})it('applying beats available so the card cannot offer a second install', () => {diff --git a/apps/desktop/src/components/update-status.tsx b/apps/desktop/src/components/update-status.tsxindex e5afb23dc4a..368f45480d4 100644--- a/apps/desktop/src/components/update-status.tsx+++ b/apps/desktop/src/components/update-status.tsx@@ -68,7 +68,7 @@ export function deriveUpdateStatus({if (status?.error) {return {applying,- error: status.message,+ error: [status.message, status.error].filter(l => !!l).join('\n'),line: u.cantReach,supported,tone: 'error',