feat: Add 'studio' region and filter region selection based on permissions#82
Merged
milesapnash merged 6 commits intomainfrom Apr 21, 2026
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
Contributor
Coverage Report
Changed file coverage
|
Ruari-Phipps
approved these changes
Apr 21, 2026
8 tasks
AaronForinton
added a commit
that referenced
this pull request
Apr 21, 2026
…permissions (#93) ## Summary This PR contains the work from #82 ## Motivation <!-- Why is this change needed? Link to an issue if applicable. --> Closes #<!-- issue number --> ## Changes <!-- Bullet list of the key changes. Focus on *what* changed, not *how*. --> - ## Test strategy <!-- How did you verify this works? Check all that apply. --> - [ ] Added/updated unit tests - [ ] Manual CLI testing (`poly <command>`) - [ ] Tested against a live Agent Studio project - [x] N/A (docs, config, or trivial change) ## Checklist - [ ] `ruff check .` and `ruff format --check .` pass - [ ] `pytest` passes - [x] No breaking changes to the `poly` CLI interface (or migration path documented) - [ ] Commit messages follow [conventional commits](https://www.conventionalcommits.org/) ## Screenshots / Logs <!-- Optional: paste terminal output, screenshots, or before/after diffs if helpful. --> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.
Summary
Updates
poly initto only display regions the user's API key has access to, and adds thestudioregion.Motivation
Previously,
poly initshowed all hardcoded regions regardless of whether the user had access. This change probes regions concurrently and filters the list. Additionally,studiowas not available as a region.Changes
get_accessible_regions()toPlatformAPIHandlerthat concurrently probes regions viaget_accounts()and returns only accessible onesget_accessible_regions()toAgentStudioInterfaceas the public interfaceinit_project()incli.pyto fetch and display only accessible regions (with a loading spinner), with an error message if none are found"studio"region pointing tohttps://api.studio.poly.ai/adk/v1Test strategy
poly <command>)Checklist
ruff check .andruff format --check .passpytestpassespolyCLI interface (or migration path documented)Screenshots / Logs