openai / openai/codex-plugin-cc
`review --base <nonexistent-sha>` exits 0 and reviews a far wider diff
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 33.3k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Passing a base that does not exist in the repository does not fail the run. The companion proceeds, silently falls back to a much wider diff than the caller asked for, and exits 0 — so a CI step or a wrapper script reads it as a clean, scoped review.
Why it is expensive rather than merely wrong: the failure mode is a review that looks successful. In our use the base is a wave-start SHA passed by a script; a typo produced a run that swept months of history, returned findings about code nobody had touched in the change under review, and reported success. Nothing in the output said the base had not resolved.
Expected: exit non-zero with "base not found in this repository", before any model call.
Workaround we adopted: validate before every launch — git cat-file -e "<sha>^{commit}" || exit 1.
Environment: codex-plugin-cc companion via the app server; observed 2026-08-09.
Related but distinct: #611 §1 covers a run exiting 0 with no verdict on a valid base.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
コンパニオンアプリのサーバーによる review --base の処理から始め、diff とモデル呼び出しのパスが実行される前に、指定された SHA がどのように解決されるかを追跡します。存在しない base で再現し、モデル呼び出しを行わずに、"base not found in this repository" とともにゼロ以外の終了ステータスで終了することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 68/100