huskies: merge 1105 bug Freeze from Backlog stores wrong resume_to — Unfreeze restores to Coding instead of Backlog

This commit is contained in:
dave
2026-05-15 22:28:53 +00:00
parent 6fbe239313
commit 979492449e
2 changed files with 56 additions and 0 deletions
+10
View File
@@ -78,6 +78,16 @@ pub fn apply_transition(
super::Stage::Rejected { reason, .. } | super::Stage::Blocked { reason } => {
crate::crdt_state::set_resume_to_raw(story_id, reason);
}
// Story 1105: write the resume target so read-back can reconstruct the
// correct variant. Without this, the register is stale (or empty) and
// the deserialiser falls back to Coding regardless of where the story
// was when it was frozen.
super::Stage::Frozen { resume_to } => {
crate::crdt_state::set_resume_to_raw(story_id, resume_to.dir_name());
}
super::Stage::ReviewHold { resume_to, .. } => {
crate::crdt_state::set_resume_to_raw(story_id, resume_to.dir_name());
}
_ => {}
}