Repository navigation
api: paginate list RPCs with page tokens - #656
Merged
Merged
Conversation
All four lists take page_size and page_token and return next_page_token, replacing limit and offset on tasks and workspaces. `ax get` follows the tokens instead of stopping at 50.
mayawang
approved these changes
Nov 19, 2026
mayawang
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thanks Yongrui! Good to get this in before the rc so the list API doesn't change after. Heads up that studio sets Limit on ListTasks and ListWorkspaces, so the studio go.mod refresh will need a small switch to PageSize. @YoyinZyc could you pick that up once this lands?
Collaborator
|
sure |
mayawang
pushed a commit
to agentexecutor/studio
that referenced
this pull request
Nov 20, 2026
AX now pages the four List RPCs with page_size, page_token and next_page_token instead of limit and offset (google/ax#656), and a page holds 50 resources unless more are asked for. Studio builds against that AX, asks for 500 at a time and follows the page tokens to the last page, as `ax get` does. Gateways and models were listed with no size, so against the new server Studio showed only the first 50 of each. Tasks and workspaces stopped at 500. Also redraw the layers under "Where agents run" when setup moves to its next stage, so they show the stage it is at.
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.
Paginate the four List RPCs with
page_size,page_tokenandnext_page_tokeninstead oflimitandoffset(AIP-158, item 3 of #563 (comment)).ax getfollows the tokens and prints every row; it used to stop at 50 tasks or workspaces.axagainst the new server lists the first 50 of each kind, which is new for gateways and models.Follow-up: page by key in the stores, as Agent Substrate does.