Repository navigation
Retry transient failures in the code review bot - #79
Merged
Merged
Conversation
added 2 commits
October 5, 2026 20:29
The review step failed on a dropped model connection (RemoteDisconnected) with an unlabeled error and no retry. - Wrap transport errors with the failing operation and root cause, never including the model API URL. - Retry transport errors and 429/5xx with exponential backoff and Retry-After for GitHub reads, GraphQL and the model call. - Bound the model phase to a 12 minute budget (8 minutes per attempt) so retries fit in the 17 minute job timeout. - On an ambiguous review POST failure, re-check existing reviews before posting again so a review is never duplicated.
Non-streamed model calls that run past ~4.5 minutes are cut with RemoteDisconnected, and retrying the same request hits the same limit. Request a streamed response so data keeps arriving, and assemble the content from the server-sent events. - An interrupted or incomplete stream is a retryable transport error. - The per-read socket timeout is now an idle timeout (3 minutes); the 12 minute model budget is also enforced while reading. - A plain JSON reply is still accepted if the server ignores stream.
Yasumoto
approved these changes
Oct 7, 2026
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.
The Neuralink code review bot is running into API timeouts. These changes add robust retry logic and change to an HTTPS streaming request response model to mitigate this issue.