Repository navigation
Preserve accepted PR updates after confirmation failures - #1119
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| 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:
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: 
3
-
Full details: Solid & Clean Code
-
Explanation
The patch is a small, focused change in the existing
handleGitHubWebhookflow. 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 ofhandleGitHubWebhook.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.
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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…thub-feedback-ack-current-main
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.