[Bug]: iOS Live Activities fail for publish-only Tailscale environment #31534
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#
- Access a T3 environment from the iOS app using a saved Tailscale connection.
- On the host, run
t3 connect link --publish-onlyand complete authorization. - Start/restart T3 to provision the publish-only link.
- Run
t3 connect status: the environment link is provisioned and agent activity publishing is enabled (output below). - In the mobile app, open Settings → Notifications. Device Notifications is enabled.
- Turn on Live Activity Updates.
The intention is to use Tailscale for environment access and T3 Connect only for activity publishing, without a managed tunnel.
Expected behavior#
Live Activity Updates can be enabled for an environment already linked in publish-only mode, without requiring a managed tunnel. The CLI explicitly describes --publish-only as publishing agent activity with no managed tunnel, with Tailscale as an example of out-of-band access.
Actual behavior#
The app shows a dialog titled “Live Activities unavailable”:
“Could not obtain environment link proof: Invalid managed endpoint origin.”
Live Activity Updates remains off, despite the environment link being provisioned and agent activity publishing enabled.
Impact#
Minor bug or occasional failure
Version or commit#
Server/CLI: t3 v0.1.7; iOS app: 2.2.0
Environment#
iPhone with T3 Code mobile 2.2.0; environment accessed over Tailscale. Host CLI: t3 v0.1.7. Publish-only Connect link; no managed tunnel requested. Exact iOS version not recorded.
Logs or stack traces#
t3 connect status
T3 Connect
Exposure: enabled
Authorization: stored credential
Environment link: provisioned
Relay: https://relay.t3.codes
Publish agent activity: enabled
Relay client: not installed
Screenshots, recordings, or supporting files#
f92ffff5-ed20-4d72-92d5-f980d0b000af-3f9ed1b4-c8f3-45bc-af2e-a50a006f036d.jpg
Workaround#
No verified workaround preserving the publish-only/Tailscale setup.
Possible cause (source inspection only; not confirmed against the installed app): enabling Live Activities calls linkEnvironmentToCloudWithPreference, which requests managedTunnelsEnabled: true and obtains a link proof through the saved connection URL. The server validates loopback origins for this proof. This may explain the origin error over Tailscale instead of reusing the existing publish-only link.
Source references at 4b87a45770d24a47f7e6bc40e3f19011e41c7724:
- CLI: https://github.com/pingdotgg/t3code/blob/4b87a45770d24a47f7e6bc40e3f19011e41c7724/apps/server/src/cli/connect.ts#L631-L634
- Mobile preference update: https://github.com/pingdotgg/t3code/blob/4b87a45770d24a47f7e6bc40e3f19011e41c7724/apps/mobile/src/features/agent-awareness/liveActivityPreferences.ts
- Mobile linking: https://github.com/pingdotgg/t3code/blob/4b87a45770d24a47f7e6bc40e3f19011e41c7724/apps/mobile/src/features/cloud/linkEnvironment.ts#L174-L215
- Origin validation: https://github.com/pingdotgg/t3code/blob/4b87a45770d24a47f7e6bc40e3f19011e41c7724/apps/server/src/cloud/linkChecks.ts#L82-L99
grahamcracker1234(GitHub profile, opens in a new tab) added labelsbug
grahamcracker1234(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge closed this
Sign in to join this conversation.
This is the same problem as #27412, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.