diff options
Diffstat (limited to 'makima/frontend/src/routes')
| -rw-r--r-- | makima/frontend/src/routes/mesh.tsx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/makima/frontend/src/routes/mesh.tsx b/makima/frontend/src/routes/mesh.tsx index 314be7b..425721d 100644 --- a/makima/frontend/src/routes/mesh.tsx +++ b/makima/frontend/src/routes/mesh.tsx @@ -622,33 +622,6 @@ export default function MeshPage() { setShowRepoSuggestions(false); }, []); - const handleCreateSubtask = useCallback(async () => { - if (!taskDetail || creating) return; - // Subtasks inherit contract_id from parent - if (!taskDetail.contractId) { - console.error("Parent task has no contract_id"); - return; - } - setCreating(true); - try { - const newTask = await saveTask({ - contractId: taskDetail.contractId, - name: `Subtask of ${taskDetail.name}`, - plan: "# Plan\n\nDescribe what this subtask should accomplish...", - parentTaskId: taskDetail.id, - }); - if (newTask) { - // Refresh current task to show new subtask - const refreshed = await fetchTask(taskDetail.id); - if (refreshed) { - setTaskDetail(refreshed); - } - } - } finally { - setCreating(false); - } - }, [creating, saveTask, taskDetail, fetchTask]); - // Callback when task is updated via CLI const handleTaskUpdatedFromCli = useCallback(async () => { if (id) { @@ -823,7 +796,6 @@ export default function MeshPage() { onRestart={handleRestart} onContinue={handleContinue} onSelectSubtask={handleSelectTask} - onCreateSubtask={handleCreateSubtask} onToggleSubtaskOutput={handleToggleSubtaskOutput} viewingSubtaskId={viewingSubtaskId} onViewContract={(contractId) => navigate(`/contracts/${contractId}`)} |
