From ffb9be40c6ab65f7c8c341fecc6eec20fef20fb3 Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Tue, 1 Sep 2026 22:39:11 -0700 Subject: [PATCH] fix(runtime): preserve unfenced inspect call shape --- ...-runtime-restore-structured-agent-session-tabs-once.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/runtime/orca-runtime-restore-structured-agent-session-tabs-once.ts b/src/main/runtime/orca-runtime-restore-structured-agent-session-tabs-once.ts index 0fa109f1f79..d0ced6c82af 100644 --- a/src/main/runtime/orca-runtime-restore-structured-agent-session-tabs-once.ts +++ b/src/main/runtime/orca-runtime-restore-structured-agent-session-tabs-once.ts @@ -160,7 +160,13 @@ export class OrcaRuntimeWithRestoreStructuredAgentSessionTabsOnce extends OrcaRu throw new Error('terminal_gone') } if (this.ptyController.inspectProcess) { - const inspection = await this.ptyController.inspectProcess(leaf.ptyId, options) + // Preserve the legacy one-argument call shape when no incarnation + // fence was requested; some providers use arity to distinguish the + // compatibility path from the fenced remote inspection. + const inspection = + options === undefined + ? await this.ptyController.inspectProcess(leaf.ptyId) + : await this.ptyController.inspectProcess(leaf.ptyId, options) const evidence = inspection.foregroundProcessEvidence // The runtime handle is the request identity on this wire; keep the // host-owned leaf PTY id out of the client-facing comparison.