Skip to content

fix(mobile): name the repo on Home "Jump back in" rows - #37720

Closed
Mahdi-Hasan wants to merge 3 commits into
stablyai:mainfrom
Mahdi-Hasan:fix/mobile-jump-back-in-project-name
Closed

Mahdi-Hasan wants to merge 3 commits into
stablyai:mainfrom
Mahdi-Hasan:fix/mobile-jump-back-in-project-name

Conversation

@Mahdi-Hasan

@Mahdi-Hasan Mahdi-Hasan commented Nov 3, 2026 •

Copy link
Copy Markdown

ELI5

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.
  • No RPC or store changes.

Linked Issue

Fixes #37642

Visual Proof

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
Before: rows show only status and desktop After: rows show status, repo and desktop

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)

🤖 Generated with Claude Code

Mahdi-Hasan and others added 2 commits November 3, 2026 12:19
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. Fixes stablyai#37642.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mahdi-Hasan
Mahdi-Hasan marked this pull request as ready for review November 3, 2026 09:13
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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 Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: naming the repository on mobile Home “Jump back in” rows.
Description check Passed 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 Passed 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 Passed 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.

Share

CodeRabbit Verify

  • 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.

A long repo or desktop name no longer truncates the part that tells
same-branch rows apart.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nwparker

nwparker commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded — the linked issue (#37642) has been resolved on main by #38206 (b8969c9c53). Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Mobile "Jump back in" shows only branch names, making recent workspaces indistinguishable

2 participants