diff --git a/src/components/ChatBox/FloatingAction.tsx b/src/components/ChatBox/FloatingAction.tsx index 4a9ecb1ba..160df39d0 100644 --- a/src/components/ChatBox/FloatingAction.tsx +++ b/src/components/ChatBox/FloatingAction.tsx @@ -6,9 +6,9 @@ export interface FloatingActionProps { /** Current task status */ status: "running" | "pause" | "pending" | "finished"; /** Callback when pause button is clicked */ - onPause?: () => void; + // onPause?: () => void; // Commented out - temporary not needed /** Callback when resume button is clicked */ - onResume?: () => void; + // onResume?: () => void; // Commented out - temporary not needed /** Callback when skip to next is clicked */ onSkip?: () => void; /** Loading state for pause/resume actions */ @@ -19,14 +19,14 @@ export interface FloatingActionProps { export const FloatingAction = ({ status, - onPause, - onResume, + // onPause, // Commented out - temporary not needed + // onResume, // Commented out - temporary not needed onSkip, loading = false, className, }: FloatingActionProps) => { - // Only show when task is running or paused - if (status !== "running" && status !== "pause") { + // Only show when task is running (removed pause state) + if (status !== "running") { return null; } @@ -38,6 +38,18 @@ export const FloatingAction = ({ )} >
+ {/* Always show Stop Task button when running (removed pause/resume logic) */} + + + {/* Commented out pause/resume functionality {status === "running" ? ( // State 1: Running - Show Pause button
); diff --git a/src/components/ChatBox/ProjectChatContainer.tsx b/src/components/ChatBox/ProjectChatContainer.tsx index 4ef21982d..0ae46e25a 100644 --- a/src/components/ChatBox/ProjectChatContainer.tsx +++ b/src/components/ChatBox/ProjectChatContainer.tsx @@ -5,14 +5,14 @@ import useChatStoreAdapter from '@/hooks/useChatStoreAdapter'; interface ProjectChatContainerProps { className?: string; - onPauseResume: () => void; + // onPauseResume: () => void; // Commented out - temporary not needed onSkip: () => void; isPauseResumeLoading: boolean; } -export const ProjectChatContainer: React.FC = ({ +export const ProjectChatContainer: React.FC = ({ className = "", - onPauseResume, + // onPauseResume, // Commented out - temporary not needed onSkip, isPauseResumeLoading }) => { @@ -165,7 +165,7 @@ export const ProjectChatContainer: React.FC = ({ chatStore={chatStore} activeQueryId={activeQueryId} onQueryActive={setActiveQueryId} - onPauseResume={onPauseResume} + // onPauseResume={onPauseResume} // Commented out - temporary not needed onSkip={onSkip} isPauseResumeLoading={isPauseResumeLoading} /> diff --git a/src/components/ChatBox/ProjectSection.tsx b/src/components/ChatBox/ProjectSection.tsx index 129f9084d..3bd3c5f2d 100644 --- a/src/components/ChatBox/ProjectSection.tsx +++ b/src/components/ChatBox/ProjectSection.tsx @@ -9,7 +9,7 @@ interface ProjectSectionProps { chatStore: VanillaChatStore; activeQueryId: string | null; onQueryActive: (queryId: string | null) => void; - onPauseResume: () => void; + // onPauseResume: () => void; // Commented out - temporary not needed onSkip: () => void; isPauseResumeLoading: boolean; } @@ -19,7 +19,7 @@ export const ProjectSection = React.forwardRef { @@ -64,8 +64,8 @@ export const ProjectSection = React.forwardRef diff --git a/src/components/ChatBox/index.tsx b/src/components/ChatBox/index.tsx index df89a3193..41c66f352 100644 --- a/src/components/ChatBox/index.tsx +++ b/src/components/ChatBox/index.tsx @@ -427,7 +427,10 @@ export default function ChatBox(): JSX.Element { chatStore.setStatus(taskId, 'finished'); chatStore.setIsPending(taskId, false); - toast.success("Task skipped successfully", { + // toast.success("Task skipped successfully", { + // closeButton: true, + // }); + toast.success("Task stopped successfully", { closeButton: true, }); } catch (error) { @@ -675,7 +678,7 @@ export default function ChatBox(): JSX.Element {
{/* New Project Chat Container */} diff --git a/src/i18n/locales/ar/layout.json b/src/i18n/locales/ar/layout.json index ff573af4b..9382a09c4 100644 --- a/src/i18n/locales/ar/layout.json +++ b/src/i18n/locales/ar/layout.json @@ -72,6 +72,7 @@ "agent-tool": "أداة الوكيل", "agent-tool-tooltip": "اختر الأدوات والتكاملات لوكيلك", "resume": "استئناف", + "stop-task":"إيقاف المهمة", "next-task": "المهمة التالية", "task-splitting": "تقسيم المهام", "task-running": "تشغيل المهام", diff --git a/src/i18n/locales/de/layout.json b/src/i18n/locales/de/layout.json index 5a22c9a54..7a7de6578 100644 --- a/src/i18n/locales/de/layout.json +++ b/src/i18n/locales/de/layout.json @@ -72,6 +72,7 @@ "agent-tool": "Agent-Tool", "agent-tool-tooltip": "Wählen Sie Tools und Integrationen für Ihren Agenten", "resume": "Fortsetzen", + "stop-task": "Aufgabe stoppen", "next-task": "Nächste Aufgabe", "task-splitting": "Aufgabenteilung", "task-running": "Aufgabe wird ausgeführt", diff --git a/src/i18n/locales/en-us/layout.json b/src/i18n/locales/en-us/layout.json index f90f7c6fd..fb8b27fe4 100644 --- a/src/i18n/locales/en-us/layout.json +++ b/src/i18n/locales/en-us/layout.json @@ -72,6 +72,7 @@ "agent-tool": "Agent Tool", "agent-tool-tooltip": "Select tools and integrations for your agent", "resume": "Resume", + "stop-task": "Stop Task", "next-task": "Next Task", "task-splitting": "Task Splitting", "task-running": "Task Running", @@ -114,6 +115,7 @@ "project-ended-successfully": "Project ended successfully", "failed-to-end-project": "Failed to end project", "message-queued": "Message queued. It will be processed when the current task finishes.", + "task-stopped-successfully": "Task stopped successfully", "task-skipped-successfully": "Task skipped successfully", "failed-to-skip-task": "Failed to skip task", "no-reply-received-task-continue": "No reply received, task continue", diff --git a/src/i18n/locales/es/layout.json b/src/i18n/locales/es/layout.json index 2c993fe4e..1d29b0eed 100644 --- a/src/i18n/locales/es/layout.json +++ b/src/i18n/locales/es/layout.json @@ -72,6 +72,7 @@ "agent-tool": "Herramienta de Agente", "agent-tool-tooltip": "Selecciona herramientas e integraciones para tu agente", "resume": "Reanudar", + "stop-task": "Detener Tarea", "next-task": "Siguiente Tarea", "task-splitting": "División de Tareas", "task-running": "Ejecutando Tarea", diff --git a/src/i18n/locales/fr/layout.json b/src/i18n/locales/fr/layout.json index 66c8acb33..a32f8c775 100644 --- a/src/i18n/locales/fr/layout.json +++ b/src/i18n/locales/fr/layout.json @@ -72,6 +72,7 @@ "agent-tool": "Outil Agent", "agent-tool-tooltip": "Sélectionnez les outils et intégrations pour votre agent", "resume": "Reprendre", + "stop-task": "Arrêter la Tâche", "next-task": "Tâche suivante", "task-splitting": "Division des Tâches", "task-running": "Exécution des Tâches", diff --git a/src/i18n/locales/it/layout.json b/src/i18n/locales/it/layout.json index 2a097c035..fba58b8fe 100644 --- a/src/i18n/locales/it/layout.json +++ b/src/i18n/locales/it/layout.json @@ -72,6 +72,7 @@ "agent-tool": "Strumento Agente", "agent-tool-tooltip": "Seleziona strumenti e integrazioni per il tuo agente", "resume": "Riprendi", + "stop-task": "Ferma Attività", "next-task": "Prossima Attività", "task-splitting": "Divisione Attività", "task-running": "Esecuzione Attività", diff --git a/src/i18n/locales/ja/layout.json b/src/i18n/locales/ja/layout.json index 98881eb10..1fc1360a7 100644 --- a/src/i18n/locales/ja/layout.json +++ b/src/i18n/locales/ja/layout.json @@ -72,6 +72,7 @@ "agent-tool": "エージェントツール", "agent-tool-tooltip": "エージェントのツールと統合を選択", "resume": "再開", + "stop-task": "タスクを停止", "next-task": "次のタスク", "task-splitting": "タスク分割", "task-running": "タスク実行中", diff --git a/src/i18n/locales/ko/layout.json b/src/i18n/locales/ko/layout.json index bb359035c..a7321e5aa 100644 --- a/src/i18n/locales/ko/layout.json +++ b/src/i18n/locales/ko/layout.json @@ -72,6 +72,7 @@ "agent-tool": "에이전트 도구", "agent-tool-tooltip": "에이전트를 위한 도구 및 통합 선택", "resume": "재개", + "stop-task": "작업 중지", "next-task": "다음 작업", "task-splitting": "작업 분할", "task-running": "작업 실행", diff --git a/src/i18n/locales/ru/layout.json b/src/i18n/locales/ru/layout.json index ad956fa62..54542021e 100644 --- a/src/i18n/locales/ru/layout.json +++ b/src/i18n/locales/ru/layout.json @@ -72,6 +72,7 @@ "agent-tool": "Инструмент агента", "agent-tool-tooltip": "Выберите инструменты и интеграции для вашего агента", "resume": "Возобновить", + "stop-task": "Остановить задачу", "next-task": "Следующая задача", "task-splitting": "Разделение задачи", "task-running": "Выполнение задачи", diff --git a/src/i18n/locales/zh-Hans/layout.json b/src/i18n/locales/zh-Hans/layout.json index 854accb63..ae6c384f2 100644 --- a/src/i18n/locales/zh-Hans/layout.json +++ b/src/i18n/locales/zh-Hans/layout.json @@ -73,6 +73,7 @@ "agent-tool": "智能体工具", "agent-tool-tooltip": "为您的智能体选择工具和集成", "resume": "恢复", + "stop-task": "停止任务", "next-task": "下一个任务", "task-splitting": "任务拆分", "task-running": "任务运行", diff --git a/src/i18n/locales/zh-Hant/layout.json b/src/i18n/locales/zh-Hant/layout.json index 1dd80898b..09e555806 100644 --- a/src/i18n/locales/zh-Hant/layout.json +++ b/src/i18n/locales/zh-Hant/layout.json @@ -74,6 +74,7 @@ "agent-tool": "智能體工具", "agent-tool-tooltip": "為您的智能體選擇工具和整合", "resume": "恢復", + "stop-task": "停止任務", "next-task": "下一個任務", "task-splitting": "任務拆分", "task-running": "任務執行",