Skip to content

docs(acp): deprecate acp_env; route env/credentials through conversation secrets#544

Merged
enyst merged 1 commit into
mainfrom
docs-acp-env-deprecated
Jun 3, 2026
Merged

docs(acp): deprecate acp_env; route env/credentials through conversation secrets#544
enyst merged 1 commit into
mainfrom
docs-acp-env-deprecated

Conversation

@simonrosenberg

Copy link
Copy Markdown
Member

What

ACPAgent.acp_env was deprecated in software-agent-sdk 1.24.0 (removal in 1.29.0; see OpenHands/software-agent-sdk#3464). The ACP guide still recommended it for credentials (acp_env={"ANTHROPIC_API_KEY": "sk-..."}), and separately claimed AgentContext.secrets is ACP-incompatible / raises NotImplementedError — which is now the recommended replacement channel, so the page contradicted itself.

Changes (sdk/guides/agent-acp.mdx)

  • Drop acp_env from the configuration example; mark it Deprecated (removed in 1.29.0) in the parameter table, pointing to the conversation's secrets / agent_context.secrets.
  • Add an Environment Variables and Credentials section showing Conversation(agent=..., workspace=..., secrets={...}) — the canonical channel that flows into the secret registry and is injected into the ACP subprocess env.
  • Fix the AgentContext compatibility table: secrets is now acp_compatible: True (injected into the subprocess env, and masked if echoed back — fix(acp): mask injected secrets in tool-call output and streamed text software-agent-sdk#3463), not a NotImplementedError.

llms.txt / llms-full.txt are regenerated by the scheduled Sync llms context files workflow, so they're intentionally not touched here.

🤖 Generated with Claude Code

…ion secrets

ACPAgent.acp_env was deprecated in software-agent-sdk 1.24.0 (removal
1.29.0). Update the ACP guide to stop recommending it:
- drop acp_env from the configuration example and mark it deprecated in
  the parameter table, pointing to the conversation's secrets /
  agent_context.secrets
- add an "Environment Variables and Credentials" section showing the
  Conversation(secrets=...) channel
- fix the AgentContext compatibility table: agent_context.secrets is now
  acp_compatible (injected into the subprocess env), not a
  NotImplementedError

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 3, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
all-hands-ai 🟢 Ready View Preview Jun 3, 2026, 9:38 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@enyst enyst merged commit 7714863 into main Jun 3, 2026
5 checks passed
@enyst enyst deleted the docs-acp-env-deprecated branch June 3, 2026 10:50
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