From f4f97ee4a04bab80ab61fcbb00d2f5da7e4b46fc Mon Sep 17 00:00:00 2001 From: Pranav322 Date: Tue, 31 Mar 2026 10:34:13 +0530 Subject: [PATCH] Fix /codex:rescue AskUserQuestion contract --- plugins/codex/commands/rescue.md | 2 +- tests/commands.test.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/codex/commands/rescue.md b/plugins/codex/commands/rescue.md index ab09c0c..c92a289 100644 --- a/plugins/codex/commands/rescue.md +++ b/plugins/codex/commands/rescue.md @@ -2,7 +2,7 @@ description: Delegate investigation, an explicit fix request, or follow-up rescue work to the Codex rescue subagent argument-hint: "[--background|--wait] [--resume|--fresh] [--model ] [--effort ] [what Codex should investigate, solve, or continue]" context: fork -allowed-tools: Bash(node:*) +allowed-tools: Bash(node:*), AskUserQuestion --- Route this request to the `codex:codex-rescue` subagent. diff --git a/tests/commands.test.mjs b/tests/commands.test.mjs index a00e8dd..9ccdd83 100644 --- a/tests/commands.test.mjs +++ b/tests/commands.test.mjs @@ -89,6 +89,7 @@ test("rescue command absorbs continue semantics", () => { const runtimeSkill = read("skills/codex-cli-runtime/SKILL.md"); assert.match(rescue, /The final user-visible response must be Codex's output verbatim/i); + assert.match(rescue, /allowed-tools:\s*Bash\(node:\*\),\s*AskUserQuestion/); assert.match(rescue, /--background\|--wait/); assert.match(rescue, /--resume\|--fresh/); assert.match(rescue, /--model /);