Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): avoid nested dropdowns for single tools #15674

MergedStiensWout(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/15674/headmerged by juliusmarminge View on GitHub

Problem

A single mobile tool call shows nested dropdowns with duplicate headers, requiring two taps to reach its details.

Change

Render one visible tool call as the existing standalone row so one tap opens its details. Multiple calls keep their summary group. Tools without details have no disclosure, and live singleton rows preserve their label, identity, and expansion when a second tool arrives.

Scope and approval

Requested by Wout. This focused fix uses the shared iOS and Android renderer; it changes no server, contracts, or web behavior.

Verification

  • Focused mobile feed tests and mobile typecheck passed. Lint had zero errors and 28 preexisting warnings.
  • Built a compatible iOS client and checked one-tap open and second-tap close, multiple-call groups and individual details, and rows without details or a chevron on the Mac mini simulator.
  • Live singleton behavior and growth are covered by presenter tests; the native live transition was not verified.

Before

User recording, cropped and slowed to show the duplicate headers.

Before: duplicate tool headers

https://pub-b182a4071edc4521829926b34990540b.r2.dev/files/757f514d-79c1-4c93-88c0-35c0dc8c3e6e/mobile-single-dropdown-before.mp4

After

Mac mini iOS simulator, one tap opens details and the next tap collapses them.

After: one tap opens details and the next collapses them

https://pub-b182a4071edc4521829926b34990540b.r2.dev/files/4c55b936-55f1-4f4a-9369-611e72f1e7b9/mobile-single-dropdown-after.mp4

Implemented by claude-opus-5-5 in Claude Code. Prepared for Wout by gpt-6.1-sol in Codex.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 0be86ee

      Macroscope's review found this PR approvable — This is a focused mobile presentation fix that removes duplicate disclosure layers for singleton tool calls while preserving the existing grouped-tool behavior. The production changes are small, isolated, and accompanied by targeted tests for detail visibility and live-to-group transitions.

      Notes:

      • Diff unchanged. Approvability was decided on eligibility alone.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 862d70e1-d9f1-4aed-932f-df5010fc0f73
      📥 Commits

      Reviewing files that changed from the base of the PR and between 4ee6bfd50ef4a089440d5c3662db2298da9cc50e and 0be86eee5cc1adb93d67f1607ff364b970f82ccd.

      📒 Files selected for processing (4)
      • apps/mobile/src/features/threads/ThreadFeed.tsx
      • apps/mobile/src/features/threads/thread-work-log.tsx
      • apps/mobile/src/lib/threadActivity.test.ts
      • apps/mobile/src/lib/threadActivity.ts

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


      📝 Walkthrough

      Walkthrough

      Thread activity rendering now shows a lone non-reasoning activity as a row with group stand-in metadata, while multi-activity groups retain their toggle row. The work log displays the stand-in label and forwards its group ID so expanding the row also updates the group’s expanded state. Tests cover lone and grouped T3 calls.

      Changes

      Activity Rows

      Layer / File(s)Summary
      Emit lone activities as rows
      apps/mobile/src/lib/threadActivity.ts, apps/mobile/src/lib/threadActivity.test.ts
      A lone non-reasoning activity now appears as an activity row with group stand-in metadata. Grouped activities retain their toggle rows. Tests cover lone T3 calls, grouped output, and terminal activity status.
      Display and expand stand-in rows
      apps/mobile/src/features/threads/thread-work-log.tsx, apps/mobile/src/features/threads/ThreadFeed.tsx
      Work-log rows use the stand-in label and pass its group ID to the feed. The feed applies the row’s next expanded state to the group when a group ID is provided.

      Priority: ⬇️ Low

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Bug fix

      Sequence Diagram(s)

      sequenceDiagram
        participant ThreadActivity
        participant ThreadWorkLog
        participant ThreadFeed
        ThreadActivity->>ThreadWorkLog: Emit activity row with group stand-in metadata
        ThreadWorkLog->>ThreadFeed: Pass row ID, anchor key, and group ID
        ThreadFeed->>ThreadFeed: Update row and group expanded state

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 0be86

      No actionable issue remains in the supplied evidence; the change is mergeable after normal checks.

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly summarizes the main change: preventing nested dropdowns for single mobile tool calls.
      Description check✅ PassedThe description covers the problem, change, scope, verification, before-and-after evidence, and agent attribution. The scope section says the fix was requested by Wout but does not link to the triaged…
      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Comment `@coderabbitai help` to get the list of available commands.
    4. juliusmarminge added labelsmacroscope-review

    5. juliusmarminge merged thisd015325

    6. juliusmarminge closed this

Sign in to join this conversation.