Repository navigation
fix(github): Reply to the thread root when in_reply_to names a reply - #2693
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
GitHub's review reply endpoint accepts only the first comment of a thread. Events often name a later reply, so look up the comment and use its in_reply_to_id when it has one.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 71be35e. Configure here.
sentry-junior
Bot
force-pushed
the
fix/github-reply-thread-root
branch
from
November 4, 2026 22:23
71be35e to
1361d7d
Compare
GitHub sends in_reply_to_id: null on the first comment of a review thread. The optional schema rejected it, so replies that named the root threw.
BYK
approved these changes
Nov 5, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow-up to #2690, from Bugbot's review comment.
POST /pulls/{n}/comments/{id}/repliesaccepts only the first comment of a thread. GitHub's docs say: "Replies to replies are not supported." Events often name a later reply, sogithub_commentOnPullRequestfailed with 404 or 422 in the usual case.Now, when
in_reply_tois set, the tool reads the comment (github.pull.comment.get) and replies to itsin_reply_to_idwhen it has one. A missing comment returns aPluginToolInputError.This PR is stacked on #2692, which changes the same file.
--
View Session in Sentry