Skip to main content
Working with an agent? Give them a link to this page as markdown.

Required updates for Watcher

Admins can now remove a machine that is never coming back, such as a departed person's laptop or a retired machine, from the agent inventory, so it stops showing on the page.

The Watcher client recovers from stalled workers and keeps a replacement refresh token after a partial sign-in failure. Custom API clients need to handle the authentication and response changes below. These steps apply to both Watcher Cloud and self-hosted deployments when they use the affected APIs.

What's new?​

  • A machine's page in the Analyzer has a Remove machine action for admins (agent-inventory:read and org:settings:write), active on an offline machine and asking for confirmation first. The same removal is available through the API (see permissions). The server refuses a machine that is online.
  • A removed machine is hidden from the machine list, a person's machines, the organization-wide counts and the activity feed. Removal deletes none of its reports, and if its Watcher client reports again, the machine is listed again.
  • On a self-hosted deployment, each removal is recorded in the admin audit log.
  • The client replaces stalled local workers. On macOS, its login agent runs with the priority of an interactive app, and releases are signed with an Apple Developer ID and notarized. Lost tool results in a Claude Code transcript no longer stop later messages from uploading.
  • Several grading failures at the same moment count as one outage. A read-only or full local database invokes the configured grading-failure policy instead of leaving Claude Code without a Watcher verdict.
  • Authentication provider outages return retryable HTTP 503 responses during refresh, API-key validation and device sign-in. Refresh requests bound the time spent waiting for the provider. A 503 after a completed token exchange includes the replacement refresh token in Set-Cookie.
  • Agent inventory keeps upload warnings in notes, separate from conditions needing attention. When the client reports the count, one to four open sessions bypassing approvals are a warning; five or more need attention. Machines offline for at least seven days stay in the Offline group. Untrusted Codex hooks need attention only after detected use. A leftover Codex folder alone no longer means Codex is installed.
  • Claude Code sub-agent reviews can use recorded human messages from the root session when the caller may read them. Agent-written tasks and relayed messages are identified as such. These changes can alter review decisions. Messages included in a grader's prompt are saved with the sub-agent's grade; scrubbing the root alone does not remove those copies.
  • Session searches filtered by decisions use daily counters. Operation recovery uses a new database index and backs off after repeated database failures. Unrelated recordings without conversation IDs can ingest in parallel.
  • The customer docs have a version menu. The Copilot gateway guide states which URL policies endpoint teams must deploy and which clients support them.

Required upgrade steps​

Client recovery and API updates

These steps concern custom API clients and scripts. The Watcher client and Analyzer include the matching changes. For self-hosted server updates, follow the update procedure.

  1. Custom authentication clients: treat HTTP 503 as a retryable outage, rather than a rejected credential. Preserve refresh cookies even on a 503 and send the newest token on retry. When a refresh token is sent in the request body, it takes precedence over the cookie. With the Python SDK, catch WatcherRefreshTokenRotatedError from auth_refresh(refresh_token=...), save its refresh_token and retry with that token. If an exchange times out before a replacement reaches the caller, retry promptly: the provider accepts the old token for only 30 seconds after rotation. Verify that your error handler preserves a replacement token and does not sign the user out on a 503.
  2. Inventory API consumers: accept decisions_lost and approval_bypass condition codes and warning severity in notes. Read lost-decision warnings from decisions_lost; an uploads condition no longer includes gave_up in its reasons. Use the returned group for machine grouping, and inspect notes if your alerts must include upload warnings. Verify that a Healthy or Offline machine with warnings is handled as intended.
  3. Trajectory API consumers: stop depending on metadata.copilot_prefix_state. This internal ingestion state is no longer returned. Verify that responses without it still parse.