Bug
Regression of #42. In codex@1.0.3 the rescue.md frontmatter correctly lists AskUserQuestion in allowed-tools, but /codex:rescue still fails to prompt the user.
Reproduce
- Have a resumable rescue thread from a previous session (so
task-resume-candidate --json reports available: true).
- Run
/codex:rescue <task> without --fresh or --resume.
- 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.
- 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
Bug
Regression of #42. In
codex@1.0.3therescue.mdfrontmatter correctly listsAskUserQuestioninallowed-tools, but/codex:rescuestill fails to prompt the user.Reproduce
task-resume-candidate --jsonreportsavailable: true)./codex:rescue <task>without--freshor--resume.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.codex-companion.mjs taskis never invoked.Expected
AskUserQuestionshould render an interactive picker (as/codex:reviewdoes) and the selected option should be translated into--resumeor--freshbefore calling the companion.Environment
codexplugin version1.0.3(installed via marketplace)rescue.mdfrontmatter currently includes:Suggested fix
Compare frontmatter of
rescue.mdwithreview.md—review.mddeclaresdisable-model-invocation: trueand itsAskUserQuestioncall works.rescue.mdusescontext: forkinstead, which appears to be the regression vector.Consider aligning
rescue.mdwith the working pattern fromreview.md, or addressing the root cause identified in #94 (remove the subagent layer entirely and callcodex-companion.mjsdirectly fromrescue.md).Context