[PR #7081] [MERGED] docs: prevent sending empty message in AI chat #7063

Closed
opened 2026-03-13 13:22:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7081
Author: @abdrhxyii
Created: 1/1/2026
Status: Merged
Merged: 1/2/2026
Merged by: @himself65

Base: canaryHead: fix/prevent-empty-ai-chat-submissions


📝 Commits (1)

  • 1309fdd fix(floating-ai-search): prevent sending empty messages and handle loading state in input

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 docs/components/floating-ai-search.tsx (+6 -1)

📄 Description

…ading state in input


Summary by cubic

Prevent empty message submissions and disable sending while a request is in progress in the floating search input. This avoids accidental sends and duplicate requests.

  • Bug Fixes
    • Ignore Enter and programmatic sends when input is blank (after trim) or loading; disable the send button in the same state.

Written for commit 1309fdd48b. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7081 **Author:** [@abdrhxyii](https://github.com/abdrhxyii) **Created:** 1/1/2026 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/prevent-empty-ai-chat-submissions` --- ### 📝 Commits (1) - [`1309fdd`](https://github.com/better-auth/better-auth/commit/1309fdd48bd5ac7672fbc910cac849b7e2c76fbc) fix(floating-ai-search): prevent sending empty messages and handle loading state in input ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/floating-ai-search.tsx` (+6 -1) </details> ### 📄 Description …ading state in input <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Prevent empty message submissions and disable sending while a request is in progress in the floating search input. This avoids accidental sends and duplicate requests. - **Bug Fixes** - Ignore Enter and programmatic sends when input is blank (after trim) or loading; disable the send button in the same state. <sup>Written for commit 1309fdd48bd5ac7672fbc910cac849b7e2c76fbc. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:22:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7063