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