@@ -96,6 +96,7 @@ import {
9696 ThreadSearchPullRequestNumber ,
9797} from "../ThreadStatusIndicators" ;
9898import { resolveSnoozePresets , type SnoozePreset } from "../Sidebar.snooze" ;
99+ import { useThreadShell } from "../../state/entities" ;
99100import { ProjectFavicon , type ProjectFaviconProject } from "../ProjectFavicon" ;
100101import { ThreadSearchMatchExcerpt } from "../ThreadSearchMatch" ;
101102import { makeWorkspaceFileDropHandlers } from "../chat/workspaceFileDrop" ;
@@ -463,8 +464,13 @@ export function SortableThreadRow(
463464 transition : contextDrag && isDragging ? "transform 150ms ease-out" : transition ,
464465 isDragging : isDragging && ! contextDrag ,
465466 } ;
467+ // The sidebar arranges rows from quiet shells, which hold still while a
468+ // thread streams; reading the live shell here re-renders only this row.
469+ const thread =
470+ useThreadShell ( scopeThreadRef ( rowProps . thread . environmentId , rowProps . thread . id ) ) ??
471+ rowProps . thread ;
466472 // Keyed by variant so a card/slim switch remounts the row.
467- return < SidebarThreadRow key = { rowProps . variant } { ...rowProps } sortable = { bag } /> ;
473+ return < SidebarThreadRow key = { rowProps . variant } { ...rowProps } thread = { thread } sortable = { bag } /> ;
468474}
469475export type SidebarSweepAction = "settle" | "unsettle" | "unsnooze" ;
470476const dropVerbBadge : Record < SidebarDropVerb , ReactNode > = {
@@ -1508,7 +1514,8 @@ export const SidebarSearchResultRow = memo(function SidebarSearchResultRow(props
15081514 onSelect : ( ) => void ;
15091515 onFileDropThreads : ( threadRef : ScopedThreadRef , files : File [ ] ) => void ;
15101516} ) {
1511- const { thread } = props ;
1517+ const thread =
1518+ useThreadShell ( scopeThreadRef ( props . thread . environmentId , props . thread . id ) ) ?? props . thread ;
15121519 const accessibility = resolveSidebarRowAccessibility ( {
15131520 title : thread . title ,
15141521 statusLabel : null ,
0 commit comments