Repository navigation
fix(github-app): coerce inputs and propagate API errors (#13911) - #14080
Merged
kodjima33 merged 1 commit intoSep 15, 2026
Merged
Conversation
…e#13911) - Add coerce_issue_number/coerce_limit helpers so issue_number values like 'BasedHardware#42' or ' 42 ' and limit values arriving as JSON null/strings are normalized into clean validation errors instead of raising ValueError/ TypeError inside tool_get_issue, tool_add_comment, and tool_list_issues. - github_client.list_issues/get_issue now return explicit error structures ({'error', 'status'}) instead of collapsing non-200 responses into []/None, and handlers propagate them to ChatToolResponse(error=...). - list_issues fetches per-page headroom and follows next links (bounded) so pull requests sharing the issues endpoint cannot starve the requested limit. - test_agent now surfaces get_repo_permissions _error payloads instead of masking them as a missing-write-access denial. Verified: python3 plugins/omi-github-app/test_main.py (24 tests, OK; 20 of 24 fail against the unpatched sources); existing test_github_client.py still passes; run_checks --check-id github-app-coerce-tests passes. Failure-Class: none
Contributor
Author
|
/claim #13911 PayPal: [email removed] |
kodjima33
approved these changes
Sep 15, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
Well-scoped bug fix: coerces issue-number/limit inputs, propagates GitHub API errors instead of masking as empty, adds pagination cap. Clear root cause, linked issue, 24 hermetic tests, CI clean. Confidence 5/5 — merging.
Contributor
Author
|
This merged before the linked proposal #13911 named an amount — my omission when filing it. @kodjima33 would you honor the standard $50 plugin-fix bounty for this work, or whatever amount you consider right? Payout details are on the /claim comment above. |
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.
Closes #13911
Summary
coerce_issue_numberaccepts42/"42"/"#42"and rejectsNone/"abc"/4.5/0/negatives cleanlycoerce_limitmaps null → default, clamps to 50 (backend sends JSON null for omitted params)messagefield — no more silent "not found" masking a 500list_issuesfollowsnextlinks (max 5 pages) so PRs sharing the endpoint can't starve the limitNew hermetic
test_main.py(24 tests) +github-app-coerce-testsmanifest check.Verification
test_github_client.py10/10 OK