Skip to content

[Bug]: Tapping Dynamic Island Live Activity restores last visited thread instead of target thread #18997

Closed

Description

@estevao

Before submitting

  • 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

  1. In T3 mobile, open Thread A, then navigate away to Thread B.
  2. Run a background task or agent turn in Thread A.
  3. Background the app or lock the screen so the Live Activity appears in the Dynamic Island.
  4. 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.

Impact

Minor bug or occasional failure

Version or commit

1.4.1

Environment

iOS 26.7.1

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bug
    needs-triage
    on Oct 13, 2026
  2. juliusmarminge commented on Oct 13, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    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.

  3. added
    accepted
    via-triage
    and removed
    needs-triage
    on Oct 13, 2026
  4. fixfon commented on Oct 13, 2026

    @fixfon
    Contributor

    Opened #19022 for this.

  5. juliusmarminge commented on Oct 20, 2026

    @juliusmarminge
    Member

    Fixed by 0f06d2715b in #19022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions