huskies: merge 964

This commit is contained in:
dave
2026-05-13 14:51:39 +00:00
parent c811672e18
commit dcb43c465a
24 changed files with 234 additions and 188 deletions
+6 -3
View File
@@ -58,7 +58,7 @@ impl std::fmt::Display for Error {
pub struct WorkItemContent {
pub content: String,
pub stage: crate::pipeline_state::Stage,
pub name: Option<String>,
pub name: String,
pub agent: Option<crate::config::AgentName>,
}
@@ -162,7 +162,10 @@ pub fn get_work_item_content(
let filename = format!("{story_id}.md");
let crdt_view = crate::crdt_state::read_item(story_id);
let crdt_name = crdt_view.as_ref().map(|v| v.name().to_string());
let crdt_name = crdt_view
.as_ref()
.map(|v| v.name().to_string())
.unwrap_or_default();
let crdt_agent = crdt_view.as_ref().and_then(|v| v.agent());
for (stage_dir, stage) in &stages {
@@ -320,7 +323,7 @@ max_budget_usd = 5.0
let item = get_work_item_content(tmp.path(), "42_story_foo").unwrap();
assert!(item.content.contains("Some content."));
assert_eq!(item.stage, crate::pipeline_state::Stage::Backlog);
assert_eq!(item.name, Some("Foo Story".to_string()));
assert_eq!(item.name, "Foo Story");
}
#[test]