Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Finished threads stay Working after delayed task progress #7128

Closedmatsvarn(GitHub profile, opens in a new tab) opened this issue 1 comment

Steps to reproduce

  1. Start a provider task in a thread.
  2. Record task.updated with status idle.
  3. Deliver a delayed task.progress for the same task without a status.
  4. Read ThreadBackgroundLiveness for 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.

Sign in to join this conversation.