fix(mobile): compact Dynamic Island opens the Live Activity's thread #19022
main fromrefs/pull/19022/head·merged by juliusmarminge View on GitHubCompact 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
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Approvability#
Verdict: Approved at
ff676c4Macroscope'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).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.
View limit details
-
Limit details: You’ve used all 10 included reviews currently available.
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.tsapps/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
widgetURLfor 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.tsCompact leading and trailing regions and the minimal presentation receive a shared widgetURLmodifier. 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:
4-
Check name Status Explanation Linked Issues check For directly linked issue [ #18997],AgentActivity.tsxselectsattentionRow ?? row0, converts the validated row path tot3code://threads/<envId>/<threadId>, and applies that URL to `compactLeadin…Out of Scope Changes check The whole-PR diff changes only apps/mobile/src/widgets/AgentActivity.tsxand its focused test file. The production changes add the linked target to the three Dynamic Island regions. The helper chang…Title check The title clearly identifies the mobile fix and the primary behavior change: opening the Live Activity thread from the compact Dynamic Island. Description check 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,… Full details: Linked Issues check
-
Explanation
For directly linked issue [
#18997],AgentActivity.tsxselectsattentionRow ?? row0, converts the validated row path tot3code://threads/<envId>/<threadId>, and applies that URL tocompactLeading,compactTrailing, andminimal. The existing banner and expanded-bottom targets remain aligned.AgentActivity.test.tscovers 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.tsxand 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
-
juliusmarminge assignedjuliusmarminge
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.
juliusmarminge merged this0f06d27
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes