huskies: merge 735_story_attach_statuseventbuffer_to_each_agent_session_scoped_per_project_reset_on_restart

This commit is contained in:
dave
2026-04-27 18:00:53 +00:00
parent d654f55981
commit 272a592a4d
13 changed files with 296 additions and 9 deletions
+3 -2
View File
@@ -52,16 +52,17 @@ impl Services {
/// bot display name.
pub fn new_test(project_root: std::path::PathBuf, bot_name: String) -> std::sync::Arc<Self> {
let (_perm_tx, perm_rx) = mpsc::unbounded_channel();
let agents = std::sync::Arc::new(crate::agents::AgentPool::new_test(3000));
std::sync::Arc::new(Self {
project_root,
agents: std::sync::Arc::new(crate::agents::AgentPool::new_test(3000)),
status: agents.status_broadcaster(),
agents,
bot_name,
bot_user_id: String::new(),
ambient_rooms: std::sync::Arc::new(std::sync::Mutex::new(HashSet::new())),
perm_rx: std::sync::Arc::new(TokioMutex::new(perm_rx)),
pending_perm_replies: std::sync::Arc::new(TokioMutex::new(HashMap::new())),
permission_timeout_secs: 120,
status: std::sync::Arc::new(StatusBroadcaster::new()),
})
}
}