Skip to content

The open source coding agent.

TypeScript

fix(desktop): show server connection failure

Adame71bc8c0b03c
diff --git a/packages/app/src/context/global-sync.tsx b/packages/app/src/context/global-sync.tsx
index b7ad1189c0a..cbfe37ee507 100644
--- a/packages/app/src/context/global-sync.tsx
+++ b/packages/app/src/context/global-sync.tsx
@@ -307,7 +307,10 @@ function createGlobalSync() {
})
async function bootstrap() {
- const health = await globalSDK.client.global.health().then((x) => x.data)
+ const health = await globalSDK.client.global
+ .health()
+ .then((x) => x.data)
+ .catch(() => undefined)
if (!health?.healthy) {
setGlobalStore(
"error",