huskies: merge 668_bug_pipeline_advances_coder_work_to_merge_when_gates_passed_false

This commit is contained in:
dave
2026-04-27 11:33:36 +00:00
parent 65d2fb210c
commit 5da29c3d91
4 changed files with 299 additions and 13 deletions
+3 -2
View File
@@ -47,8 +47,9 @@ pub(crate) fn worktree_has_committed_work(wt_path: &Path) -> bool {
/// is evaluated, then restores them afterward. Uncommitted work in worktrees is
/// never junk — it may be the next agent session's starting point (bug 651).
///
/// Used as part of the "work survived" check when an agent crashes mid-output
/// (bug 645).
/// No longer called from main pipeline code (bug 668 replaced cargo-check with
/// run_tests evidence), but retained for the bug-651 stash/restore regression test.
#[cfg(test)]
pub(crate) fn cargo_check_in_worktree(wt_path: &Path) -> bool {
// Stash uncommitted changes (including untracked files) so cargo check
// evaluates only committed code. We restore them afterward.