π OpenHands: AI-Driven Development
Remove continue button and associated logic (#7425)
Robert Brennane57305ee0cb8
diff --git a/frontend/src/components/features/chat/chat-interface.tsx b/frontend/src/components/features/chat/chat-interface.tsxindex 32f33c09c2..4f7cd0eab2 100644--- a/frontend/src/components/features/chat/chat-interface.tsx+++ b/frontend/src/components/features/chat/chat-interface.tsx@@ -17,7 +17,7 @@ import { useWsClient } from "#/context/ws-client-provider";import { Messages } from "./messages";import { ChatSuggestions } from "./chat-suggestions";import { ActionSuggestions } from "./action-suggestions";-import { ContinueButton } from "#/components/shared/buttons/continue-button";+import { ScrollToBottomButton } from "#/components/shared/buttons/scroll-to-bottom-button";import { LoadingSpinner } from "#/components/shared/loading-spinner";import { useGetTrajectory } from "#/hooks/mutation/use-get-trajectory";@@ -85,10 +85,6 @@ export function ChatInterface() {send(generateAgentStateChangeEvent(AgentState.STOPPED));};- const handleSendContinueMsg = () => {- handleSendMessage("Continue", []);- };-const onClickShareFeedbackActionButton = async (polarity: "positive" | "negative",) => {@@ -165,10 +161,6 @@ export function ChatInterface() {/><div className="absolute left-1/2 transform -translate-x-1/2 bottom-0">- {messages.length > 2 &&- curAgentState === AgentState.AWAITING_USER_INPUT && (- <ContinueButton onClick={handleSendContinueMsg} />- )}{curAgentState === AgentState.RUNNING && <TypingIndicator />}</div>diff --git a/frontend/src/components/shared/buttons/continue-button.tsx b/frontend/src/components/shared/buttons/continue-button.tsxdeleted file mode 100644index a9325c95f3..0000000000--- a/frontend/src/components/shared/buttons/continue-button.tsx+++ /dev/null@@ -1,23 +0,0 @@-import ChevronDoubleRight from "#/icons/chevron-double-right.svg?react";-import { cn } from "#/utils/utils";--interface ContinueButtonProps {- onClick: () => void;-}--export function ContinueButton({ onClick }: ContinueButtonProps) {- return (- <button- type="button"- onClick={onClick}- className={cn(- "button-base px-2 py-1",- "text-[11px] leading-4 tracking-[0.01em] font-[500]",- "flex items-center gap-2",- )}- >- <ChevronDoubleRight width={12} height={12} />- Continue- </button>- );-}