fix(mobile): avoid nested dropdowns for single tools #15674
main fromrefs/pull/15674/head·merged by juliusmarminge View on GitHubProblem#
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.

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

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
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
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.tsxapps/mobile/src/features/threads/thread-work-log.tsxapps/mobile/src/lib/threadActivity.test.tsapps/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.tsA 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.tsxWork-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 stateSuggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
0be86No actionable issue remains in the supplied evidence; the change is mergeable after normal checks.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ 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 3 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold. ✅ Passed checks (4 passed)
Check name Status Explanation 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. Title check ✅ Passed The title clearly summarizes the main change: preventing nested dropdowns for single mobile tool calls. Description check ✅ Passed The 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.juliusmarminge added labelsmacroscope-review
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged thisd015325
juliusmarminge closed this
Sign in to join this conversation.
Approvability#
Verdict: Approved at
0be86eeMacroscope'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).