Skip to content

feat(mobile): tap the session title to see its full name, path and host - #30389

Merged
brennanb2025 merged 26 commits into
mainfrom
brennanb2025/mobile-title-card
Oct 30, 2026
Merged

brennanb2025 merged 26 commits into
mainfrom
brennanb2025/mobile-title-card

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​644 $\color{#cf222e}{\Huge{\mathbf{−}}}$​23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​621
Prod 30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​850 $\color{#cf222e}{\Huge{\mathbf{−}}}$​67 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​783

ELI5

Long session names are cut off on a phone, especially beside the tabs in landscape. Tap the title to read its full name, exact folder path and known host in a small card.

What Changed

The title stays the same button while details open and close. The card appears below the header, wraps long values and scrolls when needed. Name and path text can be selected and copied. It fades and slides 6pt over 150ms; Reduce Motion keeps the fade. Tapping again while it closes reopens it. Fresh placement arriving before the exit finishes reverses the same animation; if the exit has finished first, the card fades in again. This is intended: a pending measurement preserves the reopen request without keeping an already invisible card mounted.

An outside tap both closes details and performs the control's normal action. This is intended, matching the desktop tab card. Closing immediately releases the card's input, focus and Back handling while its visual exit finishes. Header Back closes details first; the next Back uses the session's existing leave behavior. Keyboard focus can move through the card and onward to nearby controls. A higher sheet takes precedence.

The card renders beside the page in the document rather than covering the title or intercepting the background. Tagged measurements and animation completions prevent an older close from discarding a newer open. The page reads existing optional path and execution-host metadata; no saved format, wire operation or dependency changes. An unproven host name is omitted, and older hosts still show the information they provide.

Why

This keeps the common desktop card behavior and the existing title as the actual input target. A screen-covering layer lost rapid re-taps and made outside controls unusable during closing. Visual presence now has a separate lifetime from interaction.

Linked Issue

Tracked in the Discord report “For mobile app when phone is turned.”

Visual Proof

The real served page was captured inside the normally signed 0.0.60 simulator client on both phones at 1fad99982b35b1c60ad405793623edc503a8a12f. Later commit 9d4a4028829365d6f0a99c8dac73bffbd6d7b14e adds a renderer contract test. Commit 92d29b096576904068829a91c624269a2f3a84f2 refreshes the measured bundle table and its existing tests; it changes no card rendering or imports. These tests-row changes retain the screenshots under the review skill’s staleness rule; The renderer contracts and merged-head CI cover this integration. Portrait images use pristine web assets; landscape uses the diagnostic bundle. The floating gear on Pro belongs to the development client.

  • Not exercised natively: simultaneous-contact priority; the native tool exposes one contact stream; covered by use-detail-card-scope.web.test.tsx:140, which checks renderer scope release and sheet activation across interleaved contacts, without claiming physical hit-testing.
  • Not exercised natively: hardware/shell Back; no applicable native input primitive was available; covered by MobileSessionTitleBlock.test.tsx:233, which invokes the registered Back callback and checks close/release.
  • Not exercised natively: height-only viewport shrink; real focus did not produce a keyboard or viewport shrink and no native resize primitive was available; covered by MobileSessionTitleBlock.test.tsx:224, which keeps width fixed and checks the rendered card’s reduced maximum height.
  • Reduce Motion: lead-reported pass, receipts not audited (artifact transport failure, factory notified).
iPhone SE iPhone 17 Pro
iPhone SE detail card iPhone 17 Pro detail card

iPhone SE landscape (diagnostic):

iPhone SE landscape detail card

Testing

  • Main merge 9c991d4e1f8e7d538318d41cbfa193fb8954eb5b brings main b83e76f01e66fa9d2467a2fb2fa12b5e1b7be62e into 5a58fadbbc1b907815c593f635a7906ee43168ba for the Orchestration v3: coordinators end their turn and Orca wakes them #36137 Surface conflict. Bounded resolution review agreed against both parents: main’s worker auto-close strip stays between Header and ContentRow, and the title-card, Duo layout and nonmodal input behavior stay unchanged. One existing title regression adds the same sibling mock used by main’s Surface tests, preserving every assertion. Main-merge staleness carry applies to the original screenshots; no native replay was performed. Exact-head PR Checks and Mobile Checks passed: all 12 selected unit shards, renderer tests, static/typecheck and bundle verification. The new title fixture passed 2/2, header overflow 3/3 and web scope 2/2. The current head is CLEAN/MERGEABLE with all six review threads resolved. No bundle budget change or additional measurement was needed.

  • Main merge 5a58fadbbc1b907815c593f635a7906ee43168ba brings main b2b8b0be9362808ff2235fdf061e303513d372a7 into the previously reviewed 92d29b096576904068829a91c624269a2f3a84f2. Bounded resolution review agreed against both parents. Main’s Duo controls and compact layout remain; title absence now uses the existing card-eligibility path to release an open card, Back claim and stale measurements, covered by one new actual Surface/Header regression. Existing header/overflow/cleanup fixtures were adapted without removing assertions. Merged-head PR Checks and Mobile Checks passed, including the renderer suite, all selected unit shards, static/typecheck and bundle verification. The bundle remains 16 routes, 100 chunks and 161 assets under unchanged guards; no further remeasurement was needed. Main merges preserve prior QA evidence; no native flow was replayed.

  • The review skill classifies this mobile UI change as qa=tests: CI, renderer tests and screenshots of the shipped screen in the emulator. The native controls listed above document coverage limits and are outside the required run scope.

  • The existing six-round full review and binding final design ruling are complete. Continued bounded source/integration, renderer-contract and bundle-correction verification agreed. The card’s source and appearance are unchanged since the screenshot head.

  • Earlier verified CI: passed on 92d29b096576904068829a91c624269a2f3a84f2 (PR Checks, Mobile Checks). The prior bundle-count failure was repaired after measuring current main and the PR integrated into the same main on a gated Windows machine. The PR adds one required shared portal-host chunk, with no existing modules repartitioned or new dependency. A real sweep of all 16 sorted route prefixes measured 100 code chunks and a largest route step of 15. The measured table and existing spread/shell-boundary fixture were refreshed; margin 4, unused-margin, byte, entry, catalog, font, lazy-loading and shell-limit protections remain. The production build, packaged/deterministic verifiers and all 40 tests in the named bundle suite passed with zero skipped. No local dependency install, build, lint or typecheck ran in this review worktree.

  • Independent evidence audits additionally support both phones’ pristine full-title/path Copy, held-title and selection/drag across close/removal, outside fade/double actions, product More navigation/return and covered-target priority, long-value scrolling and dirty-draft header Back. All eight earlier rapid pairs, subsequent ordinary title taps, both 400ms controls and held-outside Files controls carry without replay.

  • Out-of-scope notes: both Session History destinations opened but showed a missing session-scanner error, so usable history loading was not proved. New Tab background reading exposure and the pre-existing open-card edge swipe to Home remain recorded observations, not readiness blockers.

Pristine SE native full-path selection and Copy (exact 48-byte result):

SE full-path native selection

Review

Intended difference: On iPhone Duo's connected compact header (#35177), which shows no title, there is no title card.

Related work: #31617 also updates the measured bundle table for its separate 17-route tree. Whichever PR lands second remeasures against the resulting route tree; this PR does not change #31617.

The change is mobile UI and existing optional metadata. Cross-version hosts, SSH ownership and folder/floating routes were considered in source; unrun platform/topology coverage will remain explicit. Separate landscape layout work is outside this PR.

Checklist

  • Focused on the title detail card; main's layout and transport behavior retained.
  • Before/after behavior and mechanism explained.
  • Source reviewed for correctness, performance, cross-platform and older-peer behavior.
  • Shipped-page emulator screenshots attached; renderer contracts cover the required mobile UI scope.
  • Exact-head CI passed after the Orchestration v3: coordinators end their turn and Orca wakes them #36137 main merge.

A sideways phone caps the title at 160pt beside the tabs, so long worktree names were cut off with no way to read them. Tapping the title now opens a card under the top bar, built like desktop's tab hover card, with the full name, the worktree's path and the host. It fades and slides in over 150ms (fade only with Reduce Motion), and any tap outside closes it.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 18, 2026 18:02
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c5bf25ca-062d-4e32-b9e6-79592f16b5fc
📥 Commits

Reviewing files that changed from the base of the PR and between cfed5c6 and 25a2009.

📒 Files selected for processing: 2
  • mobile/src/layout/host-sidebar-reveal.test.tsx
  • mobile/src/session/MobileSessionHeader.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

Walkthrough

The mobile session model now includes worktree path and host ID data, plus host names from the workspace server or loaded host records. The session header passes this metadata and connection state to a title block that opens an anchored detail card. The card supports outside-tap and modal-request dismissal. Tests cover card placement, content, dismissal, transition state, and updated worktree and server metadata.

Priority: Low

Merge Risk: Minimal · up to 25a20

The session title card shows the host only when it can be tied to the machine running the session. No remaining merge-blocking issues were found.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description is detailed and covers the user impact, implementation, rationale, visual proof, testing evidence, limitations, and review notes. However, the required Linked Issue section does not pr… Add the actual linked issue in the Linked Issue section, using the required issue reference or link. Complete or explicitly mark the remaining template sections, including AI Disclosure, Agent skill upstream boundary, Notes, and the require…
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the primary mobile change: tapping the session title reveals its full name, path, and host.
Full details: Description check

Explanation

The description is detailed and covers the user impact, implementation, rationale, visual proof, testing evidence, limitations, and review notes. However, the required Linked Issue section does not provide an actual issue link or issue reference. It only mentions a Discord report, and the checklist omits several template items.

Resolution

Add the actual linked issue in the Linked Issue section, using the required issue reference or link. Complete or explicitly mark the remaining template sections, including AI Disclosure, Agent skill upstream boundary, Notes, and the required testing and checklist items.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a46e6cc2-d9b2-420a-8c5e-5ad65cac58d7
📥 Commits

Reviewing files that changed from the base of the PR and between ff294f0 and ada582c.

📒 Files selected for processing: 9
  • mobile/src/components/AnchoredDetailCard.tsx
  • mobile/src/session/MobileSessionHeader.tsx
  • mobile/src/session/MobileSessionTitleBlock.test.tsx
  • mobile/src/session/MobileSessionTitleBlock.tsx
  • mobile/src/session/session-read-reply-schema.ts
  • mobile/src/session/use-live-worktree-name.ts
  • mobile/src/session/use-mobile-session-foundation.ts
  • mobile/src/session/use-mobile-session-lifecycle.ts
  • mobile/src/session/use-mobile-session-terminal-runtime.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6307e4f-1145-4fde-9072-e039f73d24e0
📥 Commits

Reviewing files that changed from the base of the PR and between ada582c and 24a209c.

📒 Files selected for processing: 11
  • mobile/src/components/AnchoredDetailCard.tsx
  • mobile/src/session/MobileSessionHeader.tsx
  • mobile/src/session/MobileSessionTitleBlock.test.tsx
  • mobile/src/session/MobileSessionTitleBlock.tsx
  • mobile/src/session/session-read-reply-schema.ts
  • mobile/src/session/use-live-worktree-name.test.ts
  • mobile/src/session/use-live-worktree-name.ts
  • mobile/src/session/use-mobile-session-foundation.ts
  • mobile/src/transport/use-workspace-client.ts
  • mobile/src/transport/workspace-server.test.ts
  • mobile/src/transport/workspace-server.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changes since the previous review appear safe to merge.

Summary

Adds a tappable session title that opens a card with the full workspace name, path, and known host. The latest changes translate its accessibility hint into all supported languages.

  • Tapping the session title opens a nearby card with its full name.
  • The web detail card leaves nearby controls available to mouse and keyboard users.
  • Session details show a worktree path and a host name when known.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Title[Tap session title] --> Measure[Measure card position]
  Measure --> Open[Show details card]
  Open --> Close[Title, Back, or outside action]
  Close --> Exit[Release input and animate exit]
  Exit --> Removed[Remove card]
  Exit --> Reopen[Tap title again]
  Reopen --> Measure
Loading

Reviews (7) · Last reviewed commit: "Localize the mobile workspace details hi..." · Reviewed by Greptile

…r-30389

# Conflicts:
#	mobile/app/_layout.web.tsx
#	mobile/src/layout/host-sidebar-reveal.test.tsx
#	mobile/src/session/MobileSessionHeader.tsx
#	mobile/src/session/MobileSessionSurface.tsx
#	mobile/src/session/use-live-worktree-name.ts
#	mobile/src/transport/use-workspace-client.ts
#	mobile/src/transport/workspace-server.test.ts
#	mobile/src/transport/workspace-server.ts
@brennanb2025

brennanb2025 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Review complete — 9c991d4; exact-head CI green.

Long session names are cut off on phones. Tapping the permanent title now opens a selectable card with the full name, exact path and known host. Outside taps activate their control and dismiss the card; this is intended, matching the desktop tab card. Logical close releases input, focus and Back while the reversible visual exit finishes.

The existing six-round full review fixed Back ownership, stale placement, inaccessible long content, path whitespace, host attribution and lost title input. Continued bounded checks agreed. Latest main merge 9c991d4e1f8e7d538318d41cbfa193fb8954eb5b brings b83e76f01e66fa9d2467a2fb2fa12b5e1b7be62e into 5a58fadbbc1b907815c593f635a7906ee43168ba for the #36137 Surface conflict. One bounded reviewer checked both parents: main’s worker auto-close strip remains below Header and above ContentRow, while title-card ownership, geometry, host attribution and the nonmodal input policy survive unchanged. One existing title fixture adds main’s sibling-isolation mock; every assertion remains. No other manual production change.

Since screenshot head 1fad99982b35b1c60ad405793623edc503a8a12f, test-only 9d4a4028829365d6f0a99c8dac73bffbd6d7b14e adds the higher-sheet release contract; 92d29b096576904068829a91c624269a2f3a84f2 refreshes the measured bundle table and existing tests; main merge 5a58fadbbc1b907815c593f635a7906ee43168ba retains main’s Duo controls and maps missing title visibility into existing card eligibility, with a real Surface/Header regression. The latest merge above retains that integration. These tests-row changes and main merges carry the original evidence under the staleness rule; no native flow was replayed.

Intended difference: On iPhone Duo's connected compact header (#35177), which shows no title, there is no title card. No proxy or new entry point was added.

The mobile/light UI row is qa=tests: renderer tests, CI and screenshots of the shipped page in the signed emulator shell. Exact-head PR Checks and Mobile Checks passed, including all 12 selected unit shards, relay integration, static/typecheck and the actual bundle/packaged/deterministic verifiers. Actual renderer receipts: title block 2/2, header overflow 3/3, web scope 2/2. CLEAN/MERGEABLE, out of draft, all six threads resolved.

  • Not exercised natively: simultaneous-contact priority; the native tool exposes one contact stream; covered by use-detail-card-scope.web.test.tsx:140, limited to renderer scope release, inertness, focus and sheet activation.
  • Not exercised natively: hardware/shell Back; no applicable native input primitive; covered by MobileSessionTitleBlock.test.tsx:233, invoking the registered Back callback and checking close/release.
  • Not exercised natively: height-only shrink; no native resize primitive or keyboard-induced viewport change; covered by MobileSessionTitleBlock.test.tsx:224, keeping width fixed and checking reduced rendered maximum height.
  • Reduce Motion: lead-reported pass, receipts not audited (artifact transport failure, factory notified).

Earlier independent native evidence supports both phones’ pristine full-title/path Copy, held-title and selection/drag across removal without unrelated action, outside fade/double actions, More navigation/return, covered-target priority, scrolling and dirty-draft header Back. Eight rapid pairs, next title taps, both 400ms controls and held-outside Files checks carry with their original limits; this is not hardware input equivalence.

Out-of-scope notes: Session History displayed a missing-scanner error, so working history loading was not proved; New Tab background reading exposure and the pre-existing open-card edge swipe to Home remain recorded observations. Android, hardware keyboard/IME/AT and extra host topologies were not exercised.

The earlier bundle-count repair used a gated same-main graph comparison and real 16-prefix sweep. Margin 4, unused-margin, byte/entry/catalog/font, lazy-loading and shell protections remain unchanged. The latest bundle job passed without another sweep or budget edit. Related work: #31617 measures its separate 17-route tree; whichever lands second remeasures. Ticket 3538 was released; this merge started no QA machine job. #36395 is untouched; the lane owner received this new pushed head for re-sync.

For Brennan’s review:

SE pristine Pro pristine
SE card Pro card

SE pristine full-path selection and Copy

@brennanb2025
brennanb2025 merged commit 6a9b1d7 into main Oct 30, 2026
45 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/mobile-title-card branch October 31, 2026 00:58
AmoabaKelvin added a commit that referenced this pull request Nov 4, 2026
Reverts 852391d (#36395). The card popped up on every tab switch.
Tapping a tab switches tabs again, and the session title card goes back
to its own owner from #30389. Keeps later changes to these files: tab
press feedback, the compact top bar's + button, and #36866's keyboard
keep-focus for title taps.
AmoabaKelvin added a commit that referenced this pull request Nov 4, 2026
Reverts 852391d (#36395). The card popped up on every tab switch.
Tapping a tab switches tabs again, and the session title card goes back
to its own owner from #30389. Keeps later changes to these files: tab
press feedback, the compact top bar's + button, and #36866's keyboard
keep-focus for title taps.
AmoabaKelvin added a commit that referenced this pull request Nov 4, 2026
…abs (#38206)

* revert(mobile): drop the details card on session tab taps

Reverts 852391d (#36395). The card popped up on every tab switch.
Tapping a tab switches tabs again, and the session title card goes back
to its own owner from #30389. Keeps later changes to these files: tab
press feedback, the compact top bar's + button, and #36866's keyboard
keep-focus for title taps.

* fix(mobile): hide branch and folder when the setting is off

The phone's workspace row always printed the branch or folder path, so the
Branch name / Branch / folder path toggle under Card display did nothing.
The shared card details now carry that rule, and the row reads it.

* fix(mobile): centre the chevron on Home list rows

* fix(mobile): scroll sheets taller than the screen

Content-sized sheets ride the keyboard by translation, but their height cap ignored that lift, so a tall sheet pushed its top off screen with no way to scroll back to it. The cap now gives back the keyboard lift. Sheets that scroll their own list can now shrink to the cap instead of clipping it, and the GitHub Pages picker no longer nests its list inside the drawer's ScrollView.

* feat(mobile): show each desktop's machine kind and model

The desktop now reports whether it is a laptop, desktop or server, and its
model, on status.get. The phone stores it with the other last-known host
fields and turns it into a line like "MacBook Pro · macOS".

* feat(mobile): edit a host from its screen and align the Automations bar

The host screen's menu gains Edit host and Network diagnostics. Edit host moves
onto the standard bar and gains Remove host. Automations uses the standard bar
with its switcher pinned under it, as Source Control does.

* feat(mobile): arrange Home and bring back stats and account usage

Home drops the Jump back in times, names the repo on every Jump back in row
(#37642), shows each desktop's machine kind, and adds stats and account usage
at the bottom. A new Arrange button reorders and hides sections, saved on the
phone.

* fix(mobile): keep the page bundle within budget and show the machine on the host screen

The edit route gets a web stub so its native-only removal flow stays out of
the page's chunks, and Automations keeps its own segment style. The host
screen header shows the machine line like Home does.

* fix(mobile): give the edit route's page stub its own module

A bare re-export of the catch-all route compiled to the same asset as
[...page], so the page manifest listed it twice and the desktop template's
inventory check refused the build.

* feat(mobile): turn Home into Feed, Usage, Automations and Settings tabs

Feed keeps agents (needs-you first, five then Show all), desktops with a
needs-you count, and Tasks; New workspace moves to a floating button.
Usage shows stats and per-desktop account usage, Automations a per-desktop
summary with on/off switches that opens the page for editing (new=1 opens
its editor). Settings becomes a tab. Arrange Home is removed: tabs replace
the long scrolling Home it was for.

* style(mobile): darken the accent blue slightly

* style(mobile): give the Home Tasks row the desktop tile icon

* style(mobile): condense the Home Feed

Smaller tiles, type and gaps; a desktop is two lines with its needs-you
count as an amber pill; the Tasks row drops its duplicate heading.

* style(mobile): drop the Last known prefix on Home desktop rows

* chore(mobile): bump to 0.0.63 and Android versionCode 27

* test(mobile): re-record Linear task recordings for the darker accent blue

* test(mobile): check the page Back stack on Tasks now that Edit host is native

* fix(mobile): pass the Usage tab's limit window to the shared usage helpers

* fix(mobile): type the Usage tab test to the account-slot limits and keep the tab under 400 lines
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.

1 participant