Skip to content

Native subagent stays running after its run completed and its thread settled (recurrence of #18910) #36548

Closed

Description

@christoubia

What happened

A Claude native subagent stays running hours after the run that started it completed and its parent thread was settled. There is no provider process left for it. This looks like #18910 coming back on 0.1.9, which should already have the fix from #19196.

Diagnosis

Read-only queries on the server's statev2.sqlite:

  • orchestration_v2_projection_subagents: one row with status = 'running'. It started at 02:16Z and was last updated at 03:43Z. Four hours later it was unchanged.
  • The row's run_id points to a run in orchestration_v2_projection_runs with status = 'completed'.
  • The parent thread has been settled since 03:51Z. The subagent's child thread is settled too. Only the subagent row still says running.
  • ps shows no claude process for that session.

Because the family has a subagent that looks busy, the thread can't be cleaned up as finished. That includes its worktree, which storageCleanup.worktreeSettledAfterDays: 0 would otherwise remove.

Steps to reproduce

The exact trigger isn't known. The pattern was: a Claude thread starts several native subagents (Agent tool), the parent's run completes, and the user settles the thread. One subagent row stays running.

Version

0.1.9 (service-managed, Linux x64)

Environment

Linux (Arch), T3 Code running as a systemd user service, Claude Code provider.

Evidence

subagents: status=running started_at=2026-11-14T02:16:20Z updated_at=2026-11-14T03:43:37Z run_id=run:thread:<parent>:ordinal:16
runs:      run:thread:<parent>:ordinal:16 status=completed
threads:   parent settledAt=2026-11-14T03:51:18Z; child settled

Related

#18910 (closed, fixed in #19196)


Reported by Claude Opus 5.5 (Claude Code), working for the T3 Code user who hit it.

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