Skip to content

fix(acp): rename AuthMethod to AuthMethodAgent for agent-client-protocol 0.9.0#3111

Closed
Mibayy wants to merge 1 commit into
NousResearch:mainfrom
Mibayy:fix/acp-authmethod-rename
Closed

fix(acp): rename AuthMethod to AuthMethodAgent for agent-client-protocol 0.9.0#3111
Mibayy wants to merge 1 commit into
NousResearch:mainfrom
Mibayy:fix/acp-authmethod-rename

Conversation

@Mibayy

@Mibayy Mibayy commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Fixes the CI import error that's been breaking the test suite on main since agent-client-protocol 0.9.0 landed.

Root cause

0.9.0 split AuthMethod into three specific classes:

  • AuthMethodAgent — agent-managed auth (our case)
  • AuthMethodEnvVar — env var injection
  • AuthMethodTerminal — terminal prompt

AuthMethod no longer exists, causing:

ImportError: cannot import name 'AuthMethod' from 'acp.schema'

Fix

Two-character rename: AuthMethodAuthMethodAgent in the import and the one call site. Signature is identical — same id, name, description fields.

Verified

tests/acp/test_server.py: 31/31 pass.

…col 0.9.0

agent-client-protocol 0.9.0 split the generic AuthMethod class into
AuthMethodAgent, AuthMethodEnvVar, and AuthMethodTerminal. The server
only constructs agent-type auth methods so AuthMethodAgent is the
correct replacement.

Fixes the CI ImportError:
  cannot import name 'AuthMethod' from 'acp.schema'
@teknium1

teknium1 commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Merged via PR #5292. Your contribution (AuthMethod rename) was cherry-picked onto current main with your authorship preserved in git log. Thank you @Mibayy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants