huskies: merge 946

This commit is contained in:
dave
2026-05-13 07:54:50 +00:00
parent 4a0fbcaa95
commit a7840ea4b0
49 changed files with 378 additions and 314 deletions
@@ -60,9 +60,7 @@ pub(super) fn resolve_qa_mode_from_store(
default: crate::io::story_metadata::QaMode,
) -> crate::io::story_metadata::QaMode {
crate::crdt_state::read_item(story_id)
.and_then(|view| view.qa_mode().map(str::to_string))
.as_deref()
.and_then(crate::io::story_metadata::QaMode::from_str)
.and_then(|view| view.qa_mode())
.unwrap_or(default)
}
+1 -1
View File
@@ -230,7 +230,7 @@ pub(super) async fn run_agent_spawn(
// Story 933: epic linkage is now a typed CRDT register on PipelineItemCrdt.
if let Some(view) = crate::crdt_state::read_item(&sid)
&& let Some(epic_id) = view.epic()
&& let Some(epic_content) = crate::db::read_content(epic_id)
&& let Some(epic_content) = crate::db::read_content(&epic_id.to_string())
{
let block = format!(
"# Epic Context\n\nThis work item belongs to epic `{epic_id}`.\
+1 -1
View File
@@ -147,7 +147,7 @@ mod tests {
"60_story_cleanup",
"2_current",
story_content,
crate::db::ItemMeta::default(),
crate::db::ItemMeta::named("Cleanup"),
);
let pool = AgentPool::new_test(3001);