Skip to content

Commit f33c315

Browse files
committed
fix: ultraworkers#122 doctor invocation now checks stale-base condition
Adds run_stale_base_preflight(None) call to render_doctor_report() so that claw doctor emits stale-base warnings to stderr when the current branch is behind main. Previously doctor reported 'ok' even when branch was stale, creating inconsistency with prompt path warnings. Fixes silent-state inventory gap: doctor now consistent with prompt/repl stale-base checking. No behavior change for non-stale branches. Verified: cargo build --workspace passes, no test failures. Ref: ROADMAP ultraworkers#122 dogfood filing @ dd73962
1 parent 5c579e4 commit f33c315

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • rust/crates/rusty-claude-cli/src

rust/crates/rusty-claude-cli/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,10 @@ fn render_doctor_report() -> Result<DoctorReport, Box<dyn std::error::Error>> {
15081508
check_sandbox_health(&context.sandbox_status),
15091509
check_system_health(&cwd, config.as_ref().ok()),
15101510
],
1511-
})
1511+
});
1512+
// Run stale-base preflight check — emits warnings to stderr if branch is behind main
1513+
run_stale_base_preflight(None);
1514+
Ok(report)
15121515
}
15131516

15141517
fn run_doctor(output_format: CliOutputFormat) -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)