huskies: merge 1015

This commit is contained in:
dave
2026-05-13 23:33:30 +00:00
parent 69b207872a
commit 5ed1438ab9
22 changed files with 227 additions and 73 deletions
+4 -4
View File
@@ -46,9 +46,9 @@ pub struct RuntimeContext {
/// Eager recording ensures the session survives a watchdog kill that aborts
/// the tokio task before `run_agent_spawn`'s `record_session()` call runs.
pub project_root: std::path::PathBuf,
/// Agent model name — forms part of the session store key used for eager
/// recording (bug 967). An empty string disables eager recording.
pub model: String,
/// Agent model — forms part of the session store key used for eager
/// recording (bug 967). `None` disables eager recording.
pub model: Option<crate::agents::AgentModel>,
}
/// Result returned by a runtime after the agent session completes.
@@ -134,7 +134,7 @@ mod tests {
session_id_to_resume: None,
fresh_prompt: None,
project_root: std::path::PathBuf::from("/tmp/project"),
model: "sonnet".to_string(),
model: Some(crate::agents::AgentModel::Sonnet),
};
assert_eq!(ctx.story_id, "42_story_foo");
assert_eq!(ctx.agent_name, "coder-1");