Repository navigation
Conversation
Add actor-scoped OAuth connection management to the hand-written hosted-agents
layer, mirroring the godo/doctl surface (MARSOHS-2070):
list_connections / create_connection / get_connection / delete_connection
on both the sync (SessionsOperations) and async (aio) clients, targeting
/v2/agents/auth/{provider}/connections[/{id}]. Additive only; the legacy
start_provider_auth / poll_provider_auth flow is untouched.
RohithSangati
approved these changes
Oct 9, 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.
Adds actor-scoped OAuth connection management to the hand-written hosted-agents client, completing the pydo side of MARSOHS-2070 (godo and doctl already carry the same surface).
What this adds
Four methods on both the sync (
SessionsOperations) and async (aio) clients, surfaced asclient.agents.sessions.*:list_connections(provider, *, user_id=, status=, page=, per_page=)GET /v2/agents/auth/{provider}/connectionscreate_connection(provider, *, user_id, scopes=None)POST .../connectionsget_connection(provider, connection_id)GET .../connections/{id}delete_connection(provider, connection_id)DELETE .../connections/{id}These sit in the hand-written custom layer next to the existing
start_provider_auth/poll_provider_auth, matching the actor-scoped connection shape harness-api proxies (field names mirror tool-registry's public connection:user_idis the actor,statusispending/active/expired).Scope / compatibility
Additive only (432 insertions, 0 deletions). The legacy team-wide
start_provider_auth/poll_provider_authflow is untouched.Testing
blackclean; source within the 88-char pylint limit.Made with Cursor