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 /);