Skip to content

Commit f0793d3

Browse files
vaststudiosclaude
andcommitted
fix(web): "Show more" reports the status of threads folded under a hidden launcher
Folded threads have no row of their own and pass their status to their launcher. When that launcher sits past the "Show more" window, nothing showed the status, so a folded subagent waiting for approval went unnoticed in an expanded project. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 42bde14 commit f0793d3

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/web/src/components/LegacySidebar.tsx‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,13 +1397,15 @@ function useFoldedProjectThreads(
13971397

13981398
function useProjectThreadPanel(input: {
13991399
visibleProjectThreads: readonly SidebarThreadSummary[];
1400+
launchFoldByThreadKey: ReturnType<typeof useFoldedProjectThreads>["launchFoldByThreadKey"];
14001401
lastVisitedAtByThreadKey: ReadonlyMap<string, string | undefined>;
14011402
activeRouteThreadKey: string | null;
14021403
projectExpanded: boolean;
14031404
threadListSteps: number;
14041405
}) {
14051406
const {
14061407
visibleProjectThreads,
1408+
launchFoldByThreadKey,
14071409
lastVisitedAtByThreadKey,
14081410
activeRouteThreadKey,
14091411
projectExpanded,
@@ -1442,8 +1444,13 @@ function useProjectThreadPanel(input: {
14421444
);
14431445
return {
14441446
threadListWindow,
1447+
// Folded threads have no row, so a launcher past the window passes their status to "Show more".
14451448
hiddenThreadStatus: resolveProjectStatusIndicator(
1446-
hiddenThreads.map((thread) => resolveProjectThreadStatus(thread, lastVisitedAtByThreadKey)),
1449+
hiddenThreads.flatMap((thread) => [
1450+
resolveProjectThreadStatus(thread, lastVisitedAtByThreadKey),
1451+
launchFoldByThreadKey.get(scopedThreadKey(scopeThreadRef(thread.environmentId, thread.id)))
1452+
?.hiddenStatus ?? null,
1453+
]),
14471454
),
14481455
renderedThreads,
14491456
showEmptyThreadState: projectExpanded && visibleProjectThreads.length === 0,
@@ -1602,6 +1609,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
16021609
shouldShowThreadPanel,
16031610
} = useProjectThreadPanel({
16041611
visibleProjectThreads,
1612+
launchFoldByThreadKey,
16051613
lastVisitedAtByThreadKey,
16061614
activeRouteThreadKey,
16071615
projectExpanded,

0 commit comments

Comments
 (0)