From 9ff79ad87b2c79d7def3c996fc93bc93d658f089 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 24 Mar 2026 01:08:55 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20disable=20auto-router=20=E2=80=94=20inbo?= =?UTF-8?q?x=20tasks=20stay=20unassigned=20until=20manually=20assigned?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/scheduler.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/scheduler.ts b/src/lib/scheduler.ts index 9ff1814..6f7834e 100644 --- a/src/lib/scheduler.ts +++ b/src/lib/scheduler.ts @@ -449,11 +449,7 @@ async function tick() { const refreshed = await syncAgentLiveStatuses() return { ok: true, message: `Gateway sync: ${r.created} created, ${r.updated} updated, ${r.synced} total | Live status: ${refreshed} refreshed` } }) - : id === 'task_dispatch' ? await autoRouteInboxTasks().then(async (routeResult) => { - const dispatchResult = await dispatchAssignedTasks() - const parts = [routeResult.message, dispatchResult.message].filter(m => m && !m.includes('No ')) - return { ok: routeResult.ok && dispatchResult.ok, message: parts.join(' | ') || 'No tasks to route or dispatch' } - }) + : id === 'task_dispatch' ? await dispatchAssignedTasks() : id === 'aegis_review' ? await runAegisReviews() : id === 'recurring_task_spawn' ? await spawnRecurringTasks() : id === 'stale_task_requeue' ? await requeueStaleTasks() @@ -519,7 +515,7 @@ export async function triggerTask(taskId: string): Promise<{ ok: boolean; messag if (taskId === 'skill_sync') return syncSkillsFromDisk() if (taskId === 'local_agent_sync') return syncLocalAgents() if (taskId === 'gateway_agent_sync') return syncAgentsFromConfig('manual').then(r => ({ ok: true, message: `Gateway sync: ${r.created} created, ${r.updated} updated, ${r.synced} total` })) - if (taskId === 'task_dispatch') return autoRouteInboxTasks().then(async (r) => { const d = await dispatchAssignedTasks(); return { ok: r.ok && d.ok, message: [r.message, d.message].filter(m => m && !m.includes('No ')).join(' | ') || 'No tasks' } }) + if (taskId === 'task_dispatch') return dispatchAssignedTasks() if (taskId === 'aegis_review') return runAegisReviews() if (taskId === 'recurring_task_spawn') return spawnRecurringTasks() if (taskId === 'stale_task_requeue') return requeueStaleTasks()