Skip to content

fix(platform): stop data notice flash during policy load (#2376) - #2470

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2376-ai-notice-flash-6542
Jul 4, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2376-ai-notice-flash-6542

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

Fixes #2376. use-data-classification-notice defaulted enabled: true while the getPolicy query was loading, so an org that resolves to disabled showed the "AI can make mistakes" notice for ~300ms then hid it (a show→hide flash). The hook now returns enabled: false while loading/skipped, so nothing renders until the real config lands. The product default is confirmed "on unless explicitly disabled" (the resolved path and a missing policy row both default to true, matching the sibling voice_output policy), so the two states now agree — no schema/seed change needed.

Checklist

  • bun run check — type-aware lint (0/0), typecheck clean, new data-notice-footer test (4: loading→hidden regression, no-policy→visible, resolved on/off) passing.
  • lint:sast — N/A (Opengrep not cached).
  • Translations — N/A (render-timing only).

Test plan

Reload a chat page for an org with the notice disabled → no flash; for an org that never touched governance → the notice shows stably (product default on).

Open in Web Open in Cursor 

@cursor
cursor Bot marked this pull request as ready for review July 4, 2026 10:51
@cursor
cursor Bot merged commit e9fc682 into main Jul 4, 2026
24 checks passed
@cursor
cursor Bot deleted the cursor/fix-2376-ai-notice-flash-6542 branch July 4, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: "AI can make mistakes" notice flashes for ~300ms then disappears after page load

2 participants