Skip to content

fix: skip GitHub confirmation comments without a token - #1120

Merged
sidneyswift merged 1 commit into
mainfrom
codex/github-comment-token-current-main
Oct 24, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/github-comment-token-current-main

Conversation

@sswiftdrtv

Copy link
Copy Markdown
Contributor

When Recoup receives feedback on a coding-agent PR, it queues the update and then posts a confirmation comment. If GITHUB_TOKEN is missing or empty, the comment helper currently still sends an invalid GitHub request. This change skips that request and logs one static configuration message; configured-token behavior remains unchanged.

The helper and five-case regression are unchanged from the previously accepted repair. The verification note is reconciled to API #1119, which already keeps queued updates intact when a confirmation fails. This guard does not cover the caller's separate PR-details lookup or enable credentials.

Validation: 123 coding-agent tests across 28 files pass against the current API #1119 caller, including the real helper/handler integration with mocked external boundaries. Before the guard, four missing/empty-token cases fail on forbidden requests while the configured-token network-error control passes. Repository lint, targeted formatting, diff checks and focused helper type checks pass. Tests use synthetic fixtures with network access blocked; no real comment or job was triggered.

Related: the bounded finding in API #295, tracked under Mono #358. This does not restore or accept the entire historical PR.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 24, 2026 6:10am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-10-24T06:10:45.916047Z 7c5877f PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 2ff7daf and 7c5877f.

Files ignored due to path filters: 2
  • docs/verification/github-comment-token-guard.md is excluded by none and included by none
  • lib/coding-agent/__tests__/postGitHubComment.tokenGuard.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
Files selected for processing: 1
  • lib/coding-agent/postGitHubComment.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sidneyswift
sidneyswift merged commit edc0dc8 into main Oct 24, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 7c5877f5 Deployed Oct 24, 2026 by vercel[bot]
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