From e66701778bb4ea84ec714ce200f4fc98ffacdb5d Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Tue, 8 Sep 2026 03:21:19 -0400 Subject: [PATCH] docs(runtime): say why resolveLiveLeafForHandle re-links before lookup --- .../runtime/orca-runtime-serialize-headless-terminal-buffer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/runtime/orca-runtime-serialize-headless-terminal-buffer.ts b/src/main/runtime/orca-runtime-serialize-headless-terminal-buffer.ts index 5ee0329ef0f..673c31167f4 100644 --- a/src/main/runtime/orca-runtime-serialize-headless-terminal-buffer.ts +++ b/src/main/runtime/orca-runtime-serialize-headless-terminal-buffer.ts @@ -109,6 +109,8 @@ export class OrcaRuntimeWithSerializeHeadlessTerminalBuffer extends OrcaRuntimeW // still awaiting their first PTY (ptyId null) may adopt it, which preserves // the mobile pre-spawn subscribe flow. resolveLiveLeafForHandle(handle: string): { ptyId: string | null } | null { + // Why the discarded call: it re-links a runtime-owned handle whose `handles` record a renderer + // reload cleared, so the lookup below sees it; without it a phone's held handle inspects nothing. this.getLivePtyForHandle(handle) const record = this.handles.get(handle) if (!record) {