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
@@ -623,16 +623,17 @@ fn build_agent_app_context(
let timer_store = Arc::new(crate::service::timer::TimerStore::load(
project_root.join(".huskies").join("timers.json"),
));
let agents = Arc::new(AgentPool::new(port, watcher_tx.clone()));
let services = Arc::new(crate::services::Services {
project_root: project_root.to_path_buf(),
agents: Arc::new(AgentPool::new(port, watcher_tx.clone())),
agents: Arc::clone(&agents),
bot_name: "Agent".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(std::collections::HashMap::new())),
permission_timeout_secs: 120,
status: Arc::new(crate::service::status::StatusBroadcaster::new()),
status: agents.status_broadcaster(),
});
crate::http::context::AppContext {
state: Arc::new(state),