Skip to content

fix(agents): keep finished subagents idle after messages - #228

Merged
badcuban merged 4 commits into
mainfrom
threadlines/fix-stale-subagent-running-state
Sep 5, 2026
Merged

fix(agents): keep finished subagents idle after messages#228
badcuban merged 4 commits into
mainfrom
threadlines/fix-stale-subagent-running-state

Conversation

@badcuban

@badcuban badcuban commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

What changed

Keep finished subagents idle when the parent sends them a message. The footer and Agents tab now use actual child turn start and completion events to track work, while keeping those events separate from the parent turn.

Why

A message to a finished subagent emits an interacted notification. The adapter treated every such notification as new work, leaving the footer and Agents tab stuck on Running after the parent finished. Saved interaction events are now ignored during status replay too.

Older histories did not retain child turn events, so an interaction alone cannot establish whether an old follow-up actually started work. This change does not migrate saved rosters.

Validation

  • Replayed the reported session read-only and confirmed the affected agent resolves to completed.
  • vp fmt, vp lint, and vp run typecheck passed. Lint reports existing warnings.
  • 117 focused server tests and 159 session-logic tests passed.
  • Full web browser suite passed: 540 tests across 48 files.

Checklist

  • This PR is small and focused
  • I explained what changed and why

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Sep 5, 2026 8:11am UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Sep 5, 2026
@badcuban
badcuban enabled auto-merge (squash) September 5, 2026 07:57
@badcuban
badcuban merged commit 5e5ae6f into main Sep 5, 2026
16 checks passed
@badcuban
badcuban deleted the threadlines/fix-stale-subagent-running-state branch September 5, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant