Skip to content

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

Closed

Description

@yannickmonney

Problem

The "AI can make mistakes—verify responses and do not share sensitive data." notice under the chat composer is gone after a page load — it briefly appears and then vanishes.

Verified live 2026-07-02 (org without an explicit data-classification policy): polling the DOM through a reload shows the notice appearing at ~1.2s and disappearing at ~1.5s, then never returning.

Current behavior

  • DataNoticeFooter (services/platform/app/features/governance/components/data-notice-footer.tsx) renders under the composer (chat-input.tsx:1268) only when notice.enabled.
  • use-data-classification-notice.ts:63-72: while the governance.getPolicy (data_classification_notice) query is loading, enabled defaults to true (notice shows); once the policy resolves, enabled = config.enabled — and for this org it resolves to disabled, hiding the notice.
  • So the visible behavior is a loading-state flash followed by hide — either the org's default policy wrongly resolves to disabled, or the loading default wrongly shows it.

Proposed change

Make the two states agree:

  • If the product default is "notice on unless explicitly disabled", the resolved default for orgs without a stored policy must be enabled (fix the policy default / seed).
  • If the default is off, don't render during loading (no flash).
    The notice must not change visibility after load unless the policy actually changed.

Acceptance criteria

  • Reload of a chat page shows either a stable visible notice or none — no show→hide flash.
  • Orgs that never touched governance get the intended product default.
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