Skip to content

fix(acp): authenticate advertised ACP methods on spawn - #6366

Open
eikeon wants to merge 1 commit into
block:mainfrom
eikeon:fix/acp-authenticate-on-spawn
Open

fix(acp): authenticate advertised ACP methods on spawn#6366
eikeon wants to merge 1 commit into
block:mainfrom
eikeon:fix/acp-authenticate-on-spawn

Conversation

@eikeon

@eikeon eikeon commented Aug 20, 2026

Copy link
Copy Markdown

Summary

  • After ACP initialize, call authenticate when the agent advertised a non-interactive method (cached_token, or xai.api_key when XAI_API_KEY is set).
  • Send _meta.headless so adapters that refuse a browser prompt (Grok Build) can complete auth.
  • Goose and Claude advertise no such method and skip this path unchanged.

The live harness already had buzz-acp authenticate as a one-shot CLI, but pool start and respawn never sent it. Agents that require auth before session/new then fail the first turn (Grok logs Auth(AuthorizationRequired) and respawns).

Do not authenticate again on every session/new: that resets Grok's inner worker.

Related

None found. Nearby PRs (#4460 workflow authorship, #4711 Codex docs) are a different meaning of "authenticate".

Verification

  • cargo test -p buzz-acp --lib headless_auth_method_tests
  • cargo clippy -p buzz-acp --all-targets -- -D warnings
  • cargo fmt -p buzz-acp
  • lefthook pre-push: just test-unit + just desktop-tauri-clippy + just desktop-tauri-test
  • Live: buzz-acp against grok agent --always-approve stdio logs agent authenticated method_id=cached_token on spawn; first-channel @mention completes without waiting on crash/respawn.

The live harness never sent ACP authenticate after initialize, even when
the agent advertised cached_token or xai.api_key. Grok requires that
before session/new; Goose and Claude advertise no such method and skip.

Signed-off-by: Daniel Krech <eikeon@eikeon.com>
@eikeon
eikeon requested a review from a team as a code owner August 20, 2026 02:21
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.

1 participant