Skip to content

Preserve accepted PR updates after confirmation failures - #1119

Merged
sidneyswift merged 2 commits into
mainfrom
codex/github-feedback-ack-current-main
Oct 24, 2026
Merged

sidneyswift merged 2 commits into
mainfrom
codex/github-feedback-ack-current-main

Conversation

@sswiftdrtv

@sswiftdrtv sswiftdrtv commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

When a developer leaves feedback on a pull request, the update can start successfully and then the confirmation comment can fail to send. That comment error currently reports an update failure, restores the previous state and lets a later delivery request the same work again.

Keep the accepted update marked as updating when only the confirmation fails. Return the existing success response and let a later sequential delivery receive the existing busy response. Failures to start the update still restore the previous state and return the existing 500 response.

Validation: the initial API1117-based candidate passed 114 mocked cases across 27 files (105 coding-agent cases plus nine additional probes), versus five failures and 109 passing controls on its base. After integrating released API1118/main, all 38 affected cases across five files and focused TypeScript checks pass. Those checks cover both merge-error parsing and the webhook acknowledgement paths. The three acknowledgement files and complete PR patch are unchanged; the released merge parser is the only changed file among the 42 previously reviewed production files, and none of the webhook's 15 direct source files changed between the two main versions. Initial repository lint, formatting and diff checks passed; fresh strict CI runs on the integrated head.

This does not add retries or claim concurrent deduplication, exactly-once delivery or recovery from an unknown dispatch outcome. No real job or GitHub comment was used for testing. Public API documentation is unchanged.

Continues the acknowledgement repair tracked in #295 and recoupable/mono#358.

@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 5:56am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 0529215 and 942e4cd.

Files ignored due to path filters: 2
  • docs/verification/github-feedback-acknowledgement.md is excluded by none and included by none
  • lib/coding-agent/__tests__/handleGitHubWebhook.acknowledgement.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
Files selected for processing: 1
  • lib/coding-agent/handleGitHubWebhook.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The webhook handler now handles update-trigger failures separately from acknowledgment-posting failures. If posting the acknowledgment fails after a successful trigger, the handler logs the failure and returns update_triggered.

Changes: GitHub webhook acknowledgment

Layer / File(s) Summary
Separate trigger and acknowledgment handling
lib/coding-agent/handleGitHubWebhook.ts
The trigger failure path restores the prior PR state and returns a 500 error. After a successful trigger, acknowledgment-posting failures are logged, and the handler returns update_triggered.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: sweetmantech

Merge Risk: Minimal · up to 942e4

The webhook preserves successful updates when acknowledgment posting fails, with no unresolved merge-blocking risk identified.

Pre-merge checks: Passed 3
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Solid & Clean Code Passed The patch is a small, focused change in the existing handleGitHubWebhook flow. It separates update dispatch errors from acknowledgement errors without adding a new production function, class, abstra…
Full details: Solid & Clean Code

Explanation

The patch is a small, focused change in the existing handleGitHubWebhook flow. It separates update dispatch errors from acknowledgement errors without adding a new production function, class, abstraction, or duplicated logic. The handler remains the sole export of handleGitHubWebhook.ts, and the new test helper is local to a test file. The handler was already over 20 lines in the base revision (90 lines versus 94 after this patch), so that pre-existing size is not introduced by this change.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

The trigger succeeds, the update takes flight
An acknowledgment follows, brief and bright
If posting fails, the log records the clue
The successful response still comes through
Two error paths now keep their place
Each handled with a clear, separate case

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

@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-24T05:51:11.398156Z 942e4cd 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.

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

This branch was successfully deployed

1 active deployment
Preview — 0e2a283f 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