From f8e5012f6446fcb3cd11374f6f067bbf3d636c2c Mon Sep 17 00:00:00 2001 From: Himanshu Dongre Date: Mon, 13 Apr 2026 20:28:12 +0530 Subject: [PATCH] Add needs-attention signal to LineagePage summary panel --- frontend/src/pages/LineagePage.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/frontend/src/pages/LineagePage.tsx b/frontend/src/pages/LineagePage.tsx index e00912c..cb3c37f 100644 --- a/frontend/src/pages/LineagePage.tsx +++ b/frontend/src/pages/LineagePage.tsx @@ -781,6 +781,30 @@ export function LineagePage() { )} + + {/* Needs attention signal */} + {(() => { + const reasons: string[] = []; + if (spaceState.divergence && (spaceState.divergence.pairs?.length ?? 0) > 0) + reasons.push('Branch divergence needs resolution'); + if (activeClaims.length > 0) + reasons.push(`${activeClaims.length} agent${activeClaims.length !== 1 ? 's' : ''} working — check before starting new work`); + if ((spaceState.commit?.open_questions?.length ?? 0) > 0) + reasons.push(`${spaceState.commit.open_questions.length} open question${spaceState.commit.open_questions.length !== 1 ? 's' : ''} from latest checkpoint`); + if (reasons.length === 0) return null; + return ( +
+
+ ⚡ Needs attention +
+ +
+ ); + })()} )}