You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be5dfb0
Browse filesBrowse the repository at this point in the historyBrowse files
Reject unsupported pagination params in pull_request_read
The pull_request_read tool exposes two pagination mechanisms:
page/perPage for the REST-backed methods and the after cursor for
get_review_comments. Passing a parameter the selected method does not
use was silently dropped, so callers (especially LLM agents) would
receive the first page again with no signal that anything was ignored.
Validate the pagination parameters against the selected method before
dispatch and return a tool error naming the method and the parameter:
- after is rejected for all methods except get_review_comments
- page is rejected for get_review_comments
- perPage remains accepted for every method
Fixes#3316
returnfmt.Errorf("method %q uses page/perPage pagination; \"after\" is not supported. Use method %q for cursor-based pagination", method, "get_review_comments")
0 commit comments