fix: preserve handoff cleanup and ICDB cancellation bindings

This commit is contained in:
阿白叔 committed 2026-11-18 09:05:22 +08:00
1 parent b4737b5102
commit fa1f662e1d
6 files changed
+169 -10

No files matched your search

@@ -0,0 +1,38 @@
# PR 16 small review follow-up
Refs #15. Follow-up to review comment 446 on `b4737b5`; this does not authorize
merging, release publication or issue closure.
- Verify now propagates a registered `TaskHandoff` instead of recording it as a
close error and continuing a second native cleanup. It preserves the cancelled
or failed result as evidence before returning cleanup ownership to the observer.
- Repair runs local worker cleanup even when observer registration or handoff
raises. A live native worker retains its existing observer-owned handles;
`DesktopWorker.close()` does not terminate it or claim resources are released.
- Starting an ICDB check binds the fallback Stop signal to the task's actual
context. The normal global Stop and per-task cancellation policies are unchanged.
- Native Versions/Repair errors now explain that the main PRJ must contain exactly
one nonempty `iCDBDir` using a project-local relative path. Absolute paths,
including absolute paths inside Work, and multiple entries remain unsupported.
No PRJ is rewritten and no native tool is launched for rejected input.
The previously approved three-second defaults remain: submitted execution
continues; unknown ownership/read-write confirmation skips; version selection
uses the last manual save; exit saves; force termination defaults to cancellation.
This follow-up does not add or change those product decisions.
## Validation
The unchanged targeted baseline passed 31 tests. New behavior regressions first
recorded four failures and four passes; after the fixes all eight passed.
Related Verify, Repair, native-entry, observer, ICDB/UI and shutdown regressions
passed **363 tests in 157.24 seconds**, exit code 0.
Compilation and whitespace checks also passed. Independent scoped review found
zero Critical, Important or Minor issues in the follow-up fixes.
These are source tests with real task contexts and Qt controls; native process
boundaries are replaced where the tests require them. This follow-up does not
claim a new full-suite run, rebuilt frozen package, or actual Mentor acceptance.
The earlier 2,418-test full run and B14 package still belong to source `c1e2596`.
Original field inconsistency, the retained-phase native replay, Windows 10 and
production SMB acceptance remain outstanding as documented in the main matrix.