huskies: merge 1017
This commit is contained in:
@@ -73,6 +73,14 @@ pub(crate) fn spawn_event_bridges(
|
||||
// accumulating in the process heap (story 996).
|
||||
crate::db::gc::spawn_content_gc_subscriber();
|
||||
|
||||
// Cost-rollup bootstrap: pre-populate the register from existing JSONL
|
||||
// so status renderers show correct costs after a server restart.
|
||||
crate::service::agents::cost_rollup::init_from_disk(&root);
|
||||
|
||||
// Cost-rollup subscriber: snapshots per-story token costs into the
|
||||
// in-memory register whenever a story reaches a terminal stage.
|
||||
crate::agents::pool::cost_rollup_subscriber::spawn_cost_rollup_subscriber(root.clone());
|
||||
|
||||
let watcher_auto_rx = watcher_tx.subscribe();
|
||||
let watcher_auto_agents = Arc::clone(&agents);
|
||||
tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user