claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Desktop app: Remote Control drops every few hours under Require trusted devices (HTTP 403 on credential re-mint; Desktop host can't enroll)

Open xkllbr opened this issue 1 month ago • 1 comments

Preflight Checklist

  • [x] I have searched existing issues. Related: #100526 (CLI, resumed pre-toggle sessions). This one is the Desktop app host itself, and it affects sessions that are already connected.
  • [x] This is a single bug report
  • [x] Latest versions: Claude Desktop 3.6556.2 (Code tab), Claude Code 2.1.284, macOS 27.0.1

What's Wrong?

With Require trusted devices turned on (Max plan), the Claude Desktop app's Remote Control bridge cannot enroll or renew itself, so Remote Control drops a few hours after it is connected and cannot come back on its own.

  1. Turning the Remote Control switch on in a Desktop session fails immediately with HTTP 403. The same account's terminal CLI, enrolled with claude auth login, connects fine. Signing out of and into the Desktop app does not help.
  2. Workaround that works: turn the trusted-devices rule off → connect the sessions → turn the rule back on. Sessions stay connected.
  3. But the bridge's short-lived worker credential expires after a few hours. The re-mint is treated as a new registration and is rejected with 403, every connected session drops, and the app's auto-reconnect retries twice, fails, and parks it until relaunch. Mobile push also stops ("Remote Control inactive").

~/Library/Logs/Claude/main.log tonight (Eastern), nothing network-related before it:

22:33:20 [remote-control] bridge_state: "failed" ("terminal") — "Remote Control server rejected the request (HTTP 403) — run /remote-control to retry"
22:58:57 [remote-control] bridge_state: "reconnecting" — "worker credential expired — re-minting"
00:33:50 [remote-control] bridge_state: "failed" ("terminal") — "Remote Control server rejected the request (HTTP 403) — run /remote-control to retry"
00:33:55 Failed to toggle remote control for local_…: "Remote Control server rejected the request (HTTP 403) — run /remote-control to retry"
00:34:03 [rcAutoEnable] user reconnect for local_… failed 2 times; parked for this run

Settings: "Connect new sessions to Remote Control" on; keep-awake on; no VPN change, no network loss in the logs.

What Should Happen?

  • The Desktop app should be enrollable as a trusted device like the CLI is (or reuse the CLI's enrollment on the same machine and account), so the switch works with the rule on.
  • Renewing an existing bridge credential should not count as a new, untrusted registration.
  • If the server rejects for the trusted-devices policy, the app should say so ("this device isn't trusted; enroll it here") instead of a generic 403 with a retry hint that cannot succeed.

Why it matters

Users who want the security of trusted devices currently have to choose between it and using Remote Control from the Desktop app for more than a few hours.

xkllbr avatar Oct 24 '26 04:10 xkllbr

Windows data point (Team plan, "Require trusted devices" on). From 2026-11-15 to 11-16, turning on Remote Control for a Desktop Code session failed with "this computer is not a trusted device for your account yet, and it could not be enrolled automatically right now… sign in again with /login, then retry" (Claude Desktop 5.11492.5, Claude Code 2.1.325). Signing out of the Desktop app, quitting background processes, restarting and signing in again (with mobile verification) did not help. The machine was already listed under trusted devices from an earlier enrollment (Oct 23).

On 2026-11-19 a new trusted-device entry for the same machine appeared (added Nov 19), and Remote Control now works from both the Desktop Code tab and the iPad app. We did not change the organization setting. We don't know what changed; possibly an app update. Posting in case it helps narrow down which builds still fail to enroll.

agentgreen-lang avatar Nov 19 '26 23:11 agentgreen-lang