huskies: merge 1015
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user