Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): browser address bar and Take control no longer hide under the header #34258

Mergedeimexdev(GitHub profile, opens in a new tab)merged 0 commits intomain fromrefs/pull/34258/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Problem

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)
Browser screen on main: only the header and page show; address bar and Take control are hidden behind the headerBrowser screen with the fix: address bar and "Agent has control / Take control" row show below the header

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. chatgpt-codex-connector[bot](GitHub profile, opens in a new tab)commented
      Codex Review Summary: ✅ Completed

      This comment shows the latest Codex review activity on this pull request.

      ReviewStatusCommitReview trigger
      📝 Code Review✅ Completed 2026-11-11T09:26:01.592865Z535007fPR opened
      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review" or "@codex security review".

      Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved at 535007f

      Macroscope'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).
    4. Explain Change →

      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.tsx
      BrowserPreviewScreen reads useContentTopInset() 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 to 53500

      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: Passed 4

      Check nameStatusExplanation
      Title checkPassedThe title clearly identifies the mobile browser layout fix and the affected controls.
      Description checkPassedThe 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 checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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

      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.

Sign in to join this conversation.