Skip to content

Show phone subagents and open the correct parent chat - #28686

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/phone-native-parent-target
Oct 16, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/phone-native-parent-target

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The phone worktree list hid running subagents that desktop already showed. A phone link could also select the wrong native chat when the chat's saved tab ID differed from its session address.

Running subagents now appear beneath their parent with their name, activity and age. Tapping a child opens its existing parent chat or terminal, including native chats restored with a different saved tab ID.

What Changed

This PR combines the subagent feature reviewed in #26423 with its parent-navigation prerequisite. Child facts come from the host's existing shared tracker and saved per-subagent records, using the desktop's running-child selector. Child-only changes update the affected row and catalog response; unchanged rows and responses retain their existing savings. Optional fields preserve older hosts and phones.

The existing pane resolver also matches a native chat's full session address to its actual listed tab. A missing parent leaves the current selection in place and creates no tab. Links without a pane target keep their current behavior.

Since round 1, the child data was rebuilt around main's shared machinery, the clock-offset sample was removed, and tests were reduced to the main path, older-peer contracts and confirmed bugs. Child ages use the existing parent formatter and have the same cross-machine clock limitations. The latest authorized merge retains main's Project grouping, shared filters, sorting and host visibility. Main's Workspace options control the whole parent-and-child block: Full list shows every parent, while hiding inline agents hides the block under main's card-layout rules.

Why

The common pattern gives the execution host ownership of child identity and lifecycle, derives displayed rows from those facts, and reuses existing navigation. This adds no second tracker, saved roster, transport operation or timer. Phone workspace child rows opening their parent are the intended desktop-parity behavior requested for Orca.

Linked Issue

Subagent feature reviewed in #26423; the native parent-navigation prerequisite is included here.

Visual Proof

All phone images use the repository's mock-host data in a real native iOS development client. The native application binary is version 0.0.51, reused as an application bundle only; no application data, preferences or keychain were copied. The latest screenshots load JavaScript from the exact merged head through Metro.

Historical before, main 80f038e, parent only:

Mock-host phone list before child rows

Merged head dac7bd8b8f3: parent and two running children in Project grouping (mock-host data):

Mock-host parent with two running children

An actual tap on child one at normalized (0.400, 0.250) opens the existing parent zsh tab. At about two seconds, the mock terminal text is already painted:

Mock-host child tap opens parent with painted terminal text

The same tab still shows painted output at about seven seconds:

Mock-host parent terminal settled after child tap

Testing

CI passed on dac7bd8b8f37353c9536f1bc5d894f866ae42dec: 19 successful checks, 14 conditional skips, zero failed, cancelled or pending checks. The single blocking watch exited 0. Root CI, Mobile verification and Ubuntu persistence passed. This includes all five unit shards, relay integration, cross-version wire compatibility, static analysis/typecheck, mobile web bundling, both packaging jobs and the final aggregate/evidence checks. The inherited main line-limit failure from the previous head was repaired upstream before this authorized merge; no unrelated fix or suppression was added here. GitHub reports CLEAN/MERGEABLE, out of draft, zero unresolved review threads and no auto-merge request.

On this merge, two focused mobile files passed all seven tests. They cover Summary/Full list child display and parent taps, plus a child-only update re-rendering one workspace. The inherited Full list test was adapted to the existing actual-row harness; the child-only render assertion follows main's updated zero-argument mock. No local lint/typecheck/install or desktop rig was run for this integration. Both lockfiles match the frozen main parent.

Verified on this exact merged head: a native iOS Project-grouped list with the parent and both named running children, an actual child-one tap opening the existing parent zsh tab, and painted terminal text in captures taken at about two and seven seconds. The coordinator inspected all original PNGs and the recorded tap trace. Captures used an owned iPhone 17 Pro Max/iOS 26.5 simulator, removed afterward. Workspace options opened and dismissed without changing settings; Full list and hiding inline agents were not exercised in rendered phone QA; source review and the focused Full list test cover those combinations. An initial private fixture label error was corrected before accepted captures; no product change resulted. Owned services, device, copied application and private fixture were cleaned up.

Not verified: live provider delivery, live native-chat notifications, rendered SSH/server/Linux/Windows flows, VoiceOver or performance at large/deep child counts. The earlier immediate blank-terminal image has no retained later frame, so it does not establish whether that old blank persisted. The new timed captures establish painting only for this run.

Review

The full feature loop in #26423 covered host-owned child delivery, old-host/old-phone contracts, child-only row/catalog changes, parent selection, architecture, performance and readiness. The navigation prerequisite was independently reviewed before combination. Fresh source reviews checked both subsequent authorized main integrations. Codex gpt-6.1-sol xhigh accepted final head dac7bd8 with no new P0/P1/P2. The latest review checked main's card controls, canonical host child join, incoming nested-agent handling, health, read-only handling and exact-parent selection. This narrow integration review did not restart the full feature loop.

Deferred P2: child actions retain the workspace's nested-action accessibility structure, so independent VoiceOver focus is not established. The separate follow-up brief is /Users/brennanbenson/orca-qa/pr-phone-worktree-subagent-rows/phone-workspace-accessibility-followup.md; the original finding remains in the feature review status. No open P0/P1 remains.

Agent skill upstream boundary

  • This change copies no upstream skill-installer material.

Checklist

  • Problem, user-facing result, mechanism and approach explained
  • Feature and parent-navigation prerequisite reviewed; final merge independently checked
  • Exact-head native mock-host phone screenshots attached
  • Cross-platform, SSH/server ownership, folders and older peers considered
  • Current-head CI green

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cd5f3611-c7bb-4a29-a43f-818595563ce7
📥 Commits

Reviewing files that changed from the base of the PR and between 184b840 and dac7bd8.

📒 Files selected for processing: 5
  • mobile/src/components/WorktreeAgentList.test.tsx
  • mobile/src/components/WorktreeAgentList.tsx
  • mobile/src/components/WorktreeListRow.tsx
  • mobile/src/host-screen/host-workspace-list-row-memo.test.tsx
  • mobile/src/host-screen/host-workspace-list.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

📝 Walkthrough

Runtime worktree-agent rows now carry structured child views, subagent snapshots, and an observation verdict. Shared helpers decode snapshots, evaluate freshness, and build running child-row models. Mobile worktree lists render child rows and can pass a selected pane key to worktree navigation. Navigation supports pane selection, and notification matching recognizes structured agent-session pane keys.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to dac7b

No PR-introduced issue is established in the reviewed changes. The reported CI blockage still needs resolution before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 44.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 25 functions across 24 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes both primary changes: showing phone subagents and opening the correct parent chat.
Description check Passed The description is detailed and covers the user impact, implementation, rationale, visual proof, testing, review status, limitations, and checklist. It references issue #26423, although it does not pr…
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

* Show running subagents beneath phone worktree agents

* Scope phone child clocks and stabilize catalog summaries

* Keep catalog request provenance private

* Show phone child ages using existing parent timing policy

* Fix phone child navigation test typecheck
@brennanb2025 brennanb2025 changed the title Fix phone links to native chats with saved tab IDs Show phone subagents and open the correct parent chat Oct 16, 2026
@brennanb2025

brennanb2025 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

The phone worktree list hid running subagents, and a phone link could select the wrong native chat when its saved tab ID differed from its session address. This combined PR now lists running children beneath their parent and opens that parent's existing chat or terminal on a child tap. #26423 was reviewed and squash-merged into this branch; this PR is the combined delivery.

Review: converged on dac7bd8b8f37353c9536f1bc5d894f866ae42dec, no open P0/P1. The full feature loop covered host-owned records, older hosts/phones, child-only row/catalog changes, parent selection, architecture, performance and readiness. The navigation prerequisite was independently reviewed. Fresh Codex gpt-6.1-sol xhigh source review accepted this authorized main integration with no new P0/P1/P2. Two phone conflicts now retain main's card visibility and Full list behavior alongside the canonical child selector, health/read-only handling and existing parent taps. The two focused mobile files passed all seven tests. No second tracker, saved roster, clock calibration or timer was added.

CI passed on dac7bd8b8f37353c9536f1bc5d894f866ae42dec: 19 successful checks, 14 conditional skips, zero failed, cancelled or pending checks. The single blocking watch exited 0. Root CI, Mobile verification and Ubuntu persistence passed. This includes all five unit shards, relay integration, cross-version wire compatibility, static analysis/typecheck, mobile web bundling, both packaging jobs and the final aggregate/evidence checks. The inherited main line-limit failure from the previous head was repaired upstream before this authorized merge; no unrelated fix or suppression was added here. GitHub reports CLEAN/MERGEABLE, out of draft, zero unresolved review threads and no auto-merge request.

Native QA: exact-head Metro JavaScript in native iOS development client 0.0.51, application-only reuse, repository mock-host data. Both named running children appeared under the Project-grouped parent. The recorded tap at normalized (0.400,0.250) hit child one and opened its existing parent zsh tab. Terminal text painted in captures at about 2s and7s. All original images and the actual input trace were inspected first-hand. Rendered QA opened the Detailed/Compact options without changing them; Full list and hiding inline agents were not exercised in rendered QA and remain covered by source review and the focused test. Own simulator, services, application copy, review child and private fixtures are cleaned; primary checkout is clean.

The earlier immediate blank-terminal image has no retained later frame, so its later paint state cannot be determined. The new timed captures prove painting in this run only. No live provider, live native-chat notification, rendered SSH/server/Linux/Windows, VoiceOver or large-roster performance claim is made; relative ages retain the parent clock limitations.

Deferred P2: child actions share the workspace's nested-action accessibility structure; independent VoiceOver focus remains unverified. The separate follow-up brief is /Users/brennanbenson/orca-qa/pr-phone-worktree-subagent-rows/phone-workspace-accessibility-followup.md. No new finding was introduced by this sync.

For Brennan's review: compare the historical main parent-only list with the refreshed exact-head list and child-tap result below. The intended phone behavior is selecting the existing parent without creating a new tab. Source judgment points: canonical host child join, shared card gate, and matching a restored native parent.

Historical main 80f, mock-host parent only:

Mock-host before child rows

Current dac7 head, mock-host parent plus two running children:

Mock-host parent and running children

Actual child-one tap opens existing parent; terminal text painted at about 2s:

Mock-host child tap opens parent with painted text

Settled at about 7s:

Mock-host parent terminal after seven seconds

@brennanb2025
brennanb2025 merged commit ec9a0af into main Oct 16, 2026
33 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/phone-native-parent-target branch October 16, 2026 04:21
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