Skip to content

Commit c8b8382

Browse files
committed
fix(web): hide stale liveness after session stop
1 parent 1810875 commit c8b8382

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5724,7 +5724,9 @@ export default function ChatView(props: ChatViewProps) {
57245724
// banner is the only visible stop affordance. Stop ends the provider session,
57255725
// which tears down its background work and emits the liveness update.
57265726
const activeBackgroundLiveness =
5727-
!isWorking && activeThread ? (activeThreadShell?.backgroundLiveness ?? null) : null;
5727+
!isWorking && activeThread && activeThreadShell?.session?.status !== "stopped"
5728+
? (activeThreadShell?.backgroundLiveness ?? null)
5729+
: null;
57285730
const [stoppingBackgroundWorkThreadId, setStoppingBackgroundWorkThreadId] =
57295731
useState<ThreadId | null>(null);
57305732
const isStoppingBackgroundWork = activeThread?.id === stoppingBackgroundWorkThreadId;

0 commit comments

Comments
 (0)