From 3177d1fcc765c0324cb97c27f8f5cd4805583d8d Mon Sep 17 00:00:00 2001 From: MethodWhite Date: Sat, 13 Jun 2026 07:17:45 -0400 Subject: [PATCH] fix(tui): mark sync complete even when background refresh fails The non-blocking Promise.all() in the sync phase had no .catch(), so if any API call failed the sync status stayed 'partial' forever and the rejection went unhandled. --- packages/tui/src/context/sync.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tui/src/context/sync.tsx b/packages/tui/src/context/sync.tsx index 4882c13920f0..ac4090a914f4 100644 --- a/packages/tui/src/context/sync.tsx +++ b/packages/tui/src/context/sync.tsx @@ -503,6 +503,8 @@ export const { project.workspace.sync(), ]).then(() => { setStore("status", "complete") + }).catch(() => { + setStore("status", "complete") }) }) .catch(async (e) => {