huskies: merge 1066
This commit is contained in:
@@ -198,10 +198,13 @@ pub async fn run(
|
||||
)
|
||||
};
|
||||
|
||||
// Replay current pipeline state so subscribers (worktree lifecycle, merge-failure
|
||||
// auto-spawn) react to any stories already in active stages, then auto-assign.
|
||||
slog!("[agent-mode] Replaying current pipeline state.");
|
||||
crate::pipeline_state::replay_current_pipeline_state();
|
||||
// Reconcile subscriber side effects for the current CRDT state without
|
||||
// flooding the broadcast channel (replaces the former replay_current_pipeline_state call).
|
||||
slog!("[agent-mode] Running startup reconcile pass.");
|
||||
let done_retention = crate::config::ProjectConfig::load(&project_root)
|
||||
.map(|c| std::time::Duration::from_secs(c.watcher.done_retention_secs))
|
||||
.unwrap_or_else(|_| std::time::Duration::from_secs(4 * 3600));
|
||||
crate::startup::tick_loop::run_reconcile_pass(&project_root, &agents, done_retention).await;
|
||||
|
||||
// Run initial auto-assign.
|
||||
slog!("[agent-mode] Initial auto-assign scan.");
|
||||
|
||||
Reference in New Issue
Block a user