Fix: enable chat input resizing (#12998)

## Summary
- add resizable support to shared textarea component
- enable vertical resizing for chat inputs in chat and share surfaces
- preserve autosize behavior while honoring manual resize height

## Test plan
- not run (not requested)

Fixes #12803

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Neel Harsola
2026-02-09 17:03:05 +05:30
committed by GitHub
parent 4bc622b409
commit a2dda8fb70
7 changed files with 50 additions and 6 deletions

View File

@@ -127,6 +127,7 @@ function AgentChatBox() {
disabled={isWaitting}
sendDisabled={sendLoading || isWaitting}
isUploading={loading || isWaitting}
resize="vertical"
onPressEnter={handlePressEnter}
onInputChange={handleInputChange}
stopOutputMessage={stopOutputMessage}

View File

@@ -193,6 +193,7 @@ const ChatContainer = () => {
value={value}
disabled={hasError || isWaitting}
sendDisabled={sendDisabled || isWaitting}
resize="vertical"
conversationId={conversationId}
onInputChange={handleInputChange}
onPressEnter={handlePressEnter}

View File

@@ -255,6 +255,7 @@ export function MultipleChatBox({
sendDisabled={sendDisabled}
sendLoading={sendLoading}
value={value}
resize="vertical"
onInputChange={handleInputChange}
onPressEnter={handlePressEnter}
conversationId={conversationId}

View File

@@ -112,6 +112,7 @@ export function SingleChatBox({
sendDisabled={sendDisabled}
sendLoading={sendLoading}
value={value}
resize="vertical"
onInputChange={handleInputChange}
onPressEnter={handlePressEnter}
conversationId={conversationId}

View File

@@ -116,6 +116,7 @@ const ChatContainer = () => {
value={value}
disabled={hasError}
sendDisabled={sendDisabled}
resize="vertical"
conversationId={conversationId}
onInputChange={handleInputChange}
onPressEnter={handlePressEnter}