Skip to content

fix(mobile): one button style for the session header and tab strip; size tabs to titles - #29222

Merged
brennanb2025 merged 14 commits into
mainfrom
brennanb2025/mobile-session-header-buttons
Oct 19, 2026
Merged

brennanb2025 merged 14 commits into
mainfrom
brennanb2025/mobile-session-header-buttons

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48 $\color{#cf222e}{\Huge{\mathbf{−}}}$​73 $\color{#cf222e}{\Huge{\mathbf{−}}}$​25

ELI5

A community user on Discord said the phone's session tab strip "feels crowded" and that the "+" (new tab) button "always takes a bit of effort to tap it without missing it". The cause: every tab was a fixed 128pt wide however short its title, the strip row was only 36pt tall, and the header's buttons came in three different sizes. "+" and quick commands were the smallest: a 16pt glyph in a 40×36 area with no extra touch room, sitting flush against the tabs. Now every header and tab-strip button looks and responds the same, tabs are only as wide as their titles need, and every control has a 44pt touch area.

What Changed

  • Before: back was a 36pt circle, folder / branch / more were 36pt squares with extra touch room, "+" and quick commands were bare 40×36 glyphs with none. Tabs were all 128pt wide in a 36pt row.
  • After: back, show-sidebar, folder, branch, more, "+" and quick commands all use one button: an 18pt icon in a 36pt rounded square that fills when pressed, with a 44×44 touch area (the platform minimum). Tabs size to their titles (44pt minimum, 128pt maximum, long titles still truncate), the strip row is 44pt tall, terminal tabs get a terminal icon like every other tab kind, and tabs tell screen readers they are tabs and which one is selected.
  • Mechanism: the existing MobileSessionHeaderIconButton becomes the only button in the header and tab strip (it gains a disabled state). Each 36pt visual reserves 4pt on each side in layout for its 44pt touch area, so neighbouring buttons no longer compete for taps. The separate back, new-tab and quick-commands button styles are deleted.

Why

One component is the simplest way to make every button the same size and look, and it removes styles instead of adding a special case for "+". Brennan reviewed the before/after mock and asked for the same UI on all buttons rather than a special "+".

This also sizes tabs to their titles, as proposed in community PR #28482 and tracked in #28472. This PR supersedes #28482. The landscape top bar, tab borders and 12pt gap between the session title and the strip divider from #29070 are already on main; this PR preserves them.

Linked Issue

No GitHub issue for the button feedback; it was reported in the Orca community Discord ("For mobile app when phone is turned"). Tab sizing is tracked in #28472.

Based on main. #29070 has merged; no parent PR needs to land first.

Visual Proof

Coordinator iOS Simulator QA passed on 99327db90c14b3e85e3ce6be98dfe43cbf2f791c. The main-versus-PR screenshots below are for this head. iPhone SE landscape preserves the divider and the 12pt layout gap before the first tab; iPhone 17 Pro landscape has no overlap at the start or halfway through scrolling; portrait keeps two rows.

Header and tab-strip buttons now share one size and one pressed look, a plain terminal tab shows a terminal icon, and each tab is only as wide as its title, up to 128pt.

Before (main) After (this PR)
iPhone SE landscape SE landscape before, equal-width tabs SE landscape after, tabs sized to their titles
iPhone 17 Pro landscape, strip at the start 17 Pro landscape before, strip at the start 17 Pro landscape after, strip at the start
iPhone 17 Pro landscape, strip scrolled halfway 17 Pro landscape before, strip scrolled halfway 17 Pro landscape after, strip scrolled halfway
iPhone 17 Pro portrait 17 Pro portrait before 17 Pro portrait after, two rows kept

Pressed on this PR: the tab strip + and the header More button both take the same raised fill while held.

Tab strip plus held Header More button held

Measured: on main every tab is 128pt; on this PR Claude is 76–78pt, Shell is 64pt, Notes.md is 93pt, and long titles stay at the 128pt cap. The divider before the first tab is intact on both, and the space from the title’s last glyph to that divider is 28px (14pt) on the SE before shot and 21px (10.5pt) on the SE after shot.

Testing

  • The header test (host-sidebar-reveal.test.tsx) now counts pressable buttons, since the label sits on the shared button component.
  • Lint and format were run on the changed files. Mobile Checks (typecheck, tests, lint) run in CI.
  • Coordinator iOS Simulator QA passed on the current head; main-versus-PR screenshots are above
  • Automated tests added/updated, or explained why not below

Review

Plan: keep the existing landscape top bar and its approved 12pt title-to-divider gap, use the shared button for all header and tab-strip actions, and let tabs fit their titles within the existing bounds. Recheck the main merge narrowly and run iOS Simulator QA on the final head.

Review path: continuing the completed full review with a narrow integration check.

  • Small: five production files, 48 added and 73 deleted lines; one additional test file.
  • Outside risky areas: presentation only; no session ownership, saved data, process, host-message, account or orchestration changes.
  • Not a repeat: does not qualify for the light path; recent history includes touch-target and landscape-divider corrections in the same UI, and the completed loop used the full path.
  • Local effect: shared buttons, tab presentation and layout within the existing mobile session header.

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

Mobile only. There is no desktop, SSH or wire change.

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)
  • Before/after screenshots attached for the changed mobile flows
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • Full PR Checks and Mobile Checks passed on the current head; no local checks were run in this continuation

A sideways phone is about 390pt tall and the session header spent two rows
on it. On a landscape phone the tab strip now shares the top bar with the
back button, title and panel icons. Portrait and tablet layouts are unchanged.
In the landscape top bar the tabs sat between the title and the panel
icons with nothing marking where one tab ended. Each tab now has a 1pt
border on its sides, running the full height of the bar, and the active
tab gets the raised fill, as the desktop tab strip draws them. The same
strip is used in portrait, so both orientations match.
…ize tabs to titles

The header had three button sizes and the new-tab and quick-commands
buttons were bare 16pt glyphs in a 40x36 area with no extra touch room,
so "+" was hard to hit. Every header and tab-strip button now uses the
same 36pt rounded button with an 18pt icon and a 44pt touch area. Tabs
size to their titles (44 to 128pt) instead of a fixed 128pt, the strip
row is 44pt, terminal tabs get a terminal icon, and tabs expose the tab
role and selected state to screen readers.
@brennanb2025

brennanb2025 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Phone users reported crowded session tabs and difficulty tapping New tab. Fixed-width tabs wasted space, and separate button styles gave actions different sizes. This PR gives header and tab-strip actions one appearance with separate 44pt touch areas, fits tabs to their titles, and keeps long tab titles bounded.

Status: full review loop done; ready to merge on 99327db90c14b3e85e3ce6be98dfe43cbf2f791c, based on main. The approved 12pt gap between the session title and the landscape strip divider is preserved.

  • Review: the completed full review found and fixed overlapping button touch areas and a test component comparison. The narrow re-review of the main merge found no new issues: the four header/tab components are identical to the previously reviewed head, and their shared style differs only by the 12pt margin and its comment. The divider and gap stay outside the scrolling tabs; portrait has no new integration change. No new code fixes were needed, and no review finding remains deferred.
  • QA: the coordinator’s iOS Simulator run passed on this exact head, comparing main with the PR on iPhone SE and iPhone 17 Pro. SE landscape keeps the divider and the 12pt layout gap before the first tab. The 17 Pro landscape strip shows title-sized tabs without overlap at its start and halfway through scrolling; portrait keeps two rows. The tab-strip + and header More button have the same pressed fill. Main’s tabs measure 128pt each; on the PR, Claude measures 76–78pt, Shell 64pt, Notes.md 93pt, and long titles cap at 128pt. The coordinator also viewed and confirmed the SE landscape after-shot.
  • CI: PR Checks, including “PR checks passed,” and Mobile Checks passed on this exact head. The PR is out of draft with no merge conflicts or unresolved review threads.
  • Not verified: Android native touch input and accessibility font scaling were not exercised in this re-review. No tests or app rig were run on this Mac.

The approved shared button appearance, numeric sizes and existing horizontal tab strip are intended. No saved data, host messages or session actions changed.

For Brennan’s review: main-versus-branch screenshots cover the changed flows. The two visual judgment points are the shared button touch slots and title-sized tabs.

… top-bar tabs

A short, narrow window (a ~390x350 web window) is wider than tall, so it
counted as a landscape phone and moved the tabs into a top bar that has no
width left for them. Top-bar tabs now also need at least 568pt of width,
the narrowest landscape phone.
…o scrolled tabs never read as part of the title
…nb2025/mobile-session-header-buttons

# Conflicts:
#	mobile/src/session/mobile-session-frame-styles.ts
@brennanb2025
brennanb2025 marked this pull request as ready for review October 17, 2026 00:47
@brennanb2025
brennanb2025 marked this pull request as draft October 17, 2026 00:50
@brennanb2025
brennanb2025 marked this pull request as ready for review October 17, 2026 00:50
@brennanb2025
brennanb2025 marked this pull request as draft October 17, 2026 04:18
…ession-header-buttons

# Conflicts:
#	mobile/src/session/MobileSessionHeader.tsx
#	mobile/src/session/MobileSessionTabStrip.tsx
#	mobile/src/session/mobile-session-frame-styles.ts
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/mobile-landscape-session-tabs to main October 18, 2026 17:54
@brennanb2025
brennanb2025 marked this pull request as ready for review October 18, 2026 17:55
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: 7d7543e1-f624-4184-b426-a7ed6632abcf
📥 Commits

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

📒 Files selected for processing: 6
  • mobile/src/layout/host-sidebar-reveal.test.tsx
  • mobile/src/session/MobileSessionHeader.tsx
  • mobile/src/session/MobileSessionHeaderIconButton.tsx
  • mobile/src/session/MobileSessionTabStrip.tsx
  • mobile/src/session/QuickCommandsTabButton.tsx
  • mobile/src/session/mobile-session-frame-styles.ts

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

📝 Walkthrough

Session header controls, quick commands, and the new-tab control now use a shared button component. Session tabs expose accessibility labels and selection state, and unresolved terminal tabs display a terminal icon. Tab sizing and the sidebar test’s button lookup are also updated.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 99327

The mobile controls and title-sized tabs have no identified functional or test-workflow regression, so no concrete merge-blocking risk remains.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 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 summarizes the main changes: shared mobile session-header and tab-strip button styling, plus title-based tab sizing.
Description check Passed The description is mostly complete. It explains the user impact, implementation, rationale, visual changes, testing, scope, and checklist items. The linked issue section is only partial because the bu…
Full details: Description check

Explanation

The description is mostly complete. It explains the user impact, implementation, rationale, visual changes, testing, scope, and checklist items. The linked issue section is only partial because the button-style work has no linked GitHub issue, but tab sizing references #28472.

  • Fix all pre-merge checks with AI
✨ 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.

@brennanb2025
brennanb2025 merged commit 80e2c68 into main Oct 19, 2026
22 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/mobile-session-header-buttons branch October 19, 2026 05:21
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