{"version":"2.1.267","anchor":"bridge-polling-now-distinguishes-401-vs-404-as-re-registrati","canonical_anchor":"bridge-remote-control-now-surfaces-a-distinct-fatal-error","heading":"Remote Control bridge now recovers from 401s during background polling, not just 404s","tier":"notice","area":"Remote Control","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267\/e\/bridge-polling-now-distinguishes-401-vs-404-as-re-registrati","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267","markdown":"### Remote Control bridge now recovers from 401s during background polling, not just 404s\n\nRemote Control's background session poller now treats an expired credential (401) as a reason to re-register, with clearer error messages\n\n**Unclear.** Whether the `tengu_bridge_env_reregister` gate is active has not been read for this account.\n\n**What**\n\n- The bridge's background polling loop, used for Remote Control\/cloud sessions, now treats a 401 (unauthorized) response as a trigger to re-register the environment, in addition to the existing 404 (not found) case, provided the same gates hold.\n\n- The re-registration function now takes a `trigger` argument distinguishing 401 from 404, logs the correct status code, and records which trigger fired in telemetry. A 401 uses its own backoff floor (`reregister401BackoffFloorMs`) and logs a message about a renewed Remote Control credential rather than a re-registered environment.\n\n- If repeated 401s exhaust re-registration attempts, or the server issues a replaced environment instead, the bridge now logs a distinct, user-facing fatal error telling the user to restart `claude remote-control`.\n\n**Why** Previously only a 404 triggered recovery, so an expired or renewed credential (401) could leave a Remote Control session stuck polling without a clear path forward. Now it's handled automatically where possible, with a clearer error message when it can't be.\n\n- Area: Remote Control\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}