Repository navigation
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacking
Warning
Stacked on #3870 (which itself requires #2829). Only the top two commits belong to this PR —
refactor(client-runtime): share subagent thread tree projectionandfeat(mobile): show collapsible nested subagent threads. Everything below them is the #3870 stack.Summary
Opt-in nested subagent threads for the mobile home screen and thread sidebar, kept separate from #3870 on purpose so it can be dropped or deferred independently if the feature isn't wanted:
client-runtimewith cycle and orphan fallbacks, so clients cannot drift on which rows count as roots; the web sidebar adopts the same projection in feat(sidebar): reveal nested subagent threads #3861 — whichever lands first, the other's copy of the twothreadRelationshipsfiles rebases away cleanlyValidation
vp check,vp run typecheck— greent3testAVD and a Pixel 7 Pro from the integration branch: toggle appears in the menu, nested Codex/Claude children expand and collapse, and the preference survives a cold restartNote
Medium Risk
Low-risk list UX when the toggle stays off; medium overall because the diff also touches mobile thread navigation, feed, and desktop userdata paths where regressions would affect daily use.
Overview
Adds an opt-in Show nested subagents control on the mobile home thread list (persisted in device preferences, default off). When enabled, the list uses shared
client-runtimehelpers (getSubagentThreadTreeRoots,flattenSubagentThreadTree) to indent subagent child threads under parents with per-branch expand/collapse; Show more pagination still counts root threads so expanded nests do not eat preview slots. Recent-thread previews and grouping now derive from roots as well.The same diff also carries broader mobile orchestration V2 work alongside that feature: home/archive fixtures move to V2 shell types, orchestration cache schema alignment, thread detail feed changes (
latestRun, fork-from-response, expandable work log +ThreadActivityInspector), queue reorder UI, relationship banner, runtime-request IDs, and checkpoint summaries from projection. Desktop production state paths shift fromuserdatatouserdata-v2(and related branding/test expectations). Large.plansdocs and a small marketing harness label update are documentation-only.Reviewed by Cursor Bugbot for commit d03b0c31981aee8397b7b7b82e5e984d04a6542d. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add nested subagent thread display behind a toggle in mobile home and sidebar
useSubagentThreadListPreferencehook.ThreadDetailsPanel,ThreadRelationshipsPanel,ThreadRelationshipsBanner,ThreadQueueControl,ThreadAutomationsPanel,V2ItemInspector, andV2LifecycleRowon web and mobile.orchestrationAdapterinstead ofadapter.userdatatouserdata-v2(and desktop fromt3codetot3code-v2), and the SSH tunnel script targetsuserdata-v2; existing V1 persisted state will not be read by default.📊 Macroscope summarized d03b0c3. 189 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted
🗂️ Filtered Issues
No issues evaluated.
Depends on #3861 for the server-side owned-subtree lifecycle cascade: mobile dispatches a single root command for archive/unarchive/delete and relies on the orchestrator to cascade the transition and cancel active runs across the owned subagent subtree.