From b64b3f96e6fa53b5e6c265352fd646a5d66e8af6 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 2 Jan 2026 21:12:44 +0900 Subject: [PATCH] fix(recovery): correct prompt_async API path parameter from sessionID to id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The prompt_async method expects path parameter named 'id' (not 'sessionID'). This bug prevented the 'Continue' message from being sent after compaction, causing the recovery process to fail silently due to silent error swallowing in the empty catch block. Fixes: - Type definition: changed path: { sessionID: string } to path: { id: string } - Implementation: changed path: { sessionID } to path: { id: sessionID } at 2 locations (lines 411, 509) 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- .../anthropic-context-window-limit-recovery/executor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks/anthropic-context-window-limit-recovery/executor.ts b/src/hooks/anthropic-context-window-limit-recovery/executor.ts index 1c5abd6..dade30d 100644 --- a/src/hooks/anthropic-context-window-limit-recovery/executor.ts +++ b/src/hooks/anthropic-context-window-limit-recovery/executor.ts @@ -39,7 +39,7 @@ type Client = { query: { directory: string }; }) => Promise; prompt_async: (opts: { - path: { sessionID: string }; + path: { id: string }; body: { parts: Array<{ type: string; text: string }> }; query: { directory: string }; }) => Promise; @@ -408,7 +408,7 @@ export async function executeCompact( setTimeout(async () => { try { await (client as Client).session.prompt_async({ - path: { sessionID }, + path: { id: sessionID }, body: { parts: [{ type: "text", text: "Continue" }] }, query: { directory }, }); @@ -506,7 +506,7 @@ export async function executeCompact( setTimeout(async () => { try { await (client as Client).session.prompt_async({ - path: { sessionID }, + path: { id: sessionID }, body: { parts: [{ type: "text", text: "Continue" }] }, query: { directory }, });