openai / openai/codex-plugin-cc

Codex rescue task gets stuck in infinite tool-call loop during code review

Open
#115 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
33.3k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Description

When using the Codex plugin for Claude Code (codex:rescue) to review code changes, the Codex task occasionally gets stuck in an infinite tool-call loop. It reads all the necessary files and converges on findings, but then loops back to re-reading the same files instead of producing a final review output.

Steps to Reproduce

  1. Use Claude Code with the Codex plugin (v1.0.2)
  2. Invoke codex:rescue with a code review task, e.g.:
    Review the changes between commits <base> and HEAD. Focus on Spectre.Console integration, null safety, behavioral parity...
    
  3. Codex reads all relevant diffs and source files successfully
  4. Instead of producing a final summary, it loops back to re-reading the same files

Observed Behavior

  • Codex's last progress message: "我已经收敛到几条具体问题了" (I've converged on a few specific issues)
  • After this, it re-enters file reading commands (nl -ba, sed -n, rg) on files it has already read
  • The loop continues until the task is terminated
  • No final review output is produced

Expected Behavior

Codex should produce a final review summary after reading all necessary files, not loop back to re-reading them.

Environment

  • Claude Code: v2.1.90
  • Codex plugin: v1.0.2
  • Codex CLI: v0.118.0
  • OS: macOS (Darwin 25.4.0, Apple Silicon)
  • Runtime mode: shared session (direct startup)

Additional Context

  • This happened during a review of ~300 lines of changes across 6 files
  • A separate Codex task reviewing the same codebase (full repo review, ~2000 lines) completed successfully in ~5 minutes
  • The stuck task was in "verifying" phase when terminated
  • The issue seems intermittent — not every review task triggers it

Workaround

Cancel the stuck task and retry. The retry (or a concurrent task) may complete successfully.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the codex:rescue entry point during a shared-session code review, focusing on the transition from the verifying phase to final output. No source files or tests are named, so trace the repeated nl -ba, sed -n, and rg calls and compare with a review that completes successfully. Done means the task produces a final review summary instead of re-reading files indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.