fix(mobile): browser address bar and Take control no longer hide under the header #34258
main fromrefs/pull/34258/head·merged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubProblem#
On iOS, opening the remote browser from a thread shows the page, but the address bar and the "Agent has control" / Take control row are missing, so there's no way to take over from the agent. They are still rendered: the Browser screen lays out from the top of the window, so both rows sit behind the status bar and the solid navigation bar. On an iPhone 17 Pro Max simulator the address bar landed at y 0–39pt and Take control at y 52–95pt, while the bar ends at y 116pt.
Change#
Pad the Browser screen's root view with useContentTopInset(), the same top inset other iOS screens with a native bar already apply (the terminal and file web preview, for example). It returns 0 on Android, where the bar is drawn in flow, so Android is unchanged.
Verification#
Reproduced on main in an iPhone 17 Pro Max (iOS 26.3) simulator against a dev server, with a Claude Haiku turn opening https://example.com through preview_open, then applied the fix and opened the same tab again. vp run check:changed passes.
Before (main) | After (this PR) |
|---|---|
![]() | ![]() |
Not checked on iPad or a physical device.
Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (via T3 Code).
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved at
535007fMacroscope's review found this PR approvable — The browser preview now applies the existing iOS content inset so its address bar and controls sit below the header; Android spacing remains unchanged. The change is limited to layout and leaves browser behavior and control permissions untouched.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
The browser preview screen now applies the content top inset to its root view. It retains the existing bottom safe-area padding.
Changes: Browser preview inset
Layer / File(s) Summary Read and apply the content inset
apps/mobile/src/features/browser/BrowserPreviewRouteScreen.tsxBrowserPreviewScreenreadsuseContentTopInset()and applies the result as root top padding. The existing bottom safe-area padding remains.Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Possibly related issues
pingdotgg/t3code#34090— Reports Browser controls rendered beneath an opaque header on iOS. This change adds top inset padding to the Browser screen root.
Suggested reviewers:
maria-rcks
Merge Risk:
Minimal · up to53500-
This fixes the iOS layout where the browser address bar and Take control row sat under the header. The change is small and local, and no merge-blocking risk remains.
Pre-merge checks:
4-
Check name Status Explanation Title check The title clearly identifies the mobile browser layout fix and the affected controls. Description check The description explains the problem, implementation, verification steps, screenshots, and untested environments. It is mostly complete and directly matches the changeset, although it does not include… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Description check
-
Explanation
The description explains the problem, implementation, verification steps, screenshots, and untested environments. It is mostly complete and directly matches the changeset, although it does not include a separate Scope and approval section.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: e2a7814
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9352b87a-5673-4f70-b991-32a5c0eadd71
Commits-
Reviewing files that changed from the base of the PR and between e2a781477afd2aea1741f720afa9067294e7a1b7 and 535007f520ea15d76e544255998f02031a6a70db.
Files selected for processing: 1-
apps/mobile/src/features/browser/BrowserPreviewRouteScreen.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
-
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
535007fℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.