summaryrefslogtreecommitdiff
path: root/makima/frontend/src/routes/mesh.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'makima/frontend/src/routes/mesh.tsx')
-rw-r--r--makima/frontend/src/routes/mesh.tsx37
1 files changed, 6 insertions, 31 deletions
diff --git a/makima/frontend/src/routes/mesh.tsx b/makima/frontend/src/routes/mesh.tsx
index f210227..362b2e0 100644
--- a/makima/frontend/src/routes/mesh.tsx
+++ b/makima/frontend/src/routes/mesh.tsx
@@ -4,11 +4,10 @@ import { Masthead } from "../components/Masthead";
import { TaskList } from "../components/mesh/TaskList";
import { TaskDetail } from "../components/mesh/TaskDetail";
import { TaskOutput } from "../components/mesh/TaskOutput";
-import { UnifiedMeshChatInput } from "../components/mesh/UnifiedMeshChatInput";
import { ContractCompleteQuestion } from "../components/mesh/ContractCompleteQuestion";
import { useTasks } from "../hooks/useTasks";
import { useTaskSubscription, type TaskUpdateEvent, type TaskOutputEvent } from "../hooks/useTaskSubscription";
-import type { TaskWithSubtasks, MeshChatContext, ContractSummary, ContractWithRelations, DaemonDirectory, TaskSummary, RepositoryHistoryEntry } from "../lib/api";
+import type { TaskWithSubtasks, ContractSummary, ContractWithRelations, DaemonDirectory, TaskSummary, RepositoryHistoryEntry } from "../lib/api";
import { startTask as startTaskApi, stopTask as stopTaskApi, getTaskOutput, listContracts, getContract, getDaemonDirectories, continueTask as continueTaskApi, resumeSupervisor, branchTask, getRepositorySuggestions, getTaskDiff } from "../lib/api";
import { DirectoryInput } from "../components/mesh/DirectoryInput";
import { useAuth } from "../contexts/AuthContext";
@@ -650,28 +649,8 @@ export default function MeshPage() {
setShowRepoSuggestions(false);
}, []);
- // Callback when task is updated via CLI
- const handleTaskUpdatedFromCli = useCallback(async () => {
- if (id) {
- const updated = await fetchTask(id);
- if (updated) {
- setTaskDetail(updated);
- }
- }
- // Also refresh the task list
- fetchTasks();
- }, [id, fetchTask, fetchTasks]);
-
- // Calculate chat context based on current view
- const chatContext: MeshChatContext = useMemo(() => {
- if (!id) {
- return { type: "mesh" };
- }
- if (taskDetail?.parentTaskId) {
- return { type: "subtask", taskId: id, parentTaskId: taskDetail.parentTaskId };
- }
- return { type: "task", taskId: id };
- }, [id, taskDetail?.parentTaskId]);
+ // handleTaskUpdatedFromCli + chatContext drove the deleted
+ // UnifiedMeshChatInput; gone with the LLM module.
// Handle resizing of the split panel
const handleResizeStart = useCallback((e: MouseEvent) => {
@@ -904,13 +883,9 @@ export default function MeshPage() {
</div>
)}
- {/* Mesh Chat Input - always rendered to persist state across navigation */}
- <div className="shrink-0">
- <UnifiedMeshChatInput
- context={chatContext}
- onUpdate={id ? handleTaskUpdatedFromCli : fetchTasks}
- />
- </div>
+ {/* UnifiedMeshChatInput removed alongside the LLM module. The
+ mesh page is now a pure task viewer; spawning / editing
+ tasks via natural language chat went with LLM removal. */}
</div>
</main>