fix: improve image paste handling with resizing and error feedback (#601)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -139,6 +139,7 @@ export function Input({
|
||||
ralphPendingYolo = false,
|
||||
onRalphExit,
|
||||
conversationId,
|
||||
onPasteError,
|
||||
}: {
|
||||
visible?: boolean;
|
||||
streaming: boolean;
|
||||
@@ -163,6 +164,7 @@ export function Input({
|
||||
ralphPendingYolo?: boolean;
|
||||
onRalphExit?: () => void;
|
||||
conversationId?: string;
|
||||
onPasteError?: (message: string) => void;
|
||||
}) {
|
||||
const [value, setValue] = useState("");
|
||||
const [escapePressed, setEscapePressed] = useState(false);
|
||||
@@ -815,6 +817,7 @@ export function Input({
|
||||
focus={!onEscapeCancel}
|
||||
onBangAtEmpty={handleBangAtEmpty}
|
||||
onBackspaceAtEmpty={handleBackspaceAtEmpty}
|
||||
onPasteError={onPasteError}
|
||||
/>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user