Skip to content

Commit 4402bee

Browse files
fix(mobile): reset the terminal input field before any paste
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent df8744e commit 4402bee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ function ThreadTerminal(props: {
758758
};
759759

760760
const handlePaste = (readText: () => Promise<string>) => {
761+
// Pasted text bypasses the native field, so a syllable it holds must not be recomposed.
762+
surfaceRef.current?.resetInput();
761763
setPendingModifier(null);
762764
void pasteText(readText);
763765
};

0 commit comments

Comments
 (0)