fix(mindspace): do not block home on job summary

This commit is contained in:
john
2026-07-20 11:44:57 +08:00
parent b6f2b40942
commit fc3d27aae0
+5 -1
View File
@@ -1030,7 +1030,11 @@ export function MindSpaceView({
setSpace(nextSpace);
setPages(recentPagesResult.items);
setRecentPagesTotal(recentPagesResult.page.total ?? recentPagesResult.items.length);
await refreshAgentJobsSummary();
// The agent-job count is supplementary. A slow job store must not keep the
// already-loaded MindSpace home screen in its global loading state.
void refreshAgentJobsSummary().catch(() => {
setAgentJobsTotal(0);
});
} catch (err) {
setError(err instanceof Error ? err.message : '空间加载失败');
} finally {