summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-24 20:11:34 -0600
committerAdam <[email protected]>2025-12-24 20:11:37 -0600
commite71bc8c0b03c422208e89d73d5d4d6a0fe013941 (patch)
tree941bdb7311b14b76532e6c0a40525a4b97db29ea
parenta5301e2ab7b592f90cb91212af7c2af3329601a0 (diff)
downloadopencode-e71bc8c0b03c422208e89d73d5d4d6a0fe013941.tar.gz
opencode-e71bc8c0b03c422208e89d73d5d4d6a0fe013941.zip
fix(desktop): show server connection failure
-rw-r--r--packages/app/src/context/global-sync.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/app/src/context/global-sync.tsx b/packages/app/src/context/global-sync.tsx
index b7ad1189c..cbfe37ee5 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",