Skip to content

fix(mobile): keep session tab icons full size beside long titles - #31169

Merged
AmoabaKelvin merged 1 commit into
mainfrom
keep-mobile-tab-icons-full-size
Oct 20, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
keep-mobile-tab-icons-full-size

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6

ELI5

Each tab in the phone's session tab strip has a small icon (the agent's logo, or a terminal, file or browser glyph) before its title. When the title was long, the icon got squashed down to a dot. Now the icon keeps its size and the title is cut off with "…" instead.

What Changed

Before: on the phone's web page, a tab whose title didn't fit drew its icon 5–8pt wide instead of 13pt. Codex's logo looked like a small circle. Short titles were unaffected.

After: every tab icon is 13×13 whatever the title, and only the title gets shorter.

How: since #29222 a tab is as wide as its title, up to 128pt, so the icon and the title compete for the space left over. On the web page an <svg> in a flex row can shrink, and react-native-svg's flex: 0 turns into CSS flex: 0 1 0%, which shrinks too. So the browser took width from the icon before it truncated the title. The icon now sits in a tabIcon slot with flexShrink: 0.

Why

A slot around the icon covers every tab type at once: agent logos, which go through react-native-svg or Image, and lucide's terminal, file and browser glyphs. The alternative was giving each icon component a style prop for flexShrink, which touches MobileAgentIcon and every lucide call site for the same result. The native app already lays these icons out as non-shrinking, so the slot changes nothing there.

Linked Issue

Fixes STA-11380

Visual Proof

The tab strip's real styles and icons, rendered in WebKit (the engine iOS uses for the page), 430pt wide:

Before After
tab-icons-before.png tab-icons-after.png

Testing

Rendered the tab label row with the real styles and icons in headless WebKit and Chromium, then measured each icon. Before: 5.3–7.8pt wide in tabs with long titles. After: 13pt in every tab, in both engines. Not run on a phone; the page reaches phones with the next desktop release.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

No automated test: the shrinking only happens in a browser's flex layout, and the mobile unit tests don't do browser layout.

AI Disclosure

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

Mobile only, layout style only. No change to what the phone and desktop send each other, and nothing platform- or SSH-specific.

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 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)

On the over-the-air page a bare svg in a flex row shrinks before the
title's ellipsis does, squashing the agent icon to a dot.
@coderabbitai

coderabbitai Bot commented Oct 20, 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: 9bd50ab6-9362-4050-a5be-806a43d2d32a
📥 Commits

Reviewing files that changed from the base of the PR and between 98e7dbe and 94b6868.

📒 Files selected for processing: 2
  • mobile/src/session/MobileSessionTabStrip.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; 8 remain after this review.

📝 Walkthrough

The tab strip wraps each existing tab icon in a dedicated styled container. The container uses flexShrink: 0 to prevent the icon from shrinking when adjacent tab titles shrink. Icon selection and terminal-agent fallback behavior remain unchanged.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 94b68

The focused layout change appears safe to merge.

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. Analyzed 1 functions across 2 files. 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 describes the main change: preserving full-size mobile session tab icons beside long titles.
Description check Passed The description is complete and directly addresses the required sections. It explains the user-visible change, implementation, rationale, linked issue, visual proof, testing, scope, and checklist stat…
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.
Full details: Description check

Explanation

The description is complete and directly addresses the required sections. It explains the user-visible change, implementation, rationale, linked issue, visual proof, testing, scope, and checklist status.

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

@AmoabaKelvin
AmoabaKelvin merged commit 703b313 into main Oct 20, 2026
24 checks passed
@AmoabaKelvin
AmoabaKelvin deleted the keep-mobile-tab-icons-full-size branch October 20, 2026 17:48
registered2nd pushed a commit to registered2nd/orca that referenced this pull request Oct 20, 2026
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