Skip to content

bug(platform): Personalization settings treat a failed preferences read as the default off state #3876

Closed

Description

@yannickmonney

Bug: Personalization settings treat a failed preferences read as the default off state

  • Classification: P2 confirmed product defect (Settings / Personalization)
  • Source SHA: 9ea5972
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/preferences-read-error-probe.log
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions