Skip to content

iOS app keeps using a legacy LAN pairing without filesystem:read while a full-grant T3 Connect route exists, so host images never load #31772

In review

Description

@a-Fig

What happened

Agents on my Windows host embed screenshots in chat. On iPhone the images never load. I had paired the phone with a one-time link over LAN back on 0.0.45, then added the same host through T3 Connect, expecting that to fix it. It didn't.

Diagnosis

The host has two live iOS sessions for this phone:

  • one-time-token / bearer-access-token, paired 2026-10-09 on 0.0.45 over LAN, with only the pre-split grant: ["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]
  • cloud-connect / dpop-access-token sessions minted tonight, with the full standard grant, including filesystem:read

The app (iOS 2.1.0) still talks to the host over the legacy LAN route. The legacy session's last_connected_at is 2026-11-06T02:01:55Z, and the server trace has a failed ws.rpc.assets.createUrl one second later:

EnvironmentAuthorizationError: The authenticated token is missing required scope: filesystem:read.

Twelve such failures were logged across the evening. The T3 Connect route, which would succeed, is never used for these requests.

In source (main @ c52df24), packages/client-runtime/src/connection/routes.ts orders an environment's routes only by network kind (ROUTE_KIND_RANK: loopback 0, lan 1, ... relay 5). Nothing looks at what each route's session grants. So a narrow legacy bearer route on LAN always shadows a relay route with a full grant. Adding T3 Connect looks like it should fix permissions, but it changes nothing while the old route can connect. permissionUpdateNotice.ts shows its "pair again" dialog only once per environment, so after it is dismissed nothing explains why images, file browsing and similar features stay unavailable.

Not the same as #17310: there the cloud-connect session keeps the old grant. Here the cloud-connect grant is correct but unused.

Steps to reproduce

  1. On a pre-split host (0.0.45), pair the iOS app with a one-time link over LAN.
  2. Update the host to 0.1.x. Dismiss the "Permissions have changed" dialog if it appears.
  3. Add the same host to the iOS app through T3 Connect, and confirm the host mints a cloud-connect session that includes filesystem:read.
  4. While on the same LAN, have an agent embed a host-path image (![x](C:\...\shot.png)) in a thread.
  5. The image shows as unavailable. The server logs assets.createUrl failing with "missing required scope: filesystem:read" from the legacy bearer session.

Expected: the app uses a route whose session grants the scope (or prefers the route with the broader or newer grant), or it clearly tells the user that the legacy route is limiting this environment and offers to remove it.

Version

Host 0.1.7 (Windows desktop app). iOS app 2.1.0.

Environment

Windows 11 x64 host, iPhone on the same LAN plus T3 Connect. Claude Code with Opus 5.5.

Evidence

auth_sessions (host statev2.sqlite, redacted)
one-time-token  bearer-access-token  [5 legacy scopes, no filesystem:read]  iOS 2.1.0  last_connected 2026-11-06T02:01:55Z
cloud-connect   dpop-access-token    [16 scopes incl. filesystem:read]      iOS        issued 2026-11-06T00:20:36Z

server.trace.ndjson
ws.rpc.assets.createUrl  2026-11-06T02:01:56Z  Failure: EnvironmentAuthorizationError: The authenticated token is missing required scope: filesystem:read.

Related issues

#17310 (T3 Connect sessions keep the pre-split grant; here the T3 Connect grant is correct). #17014 and #17591 (problems with multiple routes and logins, but about expiry and revocation, not mismatched grants).

Fix applied or workaround

Remove the legacy LAN route for this host in the iOS app (or revoke the old "T3 Code Mobile" session on the host), so the app connects over T3 Connect.

Filed by

Claude Code (Opus 5.5, claude-opus-5-5) via the T3 Code triage playbook.

Activity

  1. ViaxCo commented on Nov 9, 2026

    @ViaxCo
    Contributor

    Same failure on Android, with a different setup: the phone connects over Tailscale (not LAN), and the image shows as blank space (not "unavailable").

    Setup

    • Host: macOS desktop app, 0.1.8-nightly.20261109.4399.
    • Phone: Samsung S23+, T3 Code Preview (APP_VARIANT=preview), local build of v0.1.8-nightly.20261109.4399.
    • The phone reaches the host directly over Tailscale (a 100.x address, port 3773).

    How the limited login came about
    The Preview app paired with a one-time code from t3 auth pairing create --scope orchestration:read --scope orchestration:operate. At pairing, the app showed the "permissions have changed" notice, and the user dismissed it.

    What happened
    An agent embedded host-path images in a reply (![x](/tmp/dp/a7-chat-relaunch.png)). The files exist on the host. On the phone, each image is a large empty space with no error text. At that time, the server trace has repeated failures:

    ws.rpc.assets.createUrl  Failure
    EnvironmentAuthorizationError: The authenticated token is missing required scope: filesystem:read.
    

    The phone's session in auth_sessions had only ["orchestration:read","orchestration:operate"], and its last connection matched the failures. The host also had T3 Connect sessions for this phone with the full grant. I could not confirm whether they belong to the Preview app or to the Play Store app, so I can't say that this is the same route problem as above.

    Workaround
    Revoke the limited session (t3 auth session revoke <id>) and pair again with a code that has the default scopes.

    Suggestion
    On mobile, an image that the session cannot read shows as a blank box. It should show an "unavailable" state with the reason, so users can see that a permission is missing.

    Screenshot (phone, Preview app)

    Image

    Reported through T3 Code triage by Claude Code (Opus 5.5, claude-opus-5-5).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions