Skip to content

Reject missing review base refs - #658

Open
jacobbabula wants to merge 4 commits into
openai:mainfrom
jacobbabula:codex/fix-review-base-validation
Open

Reject missing review base refs#658
jacobbabula wants to merge 4 commits into
openai:mainfrom
jacobbabula:codex/fix-review-base-validation

Conversation

@jacobbabula

Copy link
Copy Markdown

Summary

  • validate explicit review base refs before selecting a native review target
  • reject missing or non-commit refs with an actionable error
  • cover both the resolver and command paths, including proof that Codex never starts

Why

review --base <ref> previously forwarded an explicit ref to the native reviewer without resolving it locally. A missing ref could therefore produce a successful-looking review over the wrong scope. The validation now happens during target resolution, before job creation or any app-server/model call.

Fixes #653.

Validation

  • node --test --test-name-pattern="resolveReviewTarget" tests/git.test.mjs (5 passed)
  • focused review command tests (3 passed)
  • direct TypeScript build
  • npm run check-version
  • full Windows suite: 85 passed; 8 unrelated platform-assumption failures involving Unix path formatting, symlink privileges, Claude transfer paths, and taskkill

AI assistance was used during implementation and verification; I reviewed the resulting diff and test evidence.

@jacobbabula
jacobbabula marked this pull request as ready for review August 20, 2026 02:22
@jacobbabula
jacobbabula requested a review from a team August 20, 2026 02:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2238bf8714

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/codex/scripts/lib/git.mjs Outdated
@jacobbabula

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b156033e25

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/codex/scripts/codex-companion.mjs Outdated
@jacobbabula

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f307feac2c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/codex/scripts/lib/git.mjs Outdated
@jacobbabula

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: b933a995b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review --base <nonexistent-sha> exits 0 and reviews a far wider diff

1 participant