Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 0 additions & 68 deletions apps/code/src/renderer/components/TourHighlight.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import "./message-editor.css";
import type { SessionConfigOption } from "@agentclientprotocol/sdk";
import { TourHighlight } from "@components/TourHighlight";
import { ArrowUp, Stop } from "@phosphor-icons/react";
import { InputGroup, InputGroupAddon, InputGroupButton } from "@posthog/quill";
import { Flex, Text, Tooltip } from "@radix-ui/themes";
Expand Down Expand Up @@ -40,8 +39,6 @@ export interface PromptInputProps {
// toolbar slots
modelSelector?: React.ReactElement | null | false;
reasoningSelector?: React.ReactElement | null | false;
// tour hook for the send button (new-task flow)
tourHighlightSubmit?: boolean;
// prompt history provider
getPromptHistory?: () => string[];
// callbacks
Expand Down Expand Up @@ -79,7 +76,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
enableCommands = true,
modelSelector,
reasoningSelector,
tourHighlightSubmit = false,
getPromptHistory,
onBeforeSubmit,
onSubmit,
Expand Down Expand Up @@ -218,7 +214,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
submitTooltipOverride ??
(submitBlocked ? "Enter a message" : "Send message");

// Render send/stop button (wrapped in TourHighlight when requested)
const submitButton =
isLoading && onCancel ? (
<Tooltip content="Stop">
Expand Down Expand Up @@ -247,12 +242,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
</Tooltip>
);

const wrappedSubmit = tourHighlightSubmit ? (
<TourHighlight active>{submitButton}</TourHighlight>
) : (
submitButton
);

return (
<Flex direction="column" gap="1">
<InputGroup
Expand Down Expand Up @@ -301,7 +290,7 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
! bash
</Text>
)}
{wrappedSubmit}
{submitButton}
</InputGroupAddon>
</InputGroup>
</Flex>
Expand Down
Loading
Loading