Repository navigation
Show running subagents in the phone worktree list - #26423
brennanb2025 merged 8 commits into
Conversation
|
The phone worktree list hid running subagents because its list data omitted the child records that desktop already displayed. It now shows each running child beneath its parent with state, name, activity and relative age; a child tap opens the existing parent chat or terminal. Ready: review, mock-host native QA and final CI passed at The branch merged main once and was rebuilt around the execution host's current published child summary and saved per-subagent records. Phone and desktop reuse the same running-child selector. Unchanged workspace rows still skip rendering, while child-only changes update the affected row and list version. Clock calibration was removed; age uses the parent's existing formatter. Feature test additions are 235 lines against 251 production lines. Fresh full host/mobile reviews, an independent architecture challenge, dedicated performance review and readiness checklist found no open P0/P1 product findings. CI then caught an obsolete preview property in a typed test fixture. The one-line correction is independently reviewed, all four affected cases pass, and the gated native test ratchet passes with 1,000 included files and 122 grandfathered files. Every production file matches the native-tested head Prerequisite #28686 CI passed: six checks passed, fifteen conditionally skipped. This PR's single blocking final-head watch exited 0: 18 checks passed, 14 conditionally skipped, no failed or pending checks. Root CI, mobile CI, headless persistence. Merge the prerequisite first, then retarget this PR to main before deleting that branch. No merge or auto-merge has been performed here. Deferred P2: shares main's nested-action accessibility structure; separate follow-up. The workspace Pressable contains the child Pressables (workspace, child). Main already nests its lineage action. Under React Native's accessibility contract, VoiceOver may not independently focus the nested child action. This is source/runtime-contract evidence, not rendered VoiceOver QA. Upstream explicitly deferred the structural change. Follow-up: make all in-card actions accessible siblings of the main action while preserving layout, whole-card pointer tap and 400ms long press. Verified device evidence uses labelled mock-host data and the real CLI roster shape. Live provider delivery, live native-chat notification flow, rendered SSH/server/Linux/Windows, VoiceOver and runtime performance at scale remain unverified. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
c44dd72
into
brennanb2025/phone-native-parent-target
The phone's worktree list now shows the running subagents the desktop sidebar shows, under their parent agent with their own ages, read from the host's existing child records. Tapping one opens its parent's existing chat or terminal. The feature was reviewed in #26423 and merged into this branch. Links from the phone to native chats whose saved tab ID differs from the session-derived one (restored, reserved and headless chats) now resolve to the chat's real tab instead of missing it.
ELI5
The phone worktree list hid running subagents even when the desktop sidebar showed them: its list data omitted those child records. Each running child now appears below its parent with its state, name, activity and relative age. Tapping a child opens its parent chat or terminal.
What Changed
This rebuild follows the host-owned child records and saved per-subagent rows now on main. The catalog reads the existing published child summary and CLI roster; phone and desktop use the same running-child selector. There is no second tracker or transcript scan.
Child changes update the worktree-list version and the affected phone row. Unchanged workspace rows still skip rendering. When the phone fetches the list directly from a host, terminal output alone still avoids a full resend. Parent counts, collapse behavior and ordinary workspace opening keep their existing behavior. Optional child fields preserve old-host/old-phone pairing; losing contact makes retained activity unverifiable rather than declaring it stopped.
Since the October 8 review, the branch merged main once and was rebuilt and fully reviewed again. The earlier host-clock sampling/calibration was removed: child age uses the same relative-time formatter as the parent, and absent start times show no age. Added feature test lines fell from about 778 to 235, against 251 added production lines.
Why
Reusing the existing owner, publication and row selector keeps child lifecycle and identity consistent across surfaces. The common pattern is host-owned status with derived presentation. The phone adds the requested desktop sidebar parity.
Depends on #28686, which resolves canonical native-chat pane addresses to already-listed saved tab IDs. A missing parent keeps the current selection; it does not create or reveal a tab. Merge that prerequisite first, then retarget this PR to main before deleting its branch.
Linked Issue
Requested phone/desktop subagent visibility parity. Native parent targeting prerequisite: #28686.
Visual Proof
Native iOS Simulator, mock-host data, using the repository mock host with the same parent and two working children. A private mock-only v2 refusal exercised the existing old-host fallback; no authentication changes or harness files are included.
Before, main 80f038e (parent only):
After, fcc67c2 (two running children):
Child tap opens the parent terminal:
Testing
f3518374837f121fa411d3ed4031c25d09ca9dbc: 18 checks passed, 14 conditionally skipped, no failed or pending checks. The single blocking watch exited 0. Root tests, static analysis, compatibility and packaging, mobile verification, headless persistence.Not verified: live provider delivery, live native-chat notification flow, rendered SSH/server/Linux/Windows flows, VoiceOver interaction or CPU/heap/frame-time performance at scale. Relative ages have the same cross-machine clock limits as parent rows.
Review
Fresh full adversarial host/mobile reviews, an independent architecture challenger, dedicated performance review and readiness checklist at fcc67c2. No open P0/P1 findings; the known P2 accessibility limitation below is explicitly deferred. A subsequent one-line test fixture correction was independently reviewed at
f3518374837f. Every production file is byte-identical to the native-testedfcc67c21af48, so the displayed phone evidence applies to this head.Known limitation: shares main's nested-action accessibility structure; separate follow-up. Individual child actions may not be independently reachable through VoiceOver. This is source/runtime-contract evidence, not rendered VoiceOver QA; upstream explicitly deferred the row-structure change. Finding and follow-up scope.
Agent skill upstream boundary
Checklist