Skip to content

🤖 fix: keep waiting for Codex approval after informational results - #4151

Merged
ammario merged 1 commit into
mainfrom
fix/codex-informational-comments
Sep 8, 2026
Merged

🤖 fix: keep waiting for Codex approval after informational results#4151
ammario merged 1 commit into
mainfrom
fix/codex-informational-comments

Conversation

@ammar-agent

@ammar-agent ammar-agent commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow up on #4149 so completed informational Codex results do not make the review waiter fail before its explicit approval signal arrives. The classifier fix merged while this PR was under review; this PR now preserves that implementation unchanged and contains only the missing waiter behavior and regression coverage.

Implementation

  • Reuse the merged classifier to exclude authenticated, completed status summaries and clean-security envelopes from the waiter’s substantive-response count.
  • Keep polling for explicit approval rather than treating an informational result as either approval or a failed review.
  • Preserve the merged blocking policy for unfinished/unknown envelopes, real findings, unresolved threads, and account errors.

Validation

make test-codex-comments passes all 11 regression groups, including completed-result polling, stale/foreign approval signals, findings alongside informational comments, and account errors. make static-check passes.

Risks

This only changes the waiter’s non-terminal state; the CI classifier, comment-resolution checks, and approval/freshness requirements are unchanged.


Generated with xum • Model: openai:gpt-6-astra • Thinking: xhigh • Cost: $24.58

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T18:36:05.501727Z ce98eb6 Manual request
🔒 Security Review Completed 2026-09-08T18:36:58.921594Z ce98eb6 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

Added the live clean-security comment format (including its commit/report metadata) to the classifier and regression tests. The restored informational comments on #4150 now pass the checker without minimization.

@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: 790b6a75f4

ℹ️ 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 scripts/lib/codex_comments.jq Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: 790b6a75f4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ammar-agent
ammar-agent force-pushed the fix/codex-informational-comments branch from 790b6a7 to 8d67b6a Compare September 8, 2026 18:03
@ammar-agent

Copy link
Copy Markdown
Collaborator 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: 8d67b6a787

ℹ️ 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 scripts/lib/codex_comments.jq Outdated
@ammar-agent
ammar-agent force-pushed the fix/codex-informational-comments branch from 8d67b6a to 079fdb7 Compare September 8, 2026 18:23
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 079fdb7b12

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: 079fdb7b12

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Reuse the classifier merged in #4149 without changing its blocking policy. Completed status and no-findings results remain pending until explicit approval, while findings and account errors still fail.

---

_Generated with `xum` • Model: `openai:gpt-6-astra` • Thinking: `xhigh` • Cost: `$24.58`_

<!-- mux-attribution: model=openai:gpt-6-astra thinking=xhigh costs=24.58 -->
@ammar-agent ammar-agent changed the title 🤖 fix: distinguish Codex status updates from review findings 🤖 fix: keep waiting for Codex approval after informational results Sep 8, 2026
@ammar-agent
ammar-agent force-pushed the fix/codex-informational-comments branch from 079fdb7 to ce98eb6 Compare September 8, 2026 18:32
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

#4149 merged during review. Rebased onto current main, preserved its classifier and CI policy unchanged, and removed our duplicate implementation/test harness. This PR is now a two-file waiter follow-up plus regression tests: completed informational envelopes keep polling for explicit approval rather than failing; unfinished/unknown envelopes, findings, and account errors still block. All 11 regression groups and static checks pass.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: ce98eb6c9f

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: ce98eb6c9f

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ammario
ammario added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit deabe91 Sep 8, 2026
35 of 38 checks passed
@ammario
ammario deleted the fix/codex-informational-comments branch September 8, 2026 21:47
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.

2 participants