René's URL Explorer Experiment


Title: bug: `on_connect` arg is `AgentSideConnection` at runtime while methods and params are different than `Client` · Issue #49 · agentclientprotocol/python-sdk · GitHub

Open Graph Title: bug: `on_connect` arg is `AgentSideConnection` at runtime while methods and params are different than `Client` · Issue #49 · agentclientprotocol/python-sdk

X Title: bug: `on_connect` arg is `AgentSideConnection` at runtime while methods and params are different than `Client` · Issue #49 · agentclientprotocol/python-sdk

Description: Summary Type Client and AgentSideConnection are not the same, while on_connect params is a Client, it is a AgentSideConnection at runtime ( python-sdk/src/acp/core.py Line 59 in 4cc2dfd conn = AgentSideConnection( ) There is a cast force...

Open Graph Description: Summary Type Client and AgentSideConnection are not the same, while on_connect params is a Client, it is a AgentSideConnection at runtime ( python-sdk/src/acp/core.py Line 59 in 4cc2dfd conn = Agen...

X Description: Summary Type Client and AgentSideConnection are not the same, while on_connect params is a Client, it is a AgentSideConnection at runtime ( python-sdk/src/acp/core.py Line 59 in 4cc2dfd conn = Agen...

Opengraph URL: https://github.com/agentclientprotocol/python-sdk/issues/49

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: `on_connect` arg is `AgentSideConnection` at runtime while methods and params are different than `Client`","articleBody":"### Summary\n\nType `Client` and `AgentSideConnection` are not the same, while `on_connect` params is a `Client`, it is a `AgentSideConnection` at runtime (https://github.com/agentclientprotocol/python-sdk/blob/4cc2dfdbeebc224db92de92ce308a1820f7f42f1/src/acp/core.py#L59)\n\nThere is a cast forced here\n\nhttps://github.com/agentclientprotocol/python-sdk/blob/main/src/acp/agent/connection.py#L64\n\nWhen using `Client`, there are method such as `create_terminal` that does not return the same values nor property\n\nI really like the move to snake case, but I think it added a lot of breaking changes, especially to load the Agent. Shouldn't this release have been a major ?\n\n### Reproduction steps\n\n```python\nclass ExampleAgent(Agent)\n  #...\n\n  @override\n    def on_connect(self, conn: Client) -\u003e None:\n        self.client = conn\n        # ^ this is AgentSideConnection at runtime\n```\n\n```python\n    terminal_handle = await client.create_terminal(...)\n    print(terminal_handle.terminal_id)\n    # ^ this break because terminal_handle is not `CreateTerminalResponse` with `terminal_id` but `TerminalHandle` with `id`\n```\n\nAlso, having `Client` and `AgentSideConnection` being different type with no inheritence + `AgenceSideConnection` being now final make the test harder to write, especially when you need to stub `AgentSideConnection`\n\n### Expected result\n\n`Client` and `AgentSideConnection` should have similar property so that the types expected at runtime are the same. I'd expect `on_connect` to receive an `AgentSideConnection` instead of `Client` which is a protocol\n\n### Actual result\n\n```python\nclass ExampleAgent(Agent)\n  #...\n\n  @override\n    def on_connect(self, conn: Client) -\u003e None:\n        self.client = conn\n        # ^ this is AgentSideConnection at runtime\n```\n\n```python\n    terminal_handle = await client.create_terminal(...)\n    print(terminal_handle.terminal_id)\n    # ^ this break because terminal_handle is not `CreateTerminalResponse` with `terminal_id` but `TerminalHandle` with `id`\n\n```\n\n\n### Versions / environment\n\nsdk 0.7.0, Python 3.12, macOS 15.7.3\n\n\nQuick fix for now is to force cast `Client` into `AgentSideConnection`","author":{"url":"https://github.com/Nemtecl","@type":"Person","name":"Nemtecl"},"datePublished":"2025-12-18T19:25:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/49/python-sdk/issues/49"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e7635514-beec-5163-5236-46785ad24a42
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id98F2:37FA71:8B58BA1:BACEB6A:6980E97D
html-safe-nonce3cc2c0538341038f84b1c06c261db208facec2d5984d711b0922152190b12377
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEYyOjM3RkE3MTo4QjU4QkExOkJBQ0VCNkE6Njk4MEU5N0QiLCJ2aXNpdG9yX2lkIjoiMzYwNzc2NDgxMjM1MzgyNTE0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb4a2cb436f6da67b1597c797f063621e70db42a22d7d7df0f43ebe44d3542de2
hovercard-subject-tagissue:3744528880
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/agentclientprotocol/python-sdk/49/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2e6c79fc67f8ba2b24be708ffa81b48da0305bfa95e59c908e214857ef66c540/agentclientprotocol/python-sdk/issues/49
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2e6c79fc67f8ba2b24be708ffa81b48da0305bfa95e59c908e214857ef66c540/agentclientprotocol/python-sdk/issues/49
og:image:altSummary Type Client and AgentSideConnection are not the same, while on_connect params is a Client, it is a AgentSideConnection at runtime ( python-sdk/src/acp/core.py Line 59 in 4cc2dfd conn = Agen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNemtecl
hostnamegithub.com
expected-hostnamegithub.com
Noneaaf8d4a8e86300179375c44c83488bc74585c21f81b72377699d5e6c4b00d1b1
turbo-cache-controlno-preview
go-importgithub.com/agentclientprotocol/python-sdk git https://github.com/agentclientprotocol/python-sdk.git
octolytics-dimension-user_id235308037
octolytics-dimension-user_loginagentclientprotocol
octolytics-dimension-repository_id1051445009
octolytics-dimension-repository_nwoagentclientprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1051445009
octolytics-dimension-repository_network_root_nwoagentclientprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0b50c4d33bc796ea7d05dba2f7cf29956c2e8265
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues/49#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fagentclientprotocol%2Fpython-sdk%2Fissues%2F49
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fagentclientprotocol%2Fpython-sdk%2Fissues%2F49
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=agentclientprotocol%2Fpython-sdk
Reloadhttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues/49
Reloadhttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues/49
Reloadhttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues/49
agentclientprotocol https://patch-diff.githubusercontent.com/agentclientprotocol
python-sdkhttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fagentclientprotocol%2Fpython-sdk
Fork 13 https://patch-diff.githubusercontent.com/login?return_to=%2Fagentclientprotocol%2Fpython-sdk
Star 143 https://patch-diff.githubusercontent.com/login?return_to=%2Fagentclientprotocol%2Fpython-sdk
Code https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk
Issues 2 https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues
Pull requests 2 https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/pulls
Discussions https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/discussions
Actions https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/actions
Projects 0 https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/projects
Security 0 https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/security
Insights https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/pulse
Code https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk
Issues https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues
Pull requests https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/pulls
Discussions https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/discussions
Actions https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/actions
Projects https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/projects
Security https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/security
Insights https://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/agentclientprotocol/python-sdk/issues/49
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/agentclientprotocol/python-sdk/issues/49
#56https://github.com/agentclientprotocol/python-sdk/pull/56
bug: on_connect arg is AgentSideConnection at runtime while methods and params are different than Clienthttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/issues/49#top
#56https://github.com/agentclientprotocol/python-sdk/pull/56
bugSomething isn't workinghttps://github.com/agentclientprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Nemtecl
https://github.com/Nemtecl
Nemteclhttps://github.com/Nemtecl
on Dec 18, 2025https://github.com/agentclientprotocol/python-sdk/issues/49#issue-3744528880
python-sdk/src/acp/core.pyhttps://github.com/agentclientprotocol/python-sdk/blob/4cc2dfdbeebc224db92de92ce308a1820f7f42f1/src/acp/core.py#L59
4cc2dfdhttps://patch-diff.githubusercontent.com/agentclientprotocol/python-sdk/commit/4cc2dfdbeebc224db92de92ce308a1820f7f42f1
https://github.com/agentclientprotocol/python-sdk/blob/main/src/acp/agent/connection.py#L64https://github.com/agentclientprotocol/python-sdk/blob/main/src/acp/agent/connection.py#L64
bugSomething isn't workinghttps://github.com/agentclientprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.