| ... | ... | @@ -10428,13 +10428,7 @@ export default function ChatView(props: ChatViewProps) { |
| 10428 | 10428 | ); |
| 10429 | 10429 | |
| 10430 | 10430 | const onChangeActivePendingUserInputCustomAnswer = useCallback( |
| 10431 | | ( |
| 10432 | | questionId: string, |
| 10433 | | value: string, |
| 10434 | | nextCursor: number, |
| 10435 | | expandedCursor: number, |
| 10436 | | _cursorAdjacentToMention: boolean, |
| 10437 | | ) => { |
| 10431 | (questionId: string, value: string) => { |
| 10438 | 10432 | if (!activePendingUserInput) { |
| 10439 | 10433 | return; |
| 10440 | 10434 | } |
| ... | ... | @@ -10454,16 +10448,10 @@ export default function ChatView(props: ChatViewProps) { |
| 10454 | 10448 | ), |
| 10455 | 10449 | }, |
| 10456 | 10450 | })); |
| 10457 | | const snapshot = composerRef.current?.readSnapshot(); |
| 10458 | | if ( |
| 10459 | | snapshot?.value !== value || |
| 10460 | | snapshot.cursor !== nextCursor || |
| 10461 | | snapshot.expandedCursor !== expandedCursor |
| 10462 | | ) { |
| 10463 | | composerRef.current?.focusAt(nextCursor); |
| 10464 | | } |
| 10451 | // The editor owns this selection. Resetting it before the answer renders |
| 10452 | // can re-enter Lexical with offsets from the previous skill token. |
| 10465 | 10453 | }, |
| 10466 | | [activePendingUserInput, activePendingRequestKey, composerRef], |
| 10454 | [activePendingUserInput, activePendingRequestKey], |
| 10467 | 10455 | ); |
| 10468 | 10456 | |
| 10469 | 10457 | const onAdvanceActivePendingUserInput = useCallback(() => { |