huskies: merge 1060

This commit is contained in:
dave
2026-05-14 19:26:22 +00:00
parent 667601012c
commit 54d9737428
@@ -138,6 +138,19 @@ impl AgentPool {
return;
}
// Story 1060: if the story was deleted while the merge was running,
// discard the result silently — no MergeFailure notification, no
// state-machine transition. Writing failure for a tombstoned story
// would emit a spurious "merge failed" notification to chat.
if crate::crdt_state::is_tombstoned(&sid) {
slog!(
"[merge] Merge for '{}' completed but story is tombstoned; skipping result write",
sid
);
crate::crdt_state::delete_merge_job(&sid);
return;
}
let success = matches!(
&report,
Ok(r) if matches!(r.result, crate::agents::merge::MergeResult::Success { .. })