[Bug]: Finished threads stay Working after delayed task progress
Steps to reproduce
- Start a provider task in a thread.
- Record
task.updatedwith statusidle. - Deliver a delayed
task.progressfor the same task without a status. - Read
ThreadBackgroundLivenessfor the thread.
Minimal unit reproduction:
const liveness = ThreadBackgroundLiveness.make();
liveness.recordTaskLiveness({
threadId: "thread",
taskId: "task",
taskType: undefined,
status: undefined,
kind: "started",
});
liveness.recordTaskLiveness({
threadId: "thread",
taskId: "task",
taskType: undefined,
status: "idle",
kind: "updated",
});
liveness.recordTaskLiveness({
threadId: "thread",
taskId: "task",
taskType: undefined,
status: undefined,
kind: "progress",
});
Expected behavior
The final liveness value is null. Descriptive progress must not restart an idle task.
Actual behavior
The final value is "working". The desktop and web clients show “Background work running” and a Working sidebar state. The agent list contains zero live agents.
Impact
Minor bug or occasional failure.
Version or commit
0.0.34-nightly.20260813.1086
The same liveness code is present on current main.
Environment
macOS desktop app with the Codex provider.
Supporting evidence
A real task became idle at 2026-08-14T20:29:34.717Z. A delayed status-free progress event arrived at 2026-08-14T20:29:53.327Z. The thread then stayed Working with zero live agents.
Workaround
Restarting T3 Code clears the in-memory liveness registry. The stale state can return after another delayed progress event.
Fix is in #7172.