Skip to content

[Bug]: iOS: opening the bare t3code:// URL navigates to Home and drops the current thread #11950

Description

@Pivii

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

  1. Open a thread in T3 Code on iOS and start typing a draft.
  2. Send the app to the background.
  3. In Safari, open t3code:// and confirm "Open in T3 Code".

Expected behavior

T3 Code comes back to the foreground on the same thread. That is what a bare URL scheme does for Claude (claude://), ChatGPT, GitHub or Slack.

Actual behavior

T3 Code navigates to Home. t3code:/// behaves the same.

Impact

Minor bug or occasional failure

Voice dictation keyboards on iOS record in their own app, then send the user back to the app they were typing in by opening that app's URL. In T3 Code the user lands on Home after every dictated prompt and has to find the thread again. For context, Wispr Flow does not return to T3 Code at all, and Dictus, which I build, returns to Home.

Cause, from reading the source: apps/mobile/src/App.tsx registers t3code:// as a linking prefix. An empty path resolves to the route declared with linking: "", which is Home.

Suggested fix: extend the existing filter. This is the same idea as the expo-sharing exclusion already there: a URL that only wakes the app.

filter: (url: string) =>
  !url.includes("expo-development-client") &&
  !url.includes("://expo-sharing") &&
  !/^t3code(-dev|-preview)?:\/*$/.test(url),

iOS still brings the app to the foreground; only the navigation is skipped.

Live Activities are unaffected. apps/mobile/src/widgets/AgentActivity.tsx builds t3code://<path> and sets no URL when there is no path. Checked on device: with several Live Activities pointing at different threads, each one still opens its own thread. Not checked: the link used by the subscription usage widget.

Version or commit

T3 Code 1.1.0 (App Store), source read at 3efdcc529

Environment

iPhone 15 Pro Max, iOS 27.0

Logs or stack traces

No response

Screenshots, recordings, or supporting files

Screen recording to follow in a comment.

Workaround

None.

Activity

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

    acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions