From 64dc174d83eb097b789dfa8005ec98074f73cbe3 Mon Sep 17 00:00:00 2001 From: Pranav <105759613+Pranav322@users.noreply.github.com> Date: Wed, 1 Apr 2026 01:14:30 +0530 Subject: [PATCH] Fix /codex:rescue AskUserQuestion contract (#43) --- 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 62bea9b..ef5adb0 100644 --- a/tests/commands.test.mjs +++ b/tests/commands.test.mjs @@ -90,6 +90,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 /);