Skip to content

Commit cf2aee6

Browse files
authored
fix(ai-help): limit input to 25k characters (#10796)
1 parent fc245ad commit cf2aee6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: client/src/plus/ai-help/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ function AIHelpUserQuestion({
161161
>
162162
<ExpandingTextarea
163163
ref={inputRef}
164+
maxLength={25_000}
164165
enterKeyHint="send"
165166
onKeyDown={(event) => {
166167
if (event.key === "Enter" && !event.shiftKey) {
@@ -799,6 +800,7 @@ export function AIHelpInner() {
799800
>
800801
<ExpandingTextarea
801802
ref={inputRef}
803+
maxLength={25_000}
802804
autoFocus={true}
803805
disabled={isLoading || isResponding}
804806
enterKeyHint="send"

0 commit comments

Comments
 (0)