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
fix(mobile): name the repo on Home "Jump back in" rows - #37720
The phone's "Jump back in" list showed only branch names, so two main rows looked the same. Now each row also shows which project it belongs to.
What Changed
mobile/src/home/MobileHomeJumpBackIn.tsx: the subtitle always names the repo, then the desktop when more than one is paired.
Case
Before
After
2+ desktops
main / Running · M1 Max
main / Running · orca · M1 Max
1 desktop
main / Running · orca
unchanged
Last opened, desktop offline
main / Connect M1 Max to open
main / Connect M1 Max to open · orca
The repo is skipped when it is already the title (empty displayName falls back to repo).
The accessibility label matches the visible text.
A row with no status no longer starts its subtitle with a stray ·.
Why
The row data already had repo. It was dropped whenever more than one desktop was paired, which is the issue's case.
The title stays the branch / display name, matching WorktreeListRow, which puts the repo on the second line. The issue suggested a repo title; happy to switch if preferred.
Rendered from the real MobileHomeJumpBackIn component and its styles with react-native-web (dark theme, 390 px wide). The i18n, host-name and status-dot hooks are stubbed. Two paired desktops ("M1 Max", "ThinkPad"), all rows on branch main. Not yet run on a device.
Before
After
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
New MobileHomeJumpBackIn.test.tsx: two-desktop render and a "Connect X to open" row. It fails without the component change.
In mobile/: vitest (5 tests), pnpm typecheck, pnpm typecheck:tests, oxlint, oxfmt --check: all pass.
Not run on a device yet.
Risk
Level: Low
Subtitles get longer and truncate at one line, so a long repo name can push the desktop name out.
Mobile-only render change with no protocol change, so older desktops are unaffected.
Back out: plain revert.
AI Disclosure
Written with Claude Code (Claude Opus 5.5). I reviewed the diff and the test results.
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)
Rows were titled by branch only, and with more than one paired desktop
the subtitle showed the desktop instead of the repo. Same-branch rows
from different projects looked identical.
The subtitle now always shows the repo, then the desktop when several
are paired. Fixesstablyai#37642.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
No actionable comments were generated in the recent review.
Walkthrough
MobileHomeJumpBackIn now builds row context from the repository and, under specified conditions, the desktop title. The component uses this context in subtitles and accessibility labels. Renderer tests cover same-branch rows on different desktops and a non-actionable last-opened row.
Severity of issue fixed: Medium
Merge Risk: Minimal · up to 634c0
The rows identify the repository in the reviewed cases. No actionable issue remains before merge after normal checks.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely identifies the main change: naming the repository on mobile Home “Jump back in” rows.
Description check
The description is mostly complete. It explains the user impact, implementation, rationale, linked issue, visual proof, testing, risk, AI use, and checklist status. It also discloses that device testi…
Linked Issues check
Issue #37642 requires each Mobile "Jump back in" row to identify its project or repository. Same-branch rows must be distinguishable. At head 634c0a7, JumpBackInRow in `mobile/src/home/MobileHomeJum…
Out of Scope Changes check
Comparing merge base 312ce09 with head 634c0a7 changes two files: mobile/src/home/MobileHomeJumpBackIn.tsx and the new mobile/src/home/MobileHomeJumpBackIn.test.tsx. The component changes only the…
Full details: Description check
Explanation
The description is mostly complete. It explains the user impact, implementation, rationale, linked issue, visual proof, testing, risk, AI use, and checklist status. It also discloses that device testing and some broader commands were not run.
Full details: Linked Issues check
Explanation
Issue #37642 requires each Mobile "Jump back in" row to identify its project or repository. Same-branch rows must be distinguishable. At head 634c0a7, JumpBackInRow in mobile/src/home/MobileHomeJumpBackIn.tsx sets repo = row.worktree.repo unless it equals the row title name. It then joins the repo and, when props.nameDesktop is true and the row is actionable or not last-opened, the desktop name with ' · '. That string is the subtitle after the status. The accessibility label uses the same where value. The test names the repo of same-branch workspaces across desktops (#37642) checks two main rows from different desktops. Its expected labels are 'main, Working, orca · Studio' and 'main, Working, website · Laptop'. The test keeps the repo on a last-opened row that waits for its desktop checks 'main, Connect Laptop to open, website'. The issue's expected outcome gives examples, using project-name as the title or project · branch. This PR keeps the branch as the title and puts the repo in the subtitle. The issue says "e.g." and "(or ...)", so this arrangement meets the stated need. The repo is in the second line, not the title, so it is less prominent than the issue's example. This is a presentation choice, not a missing requirement. Single-desktop rows still show the repo, as before. The subtitle has no stray separator when status is empty. Device rendering was not verified; the evidence is source and tests only.
Full details: Out of Scope Changes check
Explanation
Comparing merge base 312ce09 with head 634c0a7 changes two files: mobile/src/home/MobileHomeJumpBackIn.tsx and the new mobile/src/home/MobileHomeJumpBackIn.test.tsx. The component changes only the subtitle and accessibility label construction, the subtitle line limit (1 to 2, for wrapping, which the commit message states), and a comment. The test file covers the same behavior and mocks React Native, icons, the agent spinner, and the clock. No protocol, RPC, store, desktop, or other platform files are in the diff. All changes support issue #37642. The PR description states no RPC or store changes, and the diff agrees.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Tip
🎯 Customize your risk assessments
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
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.
Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 6e4a84de-cbf5-45a6-988f-d036daa81b71
Commits
Reviewing files that changed from the base of the PR and between d6a2dfa and 634c0a7.
Files selected for processing: 1
mobile/src/home/MobileHomeJumpBackIn.tsx
Files skipped from review as they are similar to previous changes: 1
mobile/src/home/MobileHomeJumpBackIn.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
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 phone's "Jump back in" list showed only branch names, so two
mainrows looked the same. Now each row also shows which project it belongs to.What Changed
mobile/src/home/MobileHomeJumpBackIn.tsx: the subtitle always names the repo, then the desktop when more than one is paired.main/Running · M1 Maxmain/Running · orca · M1 Maxmain/Running · orcamain/Connect M1 Max to openmain/Connect M1 Max to open · orcadisplayNamefalls back to repo).·.Why
repo. It was dropped whenever more than one desktop was paired, which is the issue's case.WorktreeListRow, which puts the repo on the second line. The issue suggested a repo title; happy to switch if preferred.Linked Issue
Fixes #37642
Visual Proof
Rendered from the real
MobileHomeJumpBackIncomponent and its styles with react-native-web (dark theme, 390 px wide). The i18n, host-name and status-dot hooks are stubbed. Two paired desktops ("M1 Max", "ThinkPad"), all rows on branchmain. Not yet run on a device.Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
New
MobileHomeJumpBackIn.test.tsx: two-desktop render and a "Connect X to open" row. It fails without the component change.In
mobile/:vitest(5 tests),pnpm typecheck,pnpm typecheck:tests,oxlint,oxfmt --check: all pass.Not run on a device yet.
Risk
Level: Low
AI Disclosure
Written with Claude Code (Claude Opus 5.5). I reviewed the diff and the test results.
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)🤖 Generated with Claude Code