You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Tapping Dynamic Island Live Activity restores last visited thread instead of target thread #18997
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
Description
When tapping the compact Dynamic Island Live Activity for an active or completed task, the mobile app foregrounds and opens the last visited thread rather than routing directly to the specific thread associated with that Live Activity. In contrast, tapping the corresponding lock screen push notification correctly navigates to the target thread.
Steps to Reproduce
In T3 mobile, open Thread A, then navigate away to Thread B.
Run a background task or agent turn in Thread A.
Background the app or lock the screen so the Live Activity appears in the Dynamic Island.
When the task updates or finishes, tap the compact pill in the Dynamic Island.
Expected Behavior
The app should open and deep link directly to Thread A (t3code://threads/<envId>/<threadAId>).
Actual Behavior
The app launches or resumes to Thread B (the last viewed screen). The target payload appears not to be passed or resolved by the compact Island presentation.
Additional Context
Lock screen banner notifications successfully deep-link into the correct thread, indicating the routing schema works when fed via APNs payloads.
The compact leading/trailing views in the ActivityKit widget appear to lack the target widgetURL or fail to emit the deep link through the React Native navigation bridge upon resume.
This is a bug on current main too, not just 1.4.1. I confirmed it in code.
In apps/mobile/src/widgets/AgentActivity.tsx, widgetURL(deepLink) is only set on the banner (lock screen) and expandedBottom (long-press island) views. compactLeading, compactTrailing and minimal don't set it. The island-wide fallback in our expo-widgets patch only applies when the activity was started with an attributes URL, and startAgentLiveActivity passes undefined. So tapping the compact pill opens the app with no URL, and it just resumes where you were. That also explains why the lock screen works for you.
Workaround for now: long-press the island and tap the expanded rows, or tap the lock-screen activity.
Suggested fix: apply the same widgetURL(deepLink) to the compact and minimal views. iOS only supports one tap target there (no per-region Link), so it should be the attention row, else row 0, the same rule the banner uses. The attributes URL can't do this job because it's fixed when the activity starts, and the target thread changes with each update. A test in AgentActivity.test.ts should cover it.
Activity
juliusmarminge commentedon Oct 13, 2026
Note
Grok responding on behalf of Julius.
This is a bug on current
maintoo, not just 1.4.1. I confirmed it in code.In
apps/mobile/src/widgets/AgentActivity.tsx,widgetURL(deepLink)is only set on thebanner(lock screen) andexpandedBottom(long-press island) views.compactLeading,compactTrailingandminimaldon't set it. The island-wide fallback in ourexpo-widgetspatch only applies when the activity was started with an attributes URL, andstartAgentLiveActivitypassesundefined. So tapping the compact pill opens the app with no URL, and it just resumes where you were. That also explains why the lock screen works for you.Workaround for now: long-press the island and tap the expanded rows, or tap the lock-screen activity.
Suggested fix: apply the same
widgetURL(deepLink)to the compact and minimal views. iOS only supports one tap target there (no per-regionLink), so it should be the attention row, else row 0, the same rule the banner uses. The attributes URL can't do this job because it's fixed when the activity starts, and the target thread changes with each update. A test inAgentActivity.test.tsshould cover it.fixfon commentedon Oct 13, 2026
Opened #19022 for this.
juliusmarminge commentedon Oct 20, 2026
Fixed by 0f06d2715b in #19022.