From ec032acb2af5c604398db3790ce7769772743cb8 Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Thu, 5 Nov 2026 06:07:42 +0800 Subject: [PATCH 1/4] fix(research): keep saved results ahead of empty history setup Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- .../personal-workspace/goal-research-history.tsx | 13 +++++++++---- .../personal-workspace/goal-research-progress.tsx | 2 +- .../personal-workspace-browser/research-history.md | 7 +++++++ .../personal-workspace-browser/research-history.mjs | 9 +++++++++ 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/apps/presentation/dashboard/src/features/personal-workspace/goal-research-history.tsx b/apps/presentation/dashboard/src/features/personal-workspace/goal-research-history.tsx index a0ad487b59..0ef72ab82c 100644 --- a/apps/presentation/dashboard/src/features/personal-workspace/goal-research-history.tsx +++ b/apps/presentation/dashboard/src/features/personal-workspace/goal-research-history.tsx @@ -445,6 +445,9 @@ export function GoalResearchHistory({goalId, active, zh, refreshRevision = 0, re control?.querySelector("button:not(:disabled)")?.focus({preventScroll: true}); }; const readFailure = error || history.error; + const emptyHistory = !busy && !readFailure && read.total === 0; + const emptyWithAnalysis = emptyHistory && Boolean(analysis.pack?.result || analysis.pack?.native_outcomes); + const emptyHistoryMessage = zh ? "这个 Goal 尚无研究历程" : "No research history for this Goal yet"; return
{progressiveOverview ? <>