Repository navigation
feat(site/src): render nested subagent descendants in the agent tree - #104
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85208f121a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3fa021ca5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ed Mock chat fixtures
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Merge evidence for head
|
Part of #8 (W2 nested subagents, item 5: agent tree for depth above 1, PRD R3.5). The server half is #99. Merge this PR before #99: with depth-1 data it renders exactly as today, and once #99 sends nested descendants, this is what places them under their own parent instead of under the root.
With
fork-nested-subagentson, the Agents sidebar shows the whole subagent family: a coordinator's workers sit under the coordinator, and every descendant opens its own/agents/:idpage.Change.
buildChatTreeregisters every chat in a root's flatchildrenlist first, then links each one to its ownparent_chat_idwhen that parent is in the same family, and to the root otherwise, so stale cached data still renders.ChatTreeNodealready renders recursively, and search and active-chat auto-expansion already walk the tree, so no rendering code changes.createdevent for a subagent is added to the cached list underroot_chat_id ?? parent_chat_id. Before, a grandchild's parent was not a cached root, so the new row was dropped until the next refetch.collectDescendantChats) in the sidebar row and in the open chat's top bar. A mid-level chat with a running worker is now blocked like a root with a running child. For a root the result is the same set as before.Validation
chatTree.test.ts(a three-level family embedded out of order, unchanged depth-1 input, a stale flat coordinator entry after its root, the stale-parent fallback, and archive blocked for a waiting coordinator with a running worker). There is also a sidebar test that expands the root and the coordinator, clicks the worker, and lands on/agents/grandchild-1, and anAgentsPageLayouttest where acreatedevent for a grandchild lands in its root'schildren. Negative control: keying that event onparent_chat_idfails the layout test. Without the stale-entry guard, the stale-entry case fails.vitestpasses forAgentsPageLayout.test.tsxandChatsSidebar/(12 files, 232 tests), andtscandbiomeare clean.NestedSubagentFamily(opened on the worker, so its ancestors auto-expand) for Pixel.fork-nested-subagentson), against a depth-2 family that the real spawn path created with GLM-5.3-Flash. Playwright expanded the root and the coordinator, and the worker appeared one level under the coordinator. Clicking it navigated to/agents/89daa5e7…, which loaded the worker's transcript with the breadcrumbcoordinator > worker.frontend-deep-reviewroles. Fixes from it: the cache helper's parameter is nowrootId, the helper-only test was replaced by the layout test, the descendant test no longer depends on walk order, and the long comments were cut.