You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): Personalization settings treat a failed preferences read as the default off state #3876
Scope: isolated local jsdom/Vitest component probe; no production network or writes.
Reproduction
Render PreferencesSettings while user_preferences/queries:getMyPreferences settles with data: undefined, isLoading: false, and a 503 error. With the organization default off, the actual page shows the ordinary unchecked Custom instructions switch, hides the saved-instructions field, and renders no alert or Retry action. The probe passed one test against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.
Root cause and impact
PreferencesSettings consumes only data: prefs and isLoading. It passes prefs?.customInstructionsEnabled and prefs?.customInstructions ?? '' into the gate, so a rejected read is indistinguishable from a successful user with no explicit preference. The feature appears disabled and any saved instructions are absent from the editor; a user can toggle or overwrite state without knowing the read was unavailable. The component provides no recovery path.
Expected behavior is a distinct preferences-read error with Retry and a disabled/unknown control until the user preference is known. A successful null response can continue to mean “follow the organization default”; a failed query must not silently choose that state. This is separate from mutation failures when toggling or saving custom instructions.
Activity