fix(cli): finalize doctor cancellation after failure logging
Make the signal boundary own logging and projection as it does for other cancellable commands. Preserve SIGINT/SIGTERM exit disposition after joined doctor cleanup without changing generic failure classification. Validation: both public signal controls fail on the baseline with exit1 and pass with130/143 after the fix; selected Java groups are empty. Twenty focused tests across five files, check:fast, docs and discovery pass. Authored launcher fixtures do not establish real JVM or native Windows/Linux behavior. Closes #4848
This commit is contained in:
1 parent
ceeff5a417
commit
662fad9072
2 files changed
+156
-2
No files matched your search
@@ -121,8 +121,8 @@ const registerDoctorCommand = (
|
||||
.describe("Require the installed REA skill identity to be aligned"),
|
||||
}),
|
||||
run: ({ options }) =>
|
||||
logCliCommand(logger, "doctor", () =>
|
||||
withCommandCancellation(async (signal) => {
|
||||
withCommandCancellation((signal) =>
|
||||
logCliCommand(logger, "doctor", async () => {
|
||||
const [{ runDoctorOwned }, { createSystemDoctorHost }] =
|
||||
await Promise.all([
|
||||
import("../application/Doctor.js"),
|
||||
|
||||
Reference in new issue
Block a user