Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): size expanded tool groups correctly #9359

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/9359/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Expanding a tool call could leave a blank band at the bottom of its group once the group became scrollable. The outer container grew, but the inner list retained its previous height through the native mask wrapper.

Give the inner list the group's current height explicitly. This is a mobile-only layout fix; web, desktop, providers, and wire contracts are unchanged.

Verification

  • Reproduced with a six-call group on iPhone 17 Pro, iOS 26.5 Simulator. Verified expansion past the scroll threshold, scrolling details, and collapse after the fix.
  • 69 focused layout and scroll-follow tests passed.
  • Mobile typecheck, formatting, and diff checks passed. Targeted lint has only existing warnings.

Before and after

BeforeAfter

Simulator recording

https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/59999bd4c10e0085/verification.mp4

Prepared with the Codex harness in T3 Code.


Note

Low Risk Narrow mobile UI layout fix for list viewport sizing inside MaskedView; no auth, data, or backend impact.

Overview Fixes a blank band at the bottom of scrollable tool-call groups on mobile when expanding a row or when new calls grow the group.

The grouped work log list inside MaskedView no longer relies on StyleSheet.absoluteFill alone. It now also sets height to the group's computed viewport height (Math.min(contentHeight, WORK_GROUP_MAX_HEIGHT)), because the mask's native wrapper can keep stale absolute-fill bounds after the outer container resizes.

Mobile-only layout change in thread-work-log.tsx; no API or shared contract changes.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d8e8e490bfbb5421e0556ef440efb4daa2270f88. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix expanded tool group sizing in ThreadWorkGroupList

The masked list in thread-work-log.tsx now uses an explicit height matching the current group height instead of relying solely on absolute-fill bounds. This compensates for a lag in the MaskedView native host during resizing.

Macroscope summarized d8e8e49.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.8 KiB13.7 KiB−7 B (−0.0%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB−2 B (−0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.7 KiB6.7 KiB−5 B (−0.1%)7.8 KiB✅
      CodexLive turn WebSocket decoded58.5 KiB58.5 KiB0 B (0.0%)66.4 KiB✅
      CodexLive turn messages10100 (0.0%)21✅
      ClaudeTotal thread wire13.6 KiB13.6 KiB−1 B (−0.0%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB+4 B (+0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.6 KiB6.6 KiB−5 B (−0.1%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.9 KiB57.9 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages10100 (0.0%)21✅

      Baseline: 854541a · PR result: d8e8e49 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. Approvability

      Verdict: Approved at d8e8e49

      Macroscope's review found this PR approvable — This is a four-line mobile-only layout fix that keeps the masked work-log list synchronized with its existing computed group height. Its scope is self-contained, with no API, backend, security, billing, default, or static-analysis changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this24799de

    5. juliusmarminge closed this

Sign in to join this conversation.