Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): compact Dynamic Island opens the Live Activity's thread #19022

Mergedfixfon(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/19022/headmerged by juliusmarminge View on GitHub

Compact and minimal Dynamic Island regions currently have no thread URL, so taps can return to the last visited thread. This applies the banner's existing validated attention/lead-thread URL to compact leading, compact trailing, and both minimal variants. The target is recomputed from each content update.

Addresses #18997. The implementation keeps the existing modifier-list pattern and removes the claim that per-region modifiers are the only supported native approach.

Validation: 81 existing tests across six focused widget, awareness, navigation and showcase suites passed, including all 13 baseline AgentActivity.test.ts cases. Mobile typecheck, scoped lint, formatting and diff checks passed. The original two added serialized-prop tests were removed: they cannot prove native activation. This PR adds zero new tests. One independent review round with Claude and Codex found no confirmed code defects; both retained the native evidence gate.

Readiness is blocked on native tap evidence. The Device tool reports “Agent device access is turned off for this environment.” No before/after native screenshots or tap recording could be captured. Linux tests and source inspection do not establish whether region View.widgetURL modifiers reach system activation; Expo's separate Dynamic Island-level URL currently comes from static start attributes. No dependency patch was added for an unverified platform assumption. See Expo Live Activity documentation.

On an iPhone with Dynamic Island, verify compact leading, compact trailing, and both minimal variants open the attention thread, or the lead thread when none needs attention. Repeat after changing the activity target from thread A to B while the app last visited another thread, then check banner and expanded taps. Capture matching before/after evidence and a tap recording before treating this as ready. iOS, Android, Electron desktop, macOS and Windows were not run; Android's separate notification path and web/desktop are outside this widget change.

Original work by @fixfon in #19022. Maintainer takeover: Codex gpt-6-astra tests; Codex gpt-6.1-sol implementation; Claude claude-opus-5-5 and Codex gpt-6-sol reviews, through T3 Code.

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

    2. Approvability

      Verdict: Approved at ff676c4

      Macroscope's review found this PR approvable — This is a small, self-contained mobile bug fix that applies the existing validated thread deep link to three Dynamic Island regions and adds focused coverage. It does not alter schemas, defaults, infrastructure, or sensitive/static-analysis configuration.

      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 →

      Warning

      Review limit reached

      Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.

      Next included review available in 6 minutes.

      Check out review usage here.

      View limit details

      Limit details: You’ve used all 10 included reviews currently available.

      Learn how review limits work.

      Review configuration:

      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 294bdbe2-c863-47c9-a324-bf22bd926454
      📥 Commits

      Reviewing files that changed from the base of the PR and between eae3fb6e7f6c9715265c18708a2f2ff6140a9967 and a6b4b4f62e1d3e6b991ee8f4e20f4833191f538f.

      📒 Files selected for processing: 1
      • apps/mobile/src/widgets/AgentActivity.tsx

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: b4a6bf16-d3a5-4ddb-b149-a703624f804f
      📥 Commits

      Reviewing files that changed from the base of the PR and between 823d9bc14817ce4332944f32198d1e67d35021c7 and eae3fb6e7f6c9715265c18708a2f2ff6140a9967.

      📒 Files selected for processing: 2
      • apps/mobile/src/widgets/AgentActivity.test.ts
      • apps/mobile/src/widgets/AgentActivity.tsx

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

      📝 Walkthrough

      Compact and minimal Live Activity presentations now receive a widgetURL for the selected row. Tests cover link selection when a row needs attention and when no row needs attention.

      Changes: Live Activity deep links

      Layer / File(s)Summary
      Pass deep links to compact and minimal regions
      apps/mobile/src/widgets/AgentActivity.tsx, apps/mobile/src/widgets/AgentActivity.test.ts
      Compact leading and trailing regions and the minimal presentation receive a shared widgetURL modifier. Tests check that these regions link to the attention-needed row, or to the lead row when no row needs attention.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~8 minutes

      Change: Bug fix · Severity of issue fixed: Low

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to eae3f

      The compact and minimal regions now carry the selected thread link. No concrete issue remains that should block merging after normal checks.

      Security architecture risk: ⚪ Minimal · up to eae3f

      The added tap targets reuse the existing thread link and navigation path. The reviewed change does not introduce a new destination, permission, or access mechanism.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The incremental exposure is additional activation surfaces for the already selected activity destination. Compared with the existing banner and expanded targets, the change does not add a destination source, cross-service path, or privileged operation.

      Trust Boundaries and Controls

      • observed — The new tap targets continue through the existing application linking configuration and link filter into the environment/thread route. They do not introduce a separate handler or bypass the existing client-side identity path. These checks do not establish backend authorization coverage.
      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Linked Issues checkPassedFor directly linked issue [#18997], AgentActivity.tsx selects attentionRow ?? row0, converts the validated row path to t3code://threads/<envId>/<threadId>, and applies that URL to `compactLeadin…
      Out of Scope Changes checkPassedThe whole-PR diff changes only apps/mobile/src/widgets/AgentActivity.tsx and its focused test file. The production changes add the linked target to the three Dynamic Island regions. The helper chang…
      Title checkPassedThe title clearly identifies the mobile fix and the primary behavior change: opening the Live Activity thread from the compact Dynamic Island.
      Description checkPassedThe description covers the problem, implementation, linked issue, verification results, limitations, and required native-device follow-up. It does not use the template headings or provide UI evidence,…
      Full details: Linked Issues check

      Explanation

      For directly linked issue [#18997], AgentActivity.tsx selects attentionRow ?? row0, converts the validated row path to t3code://threads/&lt;envId&gt;/&lt;threadId&gt;, and applies that URL to compactLeading, compactTrailing, and minimal. The existing banner and expanded-bottom targets remain aligned. AgentActivity.test.ts covers the attention-row target and the lead-row fallback for all three regions.

      Full details: Out of Scope Changes check

      Explanation

      The whole-PR diff changes only apps/mobile/src/widgets/AgentActivity.tsx and its focused test file. The production changes add the linked target to the three Dynamic Island regions. The helper changes and tests directly support issue [#18997]. No unrelated behavior or files are present.

      Full details: Description check

      Explanation

      The description covers the problem, implementation, linked issue, verification results, limitations, and required native-device follow-up. It does not use the template headings or provide UI evidence, but it explicitly documents both limitations and the blocked readiness status.

      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. juliusmarminge assignedjuliusmarminge

    5. Taking over this one. I will merge current main, keep the validated thread target, review the native widget path, and push the focused rebuild here. Native compact/minimal tap verification remains required because Device access is disabled in this environment. I will not merge it.

    6. juliusmarminge merged this0f06d27

    7. juliusmarminge closed this

Sign in to join this conversation.