Skip to content

[Fix] Top-level GitHub PR comments fail to update when threadId is blank - #17

Merged
mrubens merged 1 commit into
developfrom
fix/blank-threadid-pr-comment-update-2hehp79cb8dzo
Jul 9, 2026
Merged

[Fix] Top-level GitHub PR comments fail to update when threadId is blank#17
mrubens merged 1 commit into
developfrom
fix/blank-threadid-pr-comment-update-2hehp79cb8dzo

Conversation

@roomote-roomote-v1

Copy link
Copy Markdown

Opened on behalf of Matt Rubens. Follow up by mentioning @openmote, in the web UI, or in Slack.

What changed

update_pull_request_comment now treats blank or whitespace-only threadId and commentId values as omitted instead of rejecting them or treating them as present IDs.

GitHub top-level conversation comments keep routing to issues.updateComment when threadId is absent/blank. Real review-thread updates still use pulls.updateReviewComment when a non-empty threadId is provided. The MCP worker also trims blank optional IDs before calling the API, and the write entry point normalizes the same values defensively.

Why this change was made

During PR review work, client tooling often sends empty strings for unused optional fields. The write schema required min-length strings, so threadId: "" failed validation (too_small). Agents that then invented dummy non-empty thread IDs were misrouted to GitHub’s review-comment update endpoint, which returned Not Found for top-level issue-comment IDs.

Impact

Agents and other clients can patch top-level GitHub PR issue comments again without a gh api fallback when they pass blank threadId (or omit it entirely). Review-thread updates and Azure DevOps’s requirement for a real threadId are unchanged.

@roomote-roomote-v1

roomote-roomote-v1 Bot commented Jul 9, 2026

Copy link
Copy Markdown
Author

No code issues found. See task

@mrubens
mrubens marked this pull request as ready for review July 9, 2026 03:27
@mrubens
mrubens merged commit 04b1f1b into develop Jul 9, 2026
1 check passed
@mrubens
mrubens deleted the fix/blank-threadid-pr-comment-update-2hehp79cb8dzo branch July 9, 2026 03:27
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.

1 participant