Skip to content

[Bug]: Thread briefly shows completed (and sends a "Thread completed" notification) between orchestrator runs #24477

Closed

Description

@omar7550

Before submitting

Area

apps/web (also affects the desktop shell and mobile thread lists through shared client-runtime state)

Steps to reproduce

  1. Start an orchestrating thread that delegates work to one or more subagents or background tasks.
  2. Let one piece of work finish while the orchestrator still has more to do. For example, one subagent returns and the orchestrator immediately starts a continuation run to handle the result.
  3. Watch the sidebar, or keep another app focused so desktop notifications are shown.

Expected behavior

The thread stays under Working until all of its work is done. You get one "Thread completed" notification, when the thread actually settles.

Actual behavior

When one run ends and the continuation run has not started yet, there is a short gap. During that gap:

  1. Sidebar flicker: the thread moves from Working to the Inbox for about a second, then jumps back to Working. The Inbox also records a false "returned" timestamp, which affects Inbox ordering.
  2. False completion notification: ThreadNotificationCoordinator sees latestRun.status === "completed" with a newer completedAt and immediately sends "Thread completed". Depending on settings, that can be a sound, an in-app toast or a desktop notification. The thread is not done: the next run starts a moment later. Each intermediate run that finishes can trigger another false notification, so you learn to ignore the notification.

Relevant code on main @ d53873b6a4:

Both symptoms come from one cause: the client treats the end of one run as the end of the thread's work, but an orchestrator continuation can start a moment later.

Impact

Minor bug or occasional failure. It happens frequently in orchestrator/subagent workflows. The flicker is cosmetic, but the false "Thread completed" notification makes completion notifications unreliable.

Version or commit

0.1.3-nightly.20261024.3617 (macOS desktop); code references are to main @ d53873b6a4.

Environment

macOS, T3 Code Nightly desktop app. Seen with orchestrator threads that delegate to subagents.

Workaround

None. You have to open the thread to check whether it is actually finished.

Related PRs

Activity

  1. omar7550 commented on Oct 24, 2026

    @omar7550
    ContributorAuthor

    Update: #22458 now covers both symptoms in this issue: Working-shelf placement, and the false "Thread completed" notification on web/desktop. It has been rebased onto current main, and the PR description includes before/after screenshots and recordings. Mobile push notifications come from the server relay and have the same behavior; they are noted in the PR as a possible server-side follow-up.

  2. t3dotgg commented on Oct 25, 2026

    @t3dotgg
    Member

    Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Fixed by #24760 and #24769. Working placement, the web/desktop completion alert, and the mobile push now hold through the short gap between orchestrator runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions