huskies: merge 958

This commit is contained in:
dave
2026-05-13 11:47:27 +00:00
parent 8b53e20ca9
commit 28338a8e8d
7 changed files with 103 additions and 31 deletions
+2 -5
View File
@@ -123,7 +123,7 @@ pub async fn run(
}
}
// Subscribe to watcher events to trigger auto-assign on stage transitions.
// Subscribe to watcher events to trigger auto-assign on every stage transition.
{
let auto_rx = watcher_tx.subscribe();
let auto_agents = Arc::clone(&agents);
@@ -131,10 +131,7 @@ pub async fn run(
tokio::spawn(async move {
let mut rx = auto_rx;
while let Ok(event) = rx.recv().await {
if let watcher::WatcherEvent::WorkItem { ref stage, .. } = event
&& crate::pipeline_state::Stage::from_dir(stage.as_str())
.is_some_and(|s| s.is_active())
{
if let watcher::WatcherEvent::WorkItem { ref stage, .. } = event {
slog!("[agent-mode] CRDT transition in {stage}/; triggering auto-assign.");
auto_agents.auto_assign_available_work(&auto_root).await;
}