Files
reverse-engineering-anything/src/process
morluto e939cd04fe fix(hopper): name the unconfirmed shutdown step in retained cleanup (#10594)
* fix(hopper): name the unconfirmed shutdown step in retained cleanup

When close_binary retains a Hopper document, the cleanup error lists the
retained resources but not why shutdown went unconfirmed. On Linux CI,
hopperClient.handshakeRecovery "recovers an application exit after the
first valid handshake occurs during cleanup" fails intermittently. The
vitest blob reports show only hopper-document and the runtime root
retained with authenticated_application "readable". From those facts we
cannot tell whether the shutdown request was not sent, failed, or was
sent while the application was still observed as present.

Record the shutdown request outcome (method, status, error tag and
provider state, or why it was not sent) and the final exit observation
of the authenticated application in the retained-document diagnostics.
Exit observation now reports a positively observed Linux exit in
progress (PF_EXITING before state Z) as "exiting", separate from
"present". Neither confirms exit. The flaky test asserts the projected
error, so a later failure prints these diagnostics in the CI log.

Refs #10556

* fix(hopper): retain fallback shutdown diagnostics

* test(hopper): retry cleanup after confirmed application exit
2026-11-14 14:34:52 -05:00
..