huskies: merge 735_story_attach_statuseventbuffer_to_each_agent_session_scoped_per_project_reset_on_restart
This commit is contained in:
@@ -61,6 +61,12 @@ impl AgentPool {
|
||||
let event_log: Arc<Mutex<Vec<AgentEvent>>> = Arc::new(Mutex::new(Vec::new()));
|
||||
let log_session_id = uuid::Uuid::new_v4().to_string();
|
||||
|
||||
// Create the per-session status buffer subscribed to this project's
|
||||
// broadcaster. On restart a fresh buffer replaces the old one,
|
||||
// giving each session an independent, clean subscription (story 735).
|
||||
let status_buffer =
|
||||
crate::service::status::buffer::StatusEventBuffer::new(&self.status_broadcaster);
|
||||
|
||||
// Move story from backlog/ to current/ before checking agent
|
||||
// availability so that auto_assign_available_work can pick it up even
|
||||
// when all coders are currently busy (story 203). Only do this for
|
||||
@@ -259,6 +265,7 @@ impl AgentPool {
|
||||
merge_failure_reported: false,
|
||||
throttled: false,
|
||||
termination_reason: None,
|
||||
status_buffer: Some(status_buffer),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user