Repository navigation
feat(mobile): a Crew member or Peer Agent opens its parent - #1064
Conversation
Upstream's Open parent button, in a bar above the composer, leads to the Captain or spawner. It reads the Fleet roster through web's Lineage logic, moved to client-runtime. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Jacksondr5
left a comment
There was a problem hiding this comment.
Combined review (reviewer-opus + reviewer-sol) at ca6ee3b: cleared, pending device evidence
We each checked it independently. Neither of us has a blocking finding.
- Placement. The bar mounts in
J5ComposerControls, so there's no new upstream seam, and it sits above a J5 agent's composer, which the agent keeps. Upstream'sProviderSubagentBartakes a provider subagent's composer's place. Navigation is upstream'suseOpenLinkedThread: inspector, pop when the parent is the previous screen, otherwise push. - Gating.
j5LedgerSupported(...) !== falseand!isNarrowmatch web's Lineage. Unknown support or access stays permissive, and the server is authoritative.- A null query returns empty immediately, not stale data.
- The
fleetfamily refreshes onrereadOn("crew", "fleet"), so a newly spawned child gets its bar.
- Parent row.
deriveJ5LineageRowsmoved to client-runtime verbatim, apart from.sorton the fresh array.filterreturns (Hermes). The moved tests change only their import, and reviewer-sol ran them: 6/6 pass. The server setscrewonly for seats, so a Captain's own thread gets no self row. - Dock room. The measured height of the rows above the dock (roster strip + bar) is added to
composerHeight, which is already in the animated style's deps.OTHER_ROW_HEIGHTnow effectively covers only the playbook bar. FORK cases 114/116 match.
Non-blocking:
- The bar hides while a pending approval or question is open, because
J5ComposerControlsonly mounts without one. The dock behaves the same way. - Perf note: this is the shared
fleetatom family keyed by environment and input, not a separate fetch per mounted thread. It does keep that server-wide roster read live, re-read on each crew/fleet revision, even while an ordinary non-agent thread is open. Web holds the same roster globally, so no change asked.
…'s Lineage does Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
left a comment
There was a problem hiding this comment.
Combined re-clear (reviewer-opus + reviewer-sol) at 461e8f3: cleared
The only change since ca6ee3b is the title fallback in J5OpenParentBar, and neither of us has a finding.
useQuietThreadShellruns before the early return. With no parent it gets a null ref, which resolves to the empty atom, so the hook order is stable. The ref stays scoped to the parent's environment.shell?.title ?? displayName ?? rolematches web'sJ5LineageRowsexactly.
The visible names changed, so updated captures are still required.
Problem
On the phone, a Crew member or Peer Agent has no way to its Captain or the agent that spawned it. Web has the Lineage panel for this, and upstream's provider subagents have an Open parent button. Closes #1062.
What changed
ProviderSubagentBarstyle and wording are reused: a rounded row with the parent's thread title (falling back to its agent name, as web's Lineage row does), its role ("Captain · " or "Parent agent"), and an Open parent button (tone secondary). The button opens the parent through upstream'suseOpenLinkedThread, as upstream's bar does.J5ComposerControls). That is where upstream's bar sits. Upstream's bar takes the composer's place; a J5 member keeps its composer, so this bar goes above it. I didn't use the other two spots:ThreadHeaderon both platforms.deriveJ5LineageRows). It shows the first parent or Captain row. That logic moves fromapps/web/src/j5/threads/j5Lineage.logic.tstopackages/client-runtime/src/j5/lineage.tswith its test, behaviour unchanged exceptsorton a fresh array for Hermes. Web imports it from there.Docs line for the docs PR: none planned. Open parent follows upstream's own button.
UI changes
Android. Before is trunk
e9e5085cfd. The seat and Peer Agent afters are at461e8f3553. The other afters are atca6ee3b3a4, which differs only in how the parent's name is looked up.Live testing
Pass on Android at
461e8f3553, by the wave Android tester (Sol 6.1), with a real Claude Haiku Crew of one seat and a real Haiku Peer Agent:Not exercised: iOS, video (#1034), a Viewer or offline connection, the keyboard up, and a Captain that also has a parent with the dock open.
Upstream impact
packages/client-runtime/package.jsongains the./j5/lineageexport (case 114). Case 114 now names the bar and the dock's new room, and case 116's proof path moves.Checklist
lineage.test.tscovers parent and Captain rows; the bar is proved on deviceBuilt by Claude Opus 5.5 in Claude Code, as builder-timeline in the mobile catch-up Crew.
🤖 Generated with Claude Code