Skip to content

feat(client): add an opt-in AI accuracy disclaimer under the chat input - #80

Merged
masudahiroto merged 1 commit into
mainfrom
masudahiroto/input-disclaimer
Aug 27, 2026
Merged

masudahiroto merged 1 commit into
mainfrom
masudahiroto/input-disclaimer

Conversation

@masudahiroto

Copy link
Copy Markdown
Contributor

AI Disclosure: this PR is written by AI

Adds a disclaimer that can be rendered under the text box of the AI chat panel.

  • Off by default, so nothing is shown unless the consumer opts in via
    enabledFeatures.inputDisclaimer.
  • When enabled, it stays hidden while there are no messages yet, and appears once the
    user has sent the first message.
  • The text comes from defaultStrings.input.disclaimer and the color from
    defaultTheme.disclaimerTextColor, so both can be overridden the same way as the
    rest of the chat UI.
  • The example app turns the flag on so the behavior is visible in the demo.

🤖 Generated with Claude Code

The text lives in `defaultStrings.input.disclaimer` and the color in
`defaultTheme.disclaimerTextColor`, so consumers override them the same
way as the rest of the chat UI. It is off unless the consumer sets
`enabledFeatures.inputDisclaimer`, and stays hidden until the first
message is sent.

DEFAULT_ENABLED_FEATURES keeps holding only opt-out defaults; opt-in
flags stay undefined there.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@masudahiroto
masudahiroto marked this pull request as ready for review August 27, 2026 06:41
@masudahiroto
masudahiroto merged commit 8cddb6d into main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants