Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): stop showing dead subagents as working after a restart #14630

Closedtheomilll(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/14630/headopened View on GitHub

Showing 1 changed file with 6 additions and 1 deletion.

x
0 of 1 viewed, 1 left
6 additions and 1 deletionapps/web/src/components/ChatView.tsxModified
View file
@@ -2903,7 +2903,12 @@
// Agents surface, live strip, and workflow cards. v2Projection is null
// until orchestration-v2 lands (source precedence lives in the derive).
// sessionLive derives interruption for agents orphaned by session death.
- const agentSessionLive = phase !== "disconnected";
+ // Past the turn, only the server's background liveness proves an agent is
+ // still alive: a server restart keeps the idle session but kills its agents.
+ const agentSessionLive =
+ phase === "running" ||
+ phase === "connecting" ||
+ (activeThreadShell?.backgroundLiveness ?? null) !== null;
const agentPanelModel = useMemo(
() =>
deriveAgentPanelModel({