|
1 | 1 | import "./message-editor.css"; |
2 | 2 | import type { SessionConfigOption } from "@agentclientprotocol/sdk"; |
3 | | -import { TourHighlight } from "@components/TourHighlight"; |
4 | 3 | import { ArrowUp, Stop } from "@phosphor-icons/react"; |
5 | 4 | import { InputGroup, InputGroupAddon, InputGroupButton } from "@posthog/quill"; |
6 | 5 | import { Flex, Text, Tooltip } from "@radix-ui/themes"; |
@@ -40,8 +39,6 @@ export interface PromptInputProps { |
40 | 39 | // toolbar slots |
41 | 40 | modelSelector?: React.ReactElement | null | false; |
42 | 41 | reasoningSelector?: React.ReactElement | null | false; |
43 | | - // tour hook for the send button (new-task flow) |
44 | | - tourHighlightSubmit?: boolean; |
45 | 42 | // prompt history provider |
46 | 43 | getPromptHistory?: () => string[]; |
47 | 44 | // callbacks |
@@ -79,7 +76,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>( |
79 | 76 | enableCommands = true, |
80 | 77 | modelSelector, |
81 | 78 | reasoningSelector, |
82 | | - tourHighlightSubmit = false, |
83 | 79 | getPromptHistory, |
84 | 80 | onBeforeSubmit, |
85 | 81 | onSubmit, |
@@ -218,7 +214,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>( |
218 | 214 | submitTooltipOverride ?? |
219 | 215 | (submitBlocked ? "Enter a message" : "Send message"); |
220 | 216 |
|
221 | | - // Render send/stop button (wrapped in TourHighlight when requested) |
222 | 217 | const submitButton = |
223 | 218 | isLoading && onCancel ? ( |
224 | 219 | <Tooltip content="Stop"> |
@@ -247,12 +242,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>( |
247 | 242 | </Tooltip> |
248 | 243 | ); |
249 | 244 |
|
250 | | - const wrappedSubmit = tourHighlightSubmit ? ( |
251 | | - <TourHighlight active>{submitButton}</TourHighlight> |
252 | | - ) : ( |
253 | | - submitButton |
254 | | - ); |
255 | | - |
256 | 245 | return ( |
257 | 246 | <Flex direction="column" gap="1"> |
258 | 247 | <InputGroup |
@@ -301,7 +290,7 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>( |
301 | 290 | ! bash |
302 | 291 | </Text> |
303 | 292 | )} |
304 | | - {wrappedSubmit} |
| 293 | + {submitButton} |
305 | 294 | </InputGroupAddon> |
306 | 295 | </InputGroup> |
307 | 296 | </Flex> |
|
0 commit comments