diff --git a/frontend/src/components/tasks/TaskDetailsDialog.tsx b/frontend/src/components/tasks/TaskDetailsDialog.tsx index 9308472e..f21bccb0 100644 --- a/frontend/src/components/tasks/TaskDetailsDialog.tsx +++ b/frontend/src/components/tasks/TaskDetailsDialog.tsx @@ -23,7 +23,6 @@ import type { TaskStatus, TaskAttempt, TaskAttemptActivity, - ExecutorConfig, } from "shared/types"; interface Task { @@ -74,9 +73,7 @@ export function TaskDetailsDialog({ TaskAttemptActivity[] >([]); const [activitiesLoading, setActivitiesLoading] = useState(false); - const [selectedExecutor, setSelectedExecutor] = useState({ - type: "echo", - }); + const [selectedExecutor, setSelectedExecutor] = useState("echo"); const [creatingAttempt, setCreatingAttempt] = useState(false); // Edit mode state @@ -110,8 +107,10 @@ export function TaskDetailsDialog({ setTaskAttempts(result.data); // Automatically select the latest attempt if available if (result.data.length > 0) { - const latestAttempt = result.data.reduce((latest, current) => - new Date(current.created_at) > new Date(latest.created_at) ? current : latest + const latestAttempt = result.data.reduce((latest, current) => + new Date(current.created_at) > new Date(latest.created_at) + ? current + : latest ); setSelectedAttempt(latestAttempt); fetchAttemptActivities(latestAttempt.id); @@ -219,7 +218,7 @@ export function TaskDetailsDialog({ worktree_path: worktreePath, base_commit: null, merge_commit: null, - executor_config: selectedExecutor, + executor: selectedExecutor, }), } ); @@ -499,8 +498,8 @@ export function TaskDetailsDialog({ attempt.created_at ).toLocaleTimeString()} - - Executor + + {attempt.executor || "executor"} @@ -518,11 +517,9 @@ export function TaskDetailsDialog({