diff --git a/plugins/codex/scripts/lib/codex.mjs b/plugins/codex/scripts/lib/codex.mjs index 4f5a95f6..1eeaa1fb 100644 --- a/plugins/codex/scripts/lib/codex.mjs +++ b/plugins/codex/scripts/lib/codex.mjs @@ -1206,7 +1206,12 @@ function resolveInterruptTimeoutMs(timeoutMs) { return DEFAULT_INTERRUPT_TIMEOUT_MS; } -export async function interruptAppServerTurn(cwd, { threadId, turnId, timeoutMs } = {}) { +/** + * @param {string} cwd + * @param {{ threadId?: string, turnId?: string, timeoutMs?: number }} [options] + */ +export async function interruptAppServerTurn(cwd, options = {}) { + const { threadId, turnId, timeoutMs } = options; if (!threadId || !turnId) { return { attempted: false,