Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): update tool summaries and chat transitions #8793

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/8793/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Mobile still rendered the old tool-call rows, making long turns difficult to scan. Expanding groups and opening the keyboard could move the timeline abruptly.

This ports compact tool summaries and expandable command details to mobile, preserves failure states, and adds running-row shimmer. The working timer moves into a glass pill beside the scroll-to-end control. Composer and disclosure layout changes animate together through the LegendList and keyboard-controller patches.

Main's web banner revert is preserved. The web change only shares command-label parsing with mobile.

Verified:

  • 105 focused mobile and web timeline tests passed.
  • Mobile and web typechecks, targeted lint, and formatting passed.
  • iOS Simulator: short and long threads, keyboard transitions, folded turns, and groups expanded then collapsed after scrolling.
  • Signed Release build installed and launched on an iPhone over Wi-Fi.
Grouped tool rows Mobile grouped tool summaries
Collapse after scrolling: before and after

Before the transition fix:

https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/16a3af1f12f6f5fb/collapse-before.mp4

After the transition fix:

https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/eeef4a84a82492cb/collapse-after.mp4

Both recordings use the same seeded thread. The clips preserve the original playback speed.


Note

Medium Risk Touches thread feed presentation, scroll/inset math, and keyboard-synced composer layout—high user-visible surface with regression risk on short threads and iOS keyboard transitions, but no auth or data-path changes.

Overview Mobile thread UX now matches web-style compact tool summaries instead of long per-call rows. Feed presentation groups tool work behind expandable toggles with shared summaries, failure hints, and shimmer on live runs; the in-list “Working for …” row is removed in favor of a floating glass pill above the composer that shows elapsed time and can merge with scroll-to-end on supported iOS.

Composer pill↔card morph is reworked: bottom-anchored layout transitions, clipped/animated corner radius, glass decoupled from touch targets, and the expanded toolbar stays mounted (hidden when collapsed) so height changes animate with the keyboard. Thread detail adjusts list bottom insets for the floating control and re-pins the feed after those inset changes; iOS keyboard sticky behavior stays enabled through hide transitions.

Shared client-runtime work-log helpers (presentation, commandProgramName) drive mobile grouping/collapse and replace duplicated parsing on web. LegendList disclosure uses layout/item-size settle logic plus enter/exit animations when expanding tool groups or turn folds.

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

Note

Replace standalone 'working' row with grouped tool rows and add floating working control

  • Overhauls thread activity presentation: contiguous tool activities are collapsed into grouped work-toggle/work-live rows with summaries, failure flags, and live/shimmer state instead of emitting a generic working row in threadActivity.ts
  • Extracts commandProgramName and presentation utilities (label normalization, tool grouping, lifecycle marker filtering) into new @t3tools/client-runtime subpath exports ./work-log/command-label and ./work-log/presentation
  • Adds FloatingWorkingControl in floating-working-control.tsx: an animated timer capsule and scroll-to-end button above the composer, replacing the previous glass-based scroll affordance in ThreadDetailScreen
  • Replaces LayoutAnimation with Reanimated transitions across ThreadWorkLog, ThreadFeed, and ThreadComposer; live rows show a motion-respecting shimmer that pauses when the app is backgrounded or screen is unfocused
  • Risk: ThreadFeedEntry no longer includes the working variant — any out-of-tree consumers expecting that row type will break; collapsedWorkLogHeight signature changed (removed baseFontSize param); MAX_VISIBLE_WORK_LOG_ENTRIES cap removed, so grouping logic now fully determines visibility
Macroscope summarized 11c6ed1.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 80d74e52-2558-4861-9d78-6833253c47ec

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Warning

      Your free Security trial is over. An organization admin can activate Security or dismiss this notice.


      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).

      This review would cost an estimated $10.96, which exceeds your per-review limit of $10.00.

      The top 3 files driving up this estimate:

      FileDiff SizeEstimate
      patches/@legendapp__list@3.3.5.patch65.72KB$3.29
      patches/react-native-keyboard-controller@1.21.13.patch44.23KB$2.21
      apps/mobile/src/features/threads/thread-work-log.tsx20.98KB$1.05

      Tip

      To get this pull request reviewed, you can:

      1. Comment @macroscope-app on this PR to request a manual review (monthly spend limits still apply).
      2. Exclude the file(s) above from review by adding a pattern to your .macroscope/ignore.md — note that creating this file replaces Macroscope's built-in default ignores rather than extending them.
      3. Raise your cost limit in your workspace billing settings.
      [Turn off this reminder going forward](https://app.macroscope.com/pingdotgg/settings#Personal)
    4. github-actions[bot](GitHub profile, opens in a new tab) added labels📱 Native Change

    5. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.3 KiB13.3 KiB+90 B (+0.7%)15.1 KiB✅
      CodexThread snapshot wire6.9 KiB6.9 KiB+4 B (+0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire6.4 KiB6.5 KiB+86 B (+1.3%)7.8 KiB✅
      CodexLive turn WebSocket decoded55.5 KiB55.6 KiB+88 B (+0.2%)66.4 KiB✅
      CodexLive turn messages911+2 (+22.2%)21✅
      ClaudeTotal thread wire13.3 KiB13.3 KiB+20 B (+0.1%)15.1 KiB✅
      ClaudeThread snapshot wire6.9 KiB6.9 KiB−3 B (−0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.4 KiB6.4 KiB+23 B (+0.3%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded56.4 KiB56.4 KiB+44 B (+0.1%)66.4 KiB✅
      ClaudeLive turn messages1011+1 (+10.0%)21✅

      Baseline: 2daff8c · PR result: 11c6ed1 · 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: 109.4 KiB
      • Claude decoded thread snapshot: 110.1 KiB

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

    6. Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

      Fix All in Cursor Bugbot Autofix is [ON](https://www.cursor.com/dashboard/bugbot), but a cloud agent failed to start. Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 11c6ed1948670ede80766b23a8cce87ce6103463. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -1368,5 +1486,18 @@
      1486+ const groupId = `work-group:${identity}`;
      1487+ const expanded = expandedWorkGroupIds.has(groupId);
      1488+ const latestInProgressActivity = activities.findLast(
      1489+ (activity) =>
      1490+ isWorking && activity.lifecycleStatus === "inProgress" && activity.turnId === unsettledTurnId,
      1491+ );
      1492+ const live = activeTail || latestInProgressActivity !== undefined;
      1493+ const latestActivity = activeTail
      1494+ ? activities.at(-1)!
      1495+ : (latestInProgressActivity ?? activities.at(-1)!);
      1496+ const summary = live
      1497+ ? liveToolActivitySummary(latestActivity)
      1498+ : activities.length === 1 && !activities[0]!.toolLike
      1499+ ? activities[0]!.workEntry.label
      1500+ : summarizeToolGroup(activities.map((activity) => activity.workEntry));
      13681501 result.push({
      13691502 type: "work-toggle",
      1370- id: `work-toggle:${groupId}`,
      1371- createdAt: entry.createdAt,
      1372- turnId: entry.turnId,
      1503+ id: `${live ? "work-live" : "work-toggle"}:${groupId}`,

      Live tool expand loses scroll anchor

      Medium Severity

      Running tool groups now use a work-live: row id while onToggleWorkGroup still only receives groupId and the disclosure path was not updated in this change. shouldRestoreVisibleContentPosition and disclosureEnteringEntryIds match entry.id against that anchor, so expanding a running group fails to pin the toggle and skips enter animations. Completing work also remounts the row when live flips the prefix.

      Additional Locations (2)
      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 11c6ed1948670ede80766b23a8cce87ce6103463. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -124,9 +149,16 @@
      149+ }));
      150+
      151+ // Clipping here keeps the expanded toolbar inside the glass while the
      152+ // bottom-anchored host owns the geometry transition.
      124153 return (
      125154 <Animated.View
      126155 className="shadow-[0_6px_28px] shadow-adaptive-black-a15-a35"
      127156 layout={props.animateLayout === false ? undefined : COMPOSER_LAYOUT_TRANSITION}
      128- style={{
      129- borderRadius: props.style.borderRadius,
      130- // Android versions before 9 do not support outset box shadows.
      131- elevation: Platform.OS === "android" && Platform.Version < 28 ? 10 : undefined,
      132- }}
      157+ style={[
      158+ animatedShapeStyle,
      159+ {
      160+ overflow: "hidden",
      161+ // Android versions before 9 do not support outset box shadows.
      162+ elevation: Platform.OS === "android" && Platform.Version < 28 ? 10 : undefined,
      163+ },
      164+ ]}

      Composer shadow clipped by overflow

      Low Severity

      overflow: hidden now sits on the same Animated.View that draws the composer shadow. That wrapper previously stayed unclipped so the shadow could extend past the rounded edge; clipping it removes the drop shadow on iOS.

      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 11c6ed1948670ede80766b23a8cce87ce6103463. Configure [here](https://www.cursor.com/dashboard/bugbot).
    7. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR broadly changes the default mobile thread timeline, composer transitions, keyboard/inset handling, and shared virtualized-list behavior, including a new floating working control and substantial production dependency patches. An unresolved comment also identifies a concrete scroll-anchor issue for live tool groups, so the change warrants human review.

      Not approved because:

      • Per-review cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility
      Review your spending limits in [Billing settings](https://app.macroscope.com/pingdotgg/settings/billing), or comment `@macroscope-app review this PR` to bypass the limit and review now. You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    8. juliusmarminge merged thisf15680b

    9. juliusmarminge closed this

Sign in to join this conversation.