MCPcopy
hub / github.com/firecrawl/fireplexity / handleRewrite

Function handleRewrite

app/chat-interface.tsx:124–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 const handleRewrite = () => {
125 // Get the last user message and resubmit it
126 const lastUserMessage = [...messages].reverse().find(m => m.role === 'user')
127 if (lastUserMessage) {
128 handleInputChange({ target: { value: getMessageContent(lastUserMessage) } } as React.ChangeEvent<HTMLTextAreaElement>)
129 // Submit the form
130 setTimeout(() => {
131 formRef.current?.requestSubmit()
132 }, 100)
133 }
134 }
135
136
137 return (

Callers

nothing calls this directly

Calls 1

getMessageContentFunction · 0.85

Tested by

no test coverage detected