Skip to content

/codex:rescue frontmatter disallows AskUserQuestion even though the command requires it #42

@Pranav322

Description

@Pranav322

Bug

/codex:rescue is internally inconsistent: its frontmatter only allows Bash(node:*), but the command body explicitly instructs Claude Code to use AskUserQuestion when a resumable rescue thread exists.

Evidence

  • plugins/codex/commands/rescue.md:5
    • allowed-tools: Bash(node:*)
  • plugins/codex/commands/rescue.md:29
    • instructs the command to use AskUserQuestion exactly once when task-resume-candidate --json reports available: true

Impact

The documented resume/new-thread flow for /codex:rescue may be blocked by the command’s own tool restrictions.

Suggested Fix

Add AskUserQuestion to the frontmatter allowed tools in plugins/codex/commands/rescue.md and keep regression coverage in tests/commands.test.mjs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions