huskies: merge 1236 story Ask "what happened with X" and get a paged, subject-scoped history

This commit is contained in:
Huskies Agent
2026-07-20 14:44:32 +00:00
parent 30ca3ad463
commit c9804ecfdf
18 changed files with 911 additions and 25 deletions
@@ -170,6 +170,14 @@ pub(in crate::agents::pool) async fn run_server_owned_completion(
"[agents] Server-owned completion for '{story_id}:{agent_name}': gates_passed={gates_passed}"
);
crate::history::record_agent_run(
story_id,
agent_name,
session_id.as_deref(),
gates_passed,
&gate_output,
);
// Notify chat transports of the agent completion result.
let _ = watcher_tx.send(WatcherEvent::AgentCompleted {
story_id: story_id.to_string(),