fix(session): preserve investigation records after failed target opens (#2754)

Squash merge of https://github.com/morluto/rea/pull/2754.

Co-authored-by: Adkid-Zephyr <laufs0310@163.com>
This commit is contained in:
Feng
2026-10-13 23:46:23 +08:00
committed by GitHub
parent 48b90fbaa4
commit af7638fa9d
3 changed files with 192 additions and 4 deletions
+3 -1
View File
@@ -283,7 +283,9 @@ export class BinarySession
previous.route.identity.id,
);
if (!closed.ok) {
this.clearSessionRecords();
// A failed open retires the provider cache, not the investigation.
// Preserve Evidence and Unknown history for export and recovery.
this.clearSnapshot();
this.#clearRuntimeAvailability();
return closed;
}