@@ -60,7 +60,6 @@ import { pickFiles, pickPhotos, takePhoto } from "./src/ui/attachmentPicker";
6060import { useDictation } from "./src/ui/useDictation" ;
6161import { ApprovalSheet } from "./src/ui/ApprovalSheet" ;
6262import { ThoughtSheet } from "./src/ui/ThoughtSheet" ;
63- import { MessageSheet } from "./src/ui/MessageSheet" ;
6463import { applyCommand , type SlashCommand } from "./src/slashCommands" ;
6564import { CircleButton , Pill } from "./src/ui/controls" ;
6665import { haptics } from "./src/ui/haptics" ;
@@ -521,8 +520,6 @@ function Pew2({ pairing, onUnpair }: { pairing: Pairing; onUnpair: () => void })
521520 // so the sheet lives outside the recycling list — a cell scrolled off screen
522521 // must not take the sheet down with it.
523522 const [ thought , setThought ] = useState < string | null > ( null ) ;
524- /** The held message, open for copying and hand selection. */
525- const [ message , setMessage ] = useState < string | null > ( null ) ;
526523 // The draft lives inside the dock, not here.
527524 //
528525 // Holding it at the root meant every keystroke re-rendered the entire app,
@@ -1111,17 +1108,6 @@ function Pew2({ pairing, onUnpair }: { pairing: Pairing; onUnpair: () => void })
11111108 } , [ ] ) ;
11121109 const closeThought = useCallback ( ( ) => setThought ( null ) , [ ] ) ;
11131110
1114- // Stable for the same reason as `openThought`. The pulse is the whole
1115- // confirmation that a hold was recognised: the finger is still down and the
1116- // sheet has not arrived yet, so without it a long press reads as a dead spot
1117- // in the transcript.
1118- const openMessage = useCallback ( ( text : string ) => {
1119- haptics . tap ( ) ;
1120- Keyboard . dismiss ( ) ;
1121- setMessage ( text ) ;
1122- } , [ ] ) ;
1123- const closeMessage = useCallback ( ( ) => setMessage ( null ) , [ ] ) ;
1124-
11251111 const answerPermission = useCallback (
11261112 ( requestId : string , optionId : string , deny : boolean ) => {
11271113 if ( deny ) haptics . warned ( ) ;
@@ -1318,7 +1304,6 @@ function Pew2({ pairing, onUnpair }: { pairing: Pairing; onUnpair: () => void })
13181304 indicatorBottom = { dockHeight }
13191305 onAtBottomChange = { setAtBottom }
13201306 onOpenThought = { openThought }
1321- onCopyMessage = { openMessage }
13221307 />
13231308 ) : ! daemon . loadingSession ? (
13241309 // Cancels half the pane's lift, so the greeting settles in the middle
@@ -1483,7 +1468,6 @@ function Pew2({ pairing, onUnpair }: { pairing: Pairing; onUnpair: () => void })
14831468 < AttachmentSheet visible = { attachOpen } onSelect = { pickAttachment } onClose = { closeAttach } />
14841469
14851470 < ThoughtSheet visible = { thought !== null } text = { thought ?? "" } onClose = { closeThought } />
1486- < MessageSheet visible = { message !== null } text = { message ?? "" } onClose = { closeMessage } />
14871471
14881472 { /* One picker, pointed at whichever pill opened it. The mode selector is
14891473 excluded from the model menu so each pill owns exactly one list. */ }
0 commit comments