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): User preferences says the organization default for custom instructions is off while that default is still loading or failed to load #4889
Settings › User preferences shows the custom instructions switch from the organization default, which is read separately. While that read is pending, or after it fails, the page treats the default as "off". Paths at mainc94f1fd84, services/platform/app/features/settings/personalization/components/preferences-settings.tsx.
:93-101 reads the default with useGovernancePolicy(organizationId, 'custom_instructions') and keeps only data, then calls policyEnabled(instructionsPolicy?.config). That returns false for undefined (:73-75).
resolveGate (:61-71) then makes a person who never chose (followingDefault) follow "off". The switch shows checked={gate.effective} (:250-253), off, and the hint reads "Following organization default (off)." (:141-148; messages/en/personalization.yml:6).
The instructions field only renders while the gate is on (:272), so the person can't see the instructions they saved.
The skeleton waits only for the preferences read (:104-107), so this also flashes on every load.
Members may read this policy (packages/shared/src/schemas/governance.ts:124-134). The server applies the real default when it answers.
Effect: in an organization whose default is on, a member who follows it is told the feature is off. Their instructions are hidden while chat keeps applying them. If they then switch it "on", they store an explicit choice they never meant to make.
Expected
Treat the default as unknown until the policy read succeeds: keep the skeleton, or render the switch disabled with a neutral hint.
After a failed read, show the read error with Try again.
Regression: a preferences test with customInstructionsEnabled unset and a rejected policy read. Neither "Following organization default (off)" nor an unchecked switch is shown. On c94f1fd84 both are.
Severity and owner
Severity: low-medium. It is a misleading state, worse for organizations that turn the default on.
Owner: platform (settings, personalization).
Found by: Review A (TALE-358), 2026-10-12 20:15 Zurich occurrence, oldest-due settings.personalization UX-CLARITY slice. This is static reading at c94f1fd84, verified at the cited lines. I didn't run it, because Review A's stack is BLOCKED.
Activity
fix(platform): keep an unread custom instructions default unknown
fix(platform): keep an unread custom instructions default unknown