fix(mindspace): do not block home on job summary
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user