Server update buttons silently do nothing for connections paired before the environment:maintain split #17034
What happened#
After updating the client on my macbook, I got the notification to update the server, but clicking it does nothing and the server seems to be out of date. Installing the latest nightly after a new update (2787) didn't fix it. My server is stuck at 2761.
The macOS desktop app (2787) connects to a remote Linux server (2761) that runs as the systemd background service. There are two update entry points, and neither works:
- The composer banner "Server update available…" shows an Update button that is disabled and does not react to clicks.
- Settings → Connections → "Update all" is enabled and reacts to the click, but does nothing. There is no toast, no error and no progress.
There is no indication of why. The server's 2752 → 2761 update, triggered from the same Mac the day before, worked.
Diagnosis#
The client blocks the update because the connection's session lacks environment:maintain. That is intended. The bug is that the UI does not say so: one button is disabled with no explanation, and the other is enabled but does nothing.
- The Mac's saved connection uses a bearer session paired on 2026-09-28 by 0.0.43-nightly.20260927.2344, before #9786 split out the granular permissions. The server's
auth_sessionsrow for it has these scopes:["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]. The row is labelled "MacBook Air", client version 2787, and itslast_connected_atmatches the websocket that carried the clicks. - 28ce9d1c (#9786) is in v0.0.46-nightly.20261007.2761 and not in v0.0.46-nightly.20261006.2752. Since 2761,
/api/auth/sessionreturnspermissionsequal to the stored scopes, sosessionGrantsScope(session, "environment:maintain")(packages/contracts/src/auth.ts:181-192) takes thepermissionsbranch at:186and returns false. The legacyorchestration:operate → environment:maintainfallback only applies whenpermissionsis absent. This is why the 2752 → 2761 update worked and every update after it does not. - Composer banner / per-row button (
apps/web/src/components/ServerUpdateAction.tsx):canUpdate = canUpdateServer(sessionState)at:226, thendisabled={manualCommand === null && !canUpdate}at:333.manualCommandis null becauseselfUpdate === "boot-service". The button is greyed out with no reason given. - "Update all":
savedServerUpdateTargets(apps/web/src/components/settings/ConnectionsSettings.tsx:2148-2181) filters on version mismatch, enabled, connected, not desktop-local and a non-nullselfUpdate, but not on the session's permissions.ServerUpdatesAction(ServerUpdateAction.tsx:125-159) therefore counts the server as eligible and keeps the button enabled. On click,useServerUpdate(:70-76) runsif (!canUpdateServer(...) || pending) return;before callingserver.updateServer, so nothing is sent and nothing is shown. - Server side: nothing reaches it. The server would also reject the call, since
RpcAuthorization.ts:77-79requiresenvironment:maintainforserver.updateServerandserver.updateServerWithProgress. The background service, launcher and runtime download were not involved. Runningt3 updateby hand on the server succeeded right away.
PermissionUpdateNotice.tsx shows a one-time "Permissions have changed for …" toast for legacy-only sessions. Its dismissal is stored in localStorage, and after that the update UI gives no hint that re-pairing is needed.
The same code is unchanged on main as of 2026-10-08. ServerUpdateAction.tsx was last touched by 365aa879 (#10298).
Relevant files at the 2787 tag:
apps/web/src/components/ServerUpdateAction.tsxapps/web/src/components/settings/ConnectionsSettings.tsxpackages/contracts/src/auth.ts
Steps to reproduce#
- Pair a client with a remote server on a build from before #9786 (for example 0.0.43 nightly), using a one-time pairing link (bearer session). The session gets the old five-scope set.
- Update the server to a build that includes #9786 (2761 or later) and the client to a newer build, so the client shows "Server update available".
- Composer banner: the Update button is disabled and gives no reason.
- Settings → Connections: Update all is enabled. Click it. Nothing happens, no toast appears, and the server trace shows no
ws.rpc.server.updateServer*span. The only traffic isserver.reportClientActivityfrom the click.
Expected: either the session can still update its server, or both buttons explain that the connection needs re-pairing for environment:maintain. "Update all" should not count targets it will skip, and should not skip them silently.
Version#
Client: 0.0.46-nightly.20261007.2787 (macOS desktop). Server: 0.0.46-nightly.20261007.2761, systemd user service with launcher 0.0.46-nightly.20261003.2610.
Environment#
Server: CachyOS Linux x64 (kernel 7.2), Node v26.8.2, systemd user service. Client: macOS desktop app (Electron 44.4.2) over a direct Tailscale route.
Evidence#
# Clicks at about 10:12:33-38 JST: server trace shows only activity pings on the open /ws, and no update RPC
10:12:33 ws.rpc.server.reportClientActivity {"rpc.transport":"websocket","rpc.method":"server.reportClientActivity"}
10:12:34 ws.rpc.server.reportClientActivity ...
10:12:38 ws.rpc.server.reportClientActivity ...
$ grep -c -E 'updateServer|self_update|SelfUpdate' server.trace.ndjson* # all retained files
0
# Session the Mac is using (auth_sessions, read-only)
subject=one-time-token method=bearer-access-token label="MacBook Air" surface=desktop
client_app_version=0.0.46-nightly.20261007.2787 issued_at=2026-09-28T10:46:07Z last_connected_at=2026-10-08T01:05:03Z
scopes=["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]
# The /api/auth/session request from 2787 at 10:05:03 went over the direct Tailscale route with a bearer header (no DPoP)
http.server GET /api/auth/session host=<tailnet-host>.ts.net:3773 ua=T3Code(Nightly)/0.0.46-nightly.20261007.2787
# Last successful UI-driven update (server was 2752, before #9786)
[15:59:17.731] INFO: Server update prepared; handing off to the service launcher.
targetVersion: '0.0.46-nightly.20261007.2761'
Related issues#
- #13072: Tailscale-paired remote where "every so often the update server option in the local t3-code UI is unable to update the server". This is likely the same mechanism for any pre-#9786 pairing, but that issue is mainly about connections dropping and needing re-pairing, so this one is filed separately.
- #16804: the same class of problem (sessions missing a newly split permission,
providers:manage), but on mobile and for provider auth. - #15835: update guidance hidden for incompatible environments. That is a different gate.
Fix applied or workaround#
Ran npx t3@nightly update --yes on the server, which moved it to 0.0.46-nightly.20261008.2801 and restarted the service cleanly. The Mac was deliberately left on its old pairing so the bug can still be reproduced on the next version mismatch. The permanent workaround is to re-pair the connection with a fresh link (t3 auth pairing create / t3 pair), which issues AuthStandardClientScopes including environment:maintain.
Filed by#
Claude Code (claude-opus-5-5) via t3 triage
juliusmarminge added labelsbug
juliusmarminge added labelsvia-triage
Additional data point from
t3 triage: the browser side panel is also greyed out for the same reason, not only the update button.Environment
- Client: T3 Code desktop,
0.0.46-nightly.20261008.2801(d7202109), Windows 11 x64 - Remote: a saved remote environment ("agentic-gui"), paired before the permission split
Symptoms
- The server update nudge for the remote shows, but its Update button is disabled, with no explanation.
- The browser/preview side panel for threads on that remote is disabled too, also with no explanation.
Diagnosis (same mechanism) The preview UI is gated on
preview:operate(AuthPreviewOperateScope), for example inPreviewPanel.tsxL37,LegacySidebar.tsxL409,ChatMarkdown.tsxL2581,ElectronBrowserHost.tsxL130 and_chat.tsxL40. Likeenvironment:maintain, it is a child oforchestration:operateinlegacyParents.sessionGrantsScopenever falls back to that parent once the server returnspermissions, so pre-split pairings lose the browser panel as well as server updates, and nothing in the UI says why.Suggestion Whatever fix lands for the update button's disabled reason (fix 1 above) should also cover the preview/browser panel entry points and any other control gated on a child scope. A shared "needs re-pairing for permission X" hint driven by
sessionHasLegacyPermissionswould cover all of them. The one-timePermissionUpdateNoticetoast is easy to miss or dismiss.Workaround: run
npx t3@nightly pairon the host (the default standard scopes includeenvironment:maintainandpreview:operate), then use Add Environment with the new link through the same route.Comment drafted by Claude Opus 5.5 (Claude Code) via
t3 triage.- Client: T3 Code desktop,
Fresh triage: this is a bug report, with no exploitable vulnerability described. No duplicate found in the open-issue scan (19 pages, 948 issues).
On the locally cached main commit b5a226e49c, source inspection still shows
useServerUpdatereturningskippedwithout feedback whencanUpdateServerdenies the session, andServerUpdatesActioncounting targets without checking that permission. The per-server button still disables without a permission explanation.Runtime reproduction was not performed. Fetching main failed with HTTP 503. The automated triage hard stop prevents changes to permission handling, including the permission-dependent update availability and explanation here. Leaving this open for Julius; no implementation changes or PR.
Reproduced on current main a50cd989ae in the web dev app on Linux. The isolated fixture advertises the reported server version and
boot-servicecapability; the real auth CLI issued a pairing grant withoutenvironment:maintain(the removedreview:writescope was omitted).After dismissing the one-time permissions notice, the composer Update button is disabled without an explanation. In Settings → Connections, a saved connected server with the same grant keeps Update all enabled. Clicking it produces no notification or update RPC; the button remains enabled.
Click recording. No duplicate found in the 926 open issues scanned. The historical binary upgrade and macOS Electron shell were not exercised.
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Thanks for the detailed report. I checked it against
mainat d7202109, and the diagnosis holds.Confirmed on main
sessionGrantsScopereturnssession.permissions.includes(scope)whenever the server sendspermissions(L186). ThelegacyParentsfallback (environment:maintain→orchestration:operate, L154-L164) only runs against servers that send neitherpermissionsnorauth.serverUpdateScope.getSessionStatespreadsauthScopeResponse(session.scopes), which setspermissionsto the stored scopes. #10298, which landed with #9786, deliberately removed scope expansion ("Existing credentials keep their recorded grants"). A session paired with the old five scopes therefore has noenvironment:maintain.RpcAuthorization.tsL77-L79 requiresenvironment:maintainforserver.updateServer/updateServerWithProgress, checked against the session's stored scopes (ws.ts L3159). So the client-side gate itself is consistent with the server.canUpdatefeedsdisabled={manualCommand === null && !canUpdate}(L333, and L316 for the icon variant). Nothing explains why it's disabled. The icon variant's tooltip only shows the action label, and the composer banner's description is the genericserverUpdateGuidance("Update to stay in sync").savedServerUpdateTargetsdoesn't look at the session's permissions.ServerUpdatesActiononly filters onselfUpdateand disables only wheneligible.length === 0(L159). On click,useServerUpdatereturns early whencanUpdateServeris false, before the RPC and before any toast. That matches the silent no-op you saw.PermissionUpdateNotice. It's a one-time toast whose dismissal is persisted in localStorage (t3code:permission-update:v1:<environmentId>), so after it's dismissed the update UI gives no clue.Root cause
The permission split (#9786 / #10298) intentionally leaves pre-split sessions without
environment:maintain, and the update UI gates on that permission without telling anyone. The single button just greys out, and the bulk button counts targets it will then skip without saying so. Your 2752 → 2761 update succeeding fits this: the client's legacy fallback applies to servers that don't advertise the new fields. I haven't verified exactly which release tags carry which commits.Possible fixes (untested)
environment:maintainis missing, show something like "This connection needs to be paired again to update the server", ideally with an "Open Connections" action. Do it in bothServerUpdateActionvariants and in the banner description.sessionHasLegacyPermissionscould word it specifically for pre-split pairings.environment:maintainout ofsavedServerUpdateTargets(so the button hides or disables when none qualify), or have the click toast which servers were skipped and why, instead of returning silently.orchestration:operateas grantingenvironment:maintainfor legacy grants. The server enforces this too, so the change would have to be server-side as well. That widens what existing credentials can do and reverses an explicit decision in #10298, so it's a security/product call for the maintainers, not a straightforward bug fix.Workaround
Pair the environment again with a fresh link (Settings → Connections → Add Environment with the new link or code; see remote-access.md). Pair through the same address you use now, because saved credentials are per route and other routes can keep the old grant (see #17014). Updating on the host directly, as you did with
t3 update, also gets around it.Related
ServerUpdateAction, but only for "not connected yet". It doesn't cover permissions, though the same tooltip pattern could carry this reason.providers:manage), but on freshly issued mobile sessions, so it's a different cause.