fix(runtime): require fresh owning PTY presence

This commit is contained in:
Jinwoo-H
2026-08-23 21:54:12 -04:00
parent 2c94ee2058
commit 19dc9670ad
+4
View File
@@ -20704,6 +20704,9 @@ export class OrcaRuntimeService {
if (!evidence || evidence.status !== 'live') {
return result(evidence?.status ?? 'unverifiable')
}
if (!this.inventoryProvesRestoredBindingPresent(freshPtyInventory, binding)) {
return result('unverifiable')
}
if (binding.source === 'persisted') {
return result('unverifiable')
}
@@ -20748,6 +20751,7 @@ export class OrcaRuntimeService {
if (
encodedHost === 'foreign' ||
(encodedHost !== null && encodedHost !== hook.hostKey) ||
(controllerIdentity?.wslDistro && !hook.hostKey.startsWith('wsl:')) ||
(hook.hostKey.startsWith('wsl:') &&
controllerIdentity?.wslDistro?.toLowerCase() !== hook.hostKey.slice(4))
) {