Skip to content

[Bug]: Lineage keeps showing a completed delegated child as Running from the desktop cache #44183

Done

Description

@AryanRG

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

These steps describe the observed incident. The original server-side settlement failure was intermittent (#37090).

  1. Open a Claude provider thread that has sent t3_thread_send follow-ups to a delegated child thread (codex provider). The server still projects some of those follow-ups as waiting after the child has finished. Open the parent's Lineage panel so the desktop saves that projection.
  2. After the affected records' runs have fallen outside the recent run cohorts, correct the stuck records to completed in statev2.sqlite. Verify that the server lists the child as completed with no live nodes.
  3. Fully quit and relaunch the desktop app, then open the parent's Lineage panel again.

Expected behavior

When the desktop reconnects, Lineage reconciles cached live subagent records with the server. The server could send terminal states for IDs the client still considers live, or the client could drop cached live records that are absent from an authoritative list of live subagents.

Actual behavior

Lineage still shows the child as running or waiting after a full app restart. The desktop saved the stale waiting subagent records in IndexedDB, database t3code:connection-runtime, object store thread. The server's WorkflowStore subagent query includes active statuses (pending, starting, running, waiting) and records from retained run cohorts. Once the old records become terminal, they fall out of that window. The client keeps its saved waiting copies and still renders them as live.

#33409 covers finished children missing from Previous agents because of the history window. #18188 covers a similar cache problem for command turn items. This report concerns subagent records that Lineage continues to render as live after the server has settled them.

Impact

Minor bug or occasional failure

Version or commit

T3 Code Nightly, server 0.1.14-nightly.20261127.5319.

Environment

macOS desktop.

Workaround

After the stuck server records were corrected to completed, deleting only the cache entries for <parent-thread-id> from t3code:connection-runtime → thread in DevTools and reloading cleared the stale Lineage status immediately. If using the DevTools Console and it blocks pasting, type allow pasting first.

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