From 0e966e712eda5425cec80e5010a640244e6a76a1 Mon Sep 17 00:00:00 2001 From: iliya Date: Sat, 28 Mar 2026 20:51:29 +0200 Subject: [PATCH] =?UTF-8?q?fix(graph):=20always=20run=20kanban=20layout=20?= =?UTF-8?q?=E2=80=94=20tasks=20were=20not=20positioned=20in=20columns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/agent-graph/src/hooks/useGraphSimulation.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/agent-graph/src/hooks/useGraphSimulation.ts b/packages/agent-graph/src/hooks/useGraphSimulation.ts index 23469f3a..1f104cfc 100644 --- a/packages/agent-graph/src/hooks/useGraphSimulation.ts +++ b/packages/agent-graph/src/hooks/useGraphSimulation.ts @@ -265,10 +265,8 @@ function tickFrame( } } - // Re-layout tasks in kanban zones ONLY when members moved (alpha > 0 or drag) - if (!sim || sim.alpha() > 0.001 || state.particles.length > 0) { - KanbanLayoutEngine.layout(state.nodes); - } + // Re-layout tasks in kanban zones — always run to handle new/moved tasks + KanbanLayoutEngine.layout(state.nodes); // Update particle progress — in-place removal (no new array allocation) let pw = 0;