huskies: merge 671_refactor_migrate_pipeline_state_consumers_from_string_comparisons_to_typed_pipelinestage_enum
This commit is contained in:
@@ -18,7 +18,13 @@ pub(super) async fn tool_merge_agent_work(
|
||||
// Check CRDT stage before attempting merge — if already done or archived,
|
||||
// return success immediately to avoid spurious error notifications.
|
||||
if let Some(item) = crate::crdt_state::read_item(story_id)
|
||||
&& (item.stage == "5_done" || item.stage == "6_archived")
|
||||
&& crate::pipeline_state::Stage::from_dir(&item.stage).is_some_and(|s| {
|
||||
matches!(
|
||||
s,
|
||||
crate::pipeline_state::Stage::Done { .. }
|
||||
| crate::pipeline_state::Stage::Archived { .. }
|
||||
)
|
||||
})
|
||||
{
|
||||
return serde_json::to_string_pretty(&json!({
|
||||
"story_id": story_id,
|
||||
|
||||
Reference in New Issue
Block a user