Fixed Bug 78445 - Chat name input field is not limited

This commit is contained in:
Timofey
2025-11-17 16:32:12 +08:00
parent 308bdcd135
commit 2402563b5d
3 changed files with 6 additions and 3 deletions

View File

@ -170,6 +170,7 @@ const ChatListItem = ({
}}
autoFocus
className="w-full"
maxLength={128}
/>
) : (
<>

View File

@ -109,7 +109,9 @@ class Provider {
createChatName = async (message: string) => {
if (!this.currentProvider) return "";
return this.currentProvider.createChatName(message);
const title = await this.currentProvider.createChatName(message);
return title.slice(0, 128);
};
sendMessage = (