fix: disable auto-router — inbox tasks stay unassigned until manually assigned
This commit is contained in:
parent
40ee077d2c
commit
9ff79ad87b
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue