Skip to content

Managed settings are dropped after transient refresh failures #337804

Description

Steps to Reproduce:

  1. Sign in with an enterprise account that supplies server-managed settings, such as an OpenTelemetry endpoint, and allow a successful settings fetch.
  2. Allow the cached response to become older than one hour, then encounter a failed refresh (no response, transient 401/403, 429, 5xx, or malformed response).
  3. Observe that the previously applied policy is dropped. A subsequent successful fetch restores it.

Actual behavior: Managed settings alternate between the enterprise policy and defaults during refresh failures. For an OTel endpoint, affected users see recurring notifications such as "Copilot OTel endpoint will change to http://localhost:4318 after reload.", especially after idle. Other server-managed restrictions are also temporarily lifted.

Expected behavior: A failed refresh is not evidence that policy was withdrawn. Keep the last successful settings, even when stale, without renewing their original fetch timestamp so subsequent polls or focus events retry. Successful responses, explicit withdrawal, sign-out/account changes, and forced-refresh behavior retain their existing semantics.

Fix and release tracking

This issue tracks the stale-policy retention regression addressed by those PRs. The separate session-lookup-error and managedSettingsActive lifecycle problems described in #337583 are outside this issue's scope.

Metadata

Metadata

Labels

bugcandidateotelverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions