Registry Mirror
Skip to content

Conversation

@screen-gd

@screen-gd screen-gd commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When a subagent runs on a linked laptop over T3 Connect and that child thread starts another run, the parent still shows it under Previous agents as Done, and the parent's sidebar row looks idle. Now the parent reads the linked child's live thread status, so Lineage, the sidebar, the timeline timer and the mobile thread list show it as running, waiting, or needing approval or input.

 Lineage row for a remote task
-  status = task.status                      # frozen when the task finished
+  status = resolveRemoteSubagentLiveStatus(task, childShell) ?? task.status

 Parent thread status (sidebar, mobile list, timer)
-  status = own runtime
+  status = own runtime ?? live activity of children delegated to other environments

Rules match local threads: approval beats input, input beats work, and a child parked on a thread wait reads as waiting. When the remote work ends, or its environment disconnects, the parent falls back to its own status.

This covers remote children whose live shells reach the client. Issue #31707 tracks the related gap in recording later runs on the task itself.

Evidence

  • Before: the remote child sits under Previous agents as Done.
    After: the same fixture with the child's live run shows it in Lineage as Running.
Before After
Remote child shown as Done under Previous agents Remote child shown as Running in Lineage

The screenshots come from a browser test fixture with simulated remote activity, not two physical machines.

Tests:

models.test.ts            resolveRemoteSubagentLiveStatus
  approval > input > work; thread wait -> waiting; starting kept
  later run on the child failed -> failed; same run -> task status kept
  disconnected or missing child -> task status kept
threadShell.test.ts       completed parent + linked child working -> parent working,
                          child waiting -> parent waiting, child done -> parent idle
Sidebar.logic.test.ts     remote preparing/working/waiting, approval still wins
ThreadRelationshipsControl.browser.test.tsx
                          live status moves the row into Lineage ("1 running")

vp run check:changed upstream/main passes: format, lint, knip, typecheck, 382 tests, React Compiler.

Merge Danger

Door: two-way

Client-only. No contract, server or stored-data changes, so a revert is clean.

Blast Radius: status indicators

Thread status in the sidebar, mobile thread list, timeline working timer and Lineage panel. A parent with a busy remote child now reads as working instead of idle. The new per-parent remote activity atom scans connected environments' thread shells and returns a stable map when nothing changed, so it only re-renders parents when a remote child's status changes.

Created with GPT-6.2 Sol in Codex through T3 Code. Review fixes by Claude Opus 5.5 with SWE-2 (Fusion) in Devin CLI through T3 Code.

@github-actions

Copy link
Copy Markdown
Contributor

Closing: screen-gd already has 3 or more open PRs here, which is the limit for contributors who are not vouched.

Once one of them is merged or closed, open this again. See the open PR limit.

@github-actions github-actions Bot closed this Nov 30, 2026
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 30, 2026
@screen-gd

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 (Fusion) responding on behalf of screen-gd

Review fixes pushed in 38d4def:

  • apps/web/src/components/chat/ThreadRelationshipIcon.logic.ts: Lineage rows for a remote child that needs approval or input showed a grey dot, the same as a stopped agent. They now use the sidebar's approval (warning) and input (indigo) colors.
  • packages/client-runtime/src/state/models.ts: the remote child status rule moved out of the web atom into resolveRemoteSubagentLiveStatus, with a new models.test.ts covering priority, waiting, starting, later-run results and disconnects. Before this, the browser test mocked the rule and nothing tested it.
  • resolveRemoteWorkStartedAt replaces the same timer calculation copied into ChatView.tsx and the mobile composer state. No behavior change.

Checks on this head: vp run check:changed upstream/main passes (format, lint, knip, typecheck, 382 tests, React Compiler). Still not verified across two physical machines.

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

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant