huskies: merge 962

This commit is contained in:
dave
2026-05-13 11:58:50 +00:00
parent 658e02c9b2
commit 184c214c34
19 changed files with 204 additions and 44 deletions
+4 -1
View File
@@ -419,7 +419,10 @@ mod tests {
"",
Some("Agent Story"),
);
crate::crdt_state::set_agent("55_story_agent_story", Some("coder-1"));
crate::crdt_state::set_agent(
"55_story_agent_story",
Some(crate::config::AgentName::Coder1),
);
let output = status_triage_cmd(tmp.path(), "55").unwrap();
assert!(
output.contains("coder-1"),
+4 -1
View File
@@ -122,7 +122,10 @@ pub async fn handle_assign(
if running_coders.is_empty() {
// No coder running — persist the CRDT agent pin for the future start.
crate::crdt_state::set_agent(&story_id, Some(&agent_name));
crate::crdt_state::set_agent(
&story_id,
agent_name.parse::<crate::config::AgentName>().ok(),
);
return format!(
"Assigned **{agent_name}** to **{story_name}** (story {story_number}). \
The model will be used when the story starts."