Skip to content

fix(sessions): keep subagent progress live without navigation - #5117

Open
reachjalil wants to merge 1 commit into
devfrom
fix/subagent-live-progress
Open

reachjalil wants to merge 1 commit into
devfrom
fix/subagent-live-progress

Conversation

@reachjalil

Copy link
Copy Markdown
Collaborator

Problem

A running sub-agent can stop showing fresh activity in its parent thread until the user opens the child chat. The child transcript has no query observer while only the parent is visible, so normal cache garbage collection can remove the baseline needed to apply subsequent progress deltas.

Change

  • Retain one disabled transcript query observer while a session is both active and tracked.
  • Share retention across tracking owners and release it on terminal status, tracking cleanup, or workspace disposal.
  • Preserve normal transcript garbage collection; add no polling or automatic history requests.
  • Add seven regression cases covering navigation-free text/reasoning updates beyond the GC threshold, parent progress derivation, ownership, and cleanup.

Existing labels and layout are unchanged. This is a synchronization-only fix.

Validation

  • Red/green: both navigation-free child progress cases failed before the fix because the baseline was collected; all seven retention cases pass after the fix.
  • Focused session sync, lifecycle, permissions, tool parts, cache GC, and sub-agent rendering tests: 223 passed, 0 failed across seven files.
  • App typecheck: passed.
  • git diff --check: passed.
  • Independent code review: no blockers.

Scope and limitations

No running-app or desktop E2E was performed. Tests exercise real sync-event handling, TanStack GC, and parent progress derivation, with child tracking already established. This addresses active transcript eviction; missed initial child discovery and reconnect-history recovery are not changed.

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 18, 2026 5:52pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-den Skipped Skipped Sep 18, 2026 5:52pm UTC
openwork-diagnostics Skipped Skipped Sep 18, 2026 5:52pm UTC
openwork-landing Skipped Skipped Sep 18, 2026 5:52pm UTC

@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 17, 2026 17:22 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 17, 2026 17:22 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 17, 2026 17:22 Inactive
@github-actions

Copy link
Copy Markdown
Contributor

Selected evidence: Incomplete · 12/12 tests · 18/18 assertions · 8 images

Commit 5cc39f154a9ffe5e52e83a0246f18421748fa6bc · selected evidence
Required verification is reported separately by the current-head Required verification check.

Open review report

Coverage gaps: Required verification: incomplete. Selected evidence does not satisfy all required specs. No authenticated current-head required plan is available.

@reachjalil
reachjalil force-pushed the fix/subagent-live-progress branch from 5cc39f1 to 55aa594 Compare September 18, 2026 17:50
@reachjalil
reachjalil requested a review from a team September 18, 2026 17:50
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 18, 2026 17:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 18, 2026 17:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 18, 2026 17:50 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant