You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(mobile): flat projects list with stronger project headers and agent detail lines - #47274
The list of projects and workspaces on a computer's page in the phone app looked unfinished: project names were smaller and greyer than the workspaces under them, every workspace was bold, and a bare number on the right looked like an unread count. This makes the project the strongest line and gives each workspace a short line saying what is going on in it.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
18
$\color{#1a7f37}{\Huge{\mathbf{+}}}$441
$\color{#cf222e}{\Huge{\mathbf{−}}}$363
$\color{#1a7f37}{\Huge{\mathbf{+}}}$78
What Changed
Project headers (group by Project; Status and PR grouping use the same style): the repo icon, the name at 15/600 in the primary colour, a count, a chevron on the right, and a hairline underneath. The whole header folds the project and is at least 44 pt tall. Long names cut off on one line instead of wrapping.
Workspace rows stay a flat list.
The title is 16 pt regular, bold only when unread.
The repo's main checkout is greyed, with "Default branch" under it.
The workspace open on the desktop gets a small monitor glyph instead of the left bar and fill.
The latest agent time sits at the right of the title line.
Detail line:
One agent: "Claude finished · 2 terminals".
Several agents: "N agents", then one tappable line each (logo, name, coloured state, time).
No agents: "N terminals" instead of the bare trailing number.
The unlabeled summary pill of dots and logos is gone (WorktreeAgentSummary.tsx deleted).
The empty section at the top no longer says "No … yet."; its header and + stay, because that + is the only way to create one from this screen.
Why
The host screen was the one big list that didn't read like Home and the Agents tab, and users reported it as unpolished. Kelvin reviewed two layouts, grouped cards and flat, and picked the flat one.
Linked Issue
None. This came from polish reports, and there's no tracked issue.
Visual Proof
Shot on an Android emulator: release app 0.0.68 loading this branch's phone page from a scratch desktop. Before = main.
Testing
I manually tested these changes locally. Android emulator, dark and light, with real Claude terminals in finished and waiting states, two agents in one workspace, main checkouts, and folded projects.
Automated tests added/updated, or explained why not below. UI-only; no new tests, per the repo's test policy.
Every added test fails without this change and avoids the test anti-patterns
pnpm check:changed passes, and so does pnpm run build:mobile-web (size fences). Not run on the iOS simulator; the page is the same react-native-web bundle on both.
Performance
None. The rows read the same agent and terminal data as before, and the clock tick is still limited to rows that show agent times.
Risk
The riskiest part is the agent lines: "Full list" mode, lineage disclosure and subagent rows were restyled, not rewritten, but a missed case would show up as a missing or misaligned agent line on the host list. Old paired desktops send the same fields. A plain revert backs it out.
Level: Low
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
…l lines
Project headers lead with icon, name and count over a hairline; rows show 16 pt titles, a detail line (agent state, terminals, Default branch) and one tappable line per agent. The open-on-desktop row gets a monitor mark instead of a fill, and the empty section drops its placeholder line.
Worktree agent lists now render individual agent rows, with message, state, and phrase layouts. Collapsed lists show up to three roots before a show-more control. Worktree rows display terminal details, latest agent activity, and an indicator for active worktrees. Host and bot section headers use updated layouts and first-section styling. Bot sections no longer show the “No bots yet.” end line.
Merge Risk: Low · up to 8323f
The mobile workspace list can omit some detail users expect: an unread indicator for hidden agents, the terminal count for multi-agent workspaces, and the Default branch label on main checkouts with agents. These are cosmetic and informational gaps and do not block usage. They are worth fixing before merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(mobile): flat projects list with stronger project headers and agent detail lines" matches the main change. The raw summary and objectives show a flat project/workspace list, restyled p…
Description check
The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, N…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat(mobile): flat projects list with stronger project headers and agent detail lines" matches the main change. The raw summary and objectives show a flat project/workspace list, restyled project headers, and agent or terminal detail lines in workspace rows, plus removal of the summary pill. The title is specific and follows a conventional commit style. It is slightly long (85 characters), but it is still clear.
Full details: Description check
Explanation
The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. It explains the before and after for users, the mechanism, the reasoning behind the design, and the risk and rollback plan. The Visual Proof section links a before and after clip, and the Performance section states a reason. Minor gaps: the Linked Issue section says there is no issue, which the template calls for only for outside contributors, and the Risk section does not name a level in the template's required form beyond 'Low'. The 'Fixes #' line was removed, and the AI Disclosure section was left empty, which the template allows for internal contributors. The Level field is filled in. Overall the description is mostly complete.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Include descendants in the hidden-agent unread indicator.
With four read roots and an unread agent child under the fourth root, folding hides both the root and its child. This check examines only root rows. The Show more control therefore has no unread bell or unread accessibility label.
Include each hidden root's descendants in this check. Reuse the recursive unread handling already used for collapsed parents. Keep the existing hidden-root unread check.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the terminal count when a workspace has multiple root agents.
When roots.length > 1, the detail line shows only the agent count. The terminals label that the row passes in is discarded, so a workspace with two agents and three terminals shows "2 agents" and no terminal count. The single-agent branch still shows the terminal count. The multi-agent branch must also show the terminal count beside or below the title, as the PR requires.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the default-branch label when agents are visible.
If a main checkout has agents and cardDetails.inlineAgents is enabled, showAgents selects WorktreeAgentList. This skips detail, which contains “Default branch.” The agent list receives neither this label nor item.isMainWorktree.
Render the default-branch label independently of the agent-list fallback. Keep the label visible for main checkouts without agents too. The PR objectives require this label on main checkouts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
ELI5
The list of projects and workspaces on a computer's page in the phone app looked unfinished: project names were smaller and greyer than the workspaces under them, every workspace was bold, and a bare number on the right looked like an unread count. This makes the project the strongest line and gives each workspace a short line saying what is going on in it.
What Changed
WorktreeAgentSummary.tsxdeleted).Why
The host screen was the one big list that didn't read like Home and the Agents tab, and users reported it as unpolished. Kelvin reviewed two layouts, grouped cards and flat, and picked the flat one.
Linked Issue
None. This came from polish reports, and there's no tracked issue.
Visual Proof
Shot on an Android emulator: release app 0.0.68 loading this branch's phone page from a scratch desktop. Before = main.
Testing
pnpm check:changedpasses, and so doespnpm run build:mobile-web(size fences). Not run on the iOS simulator; the page is the same react-native-web bundle on both.Performance
None. The rows read the same agent and terminal data as before, and the clock tick is still limited to rows that show agent times.
Risk
The riskiest part is the agent lines: "Full list" mode, lineage disclosure and subagent rows were restyled, not rewritten, but a missed case would show up as a missing or misaligned agent line on the host list. Old paired desktops send the same fields. A plain revert backs it out.
Level: Low
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)