huskies: merge 1100 bug Multiple LLM agents can run concurrently on the same story (coder + mergemaster + others) — enforce one-agent-per-story invariant
This commit is contained in:
@@ -209,6 +209,10 @@ pub(crate) fn spawn_tick_loop(
|
||||
{
|
||||
crate::slog!("[reconcile] Running periodic reconcile pass.");
|
||||
run_reconcile_pass(r, &agents, done_retention).await;
|
||||
// Stop LLM agents whose pipeline stage no longer matches the
|
||||
// story's current canonical stage. Cleans up stale agents left
|
||||
// behind after a stage transition (story 1100).
|
||||
agents.reconcile_canonical_agents(r).await;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user