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
@@ -119,16 +119,17 @@ impl AppContext {
let timer_store = Arc::new(TimerStore::load(
project_root.join(".huskies").join("timers.json"),
));
let agents = Arc::new(AgentPool::new(3001, watcher_tx.clone()));
let services = Arc::new(Services {
project_root: project_root.clone(),
agents: Arc::new(AgentPool::new(3001, watcher_tx.clone())),
agents: Arc::clone(&agents),
bot_name: "Assistant".to_string(),
bot_user_id: String::new(),
ambient_rooms: Arc::new(std::sync::Mutex::new(std::collections::HashSet::new())),
perm_rx: Arc::new(tokio::sync::Mutex::new(perm_rx)),
pending_perm_replies: Arc::new(tokio::sync::Mutex::new(HashMap::new())),
permission_timeout_secs: 120,
status: Arc::new(crate::service::status::StatusBroadcaster::new()),
status: agents.status_broadcaster(),
});
Self {
state: Arc::new(state),