codex-plugin-cc icon indicating copy to clipboard operation
codex-plugin-cc copied to clipboard

Regression of #42: /codex:rescue still cannot prompt via AskUserQuestion in 1.0.3

Open V8-Software opened this issue 7 months ago • 3 comments

Bug

Regression of #42. In [email protected] the rescue.md frontmatter correctly lists AskUserQuestion in allowed-tools, but /codex:rescue still fails to prompt the user.

Reproduce

  1. Have a resumable rescue thread from a previous session (so task-resume-candidate --json reports available: true).
  2. Run /codex:rescue <task> without --fresh or --resume.
  3. The command prints the two options as plain text (1. Start a new Codex thread (Recommended) / 2. Continue current Codex thread) with a note: The AskUserQuestion tool is not available in this environment. I'll present the choice as text instead.
  4. The user's reply is not routed back to the command — codex-companion.mjs task is never invoked.

Expected

AskUserQuestion should render an interactive picker (as /codex:review does) and the selected option should be translated into --resume or --fresh before calling the companion.

Environment

  • Claude Code on Windows 10, Git Bash
  • codex plugin version 1.0.3 (installed via marketplace)
  • rescue.md frontmatter currently includes:
    context: fork
    allowed-tools: Bash(node:*), AskUserQuestion
    

Suggested fix

Compare frontmatter of rescue.md with review.md — review.md declares disable-model-invocation: true and its AskUserQuestion call works. rescue.md uses context: fork instead, which appears to be the regression vector.

Consider aligning rescue.md with the working pattern from review.md, or addressing the root cause identified in #94 (remove the subagent layer entirely and call codex-companion.mjs directly from rescue.md).

Context

  • #42 — original issue (fix landed but behavior regressed)
  • #94 — related, suggests removing subagent layer

V8-Software avatar Apr 15 '26 12:04 V8-Software

Same issue, current workaround is to let Claude bypass the Skill wrapper and call the codex companion directly via Bash. Very disruptive to the workflow.

woerndl avatar Apr 16 '26 20:04 woerndl

commenting same issue here

seanngpack avatar Apr 24 '26 13:04 seanngpack

Also having this issue and I still need a workaround (or edit the skill) :(

NickOtherman avatar May 04 '26 17:05 NickOtherman