AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend/copilot): bump claude-agent-sdk so the bundled Claude Code accepts Opus 5.5 (#14896)
Reinier van der Leerc5a203187249
diff --git a/autogpt_platform/backend/backend/copilot/sdk/cli_openrouter_compat_test.py b/autogpt_platform/backend/backend/copilot/sdk/cli_openrouter_compat_test.pyindex efd17acb1f..4ded125dbe 100644--- a/autogpt_platform/backend/backend/copilot/sdk/cli_openrouter_compat_test.py+++ b/autogpt_platform/backend/backend/copilot/sdk/cli_openrouter_compat_test.py@@ -457,7 +457,7 @@ def _assert_no_forbidden_patterns(@pytest.mark.asyncio@pytest.mark.xfail(- reason="CLI 2.1.259 (SDK 0.2.152) still sends the "+ reason="CLI 2.1.281 (SDK 0.2.159) still sends the ""context-management-2025-06-27 beta header against a non-Anthropic base ""URL without CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 (observed, same as ""CLI 2.1.97 / SDK 0.1.58). This is expected — the env var guard in "diff --git a/autogpt_platform/backend/backend/copilot/sdk/sdk_compat_test.py b/autogpt_platform/backend/backend/copilot/sdk/sdk_compat_test.pyindex 78961295be..6fee679d7a 100644--- a/autogpt_platform/backend/backend/copilot/sdk/sdk_compat_test.py+++ b/autogpt_platform/backend/backend/copilot/sdk/sdk_compat_test.py@@ -278,6 +278,8 @@ _KNOWN_GOOD_BUNDLED_CLI_VERSIONS: frozenset[str] = frozenset(# to 2.1.248 on both the bare and the build_sdk_env-pinned# path: same anthropic-beta list, same message roles, same# body keys. Verified via cli_openrouter_compat_test.py.+ "2.1.281", # claude-agent-sdk 0.2.159 -- 2.1.280+ is required for+ # claude-opus-5-5. Verified via cli_openrouter_compat_test.py.})diff --git a/autogpt_platform/backend/poetry.lock b/autogpt_platform/backend/poetry.lockindex d3993ed399..0da9b43def 100644--- a/autogpt_platform/backend/poetry.lock+++ b/autogpt_platform/backend/poetry.lock@@ -983,18 +983,18 @@ files = [[[package]]name = "claude-agent-sdk"-version = "0.2.152"+version = "0.2.159"description = "Python SDK for Claude Code"optional = falsepython-versions = ">=3.10"groups = ["main"]files = [- {file = "claude_agent_sdk-0.2.152-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6cc1e949743c7634274ae526bfd1c0a216ff9d71c6b36d94cab80f32b0d32b4c"},- {file = "claude_agent_sdk-0.2.152-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:9c79c4ef91b15e5fae6aba62a82afb983dc360bc159902c541046227e2852c86"},- {file = "claude_agent_sdk-0.2.152-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:1e5b619e6fa3c98f06ddc107652f7820c4573fb73a9a24263568d9974078bbc2"},- {file = "claude_agent_sdk-0.2.152-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:f885bd935054082a599dcf92bbdaf3c0b853117a79375cb3aae74674a8124326"},- {file = "claude_agent_sdk-0.2.152-py3-none-win_amd64.whl", hash = "sha256:f422c256358997ffa3a740f9fdc8127aa8404a9d57493502dc7d2ac05ecb5486"},- {file = "claude_agent_sdk-0.2.152.tar.gz", hash = "sha256:0822bbdf700ccdd1acecf8365345a56bde07833afe7f8bd1bee68cba0e2fcf9a"},+ {file = "claude_agent_sdk-0.2.159-py3-none-macosx_11_0_arm64.whl", hash = "sha256:ba7f152560dca5001a0bc46ed13b7da14eb14b419faed25bb1af821bfa95d3de"},+ {file = "claude_agent_sdk-0.2.159-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:87f553fda74e2f57e00f2bcb1705ab9311a937f97571f4f9eceea2bd411b6e32"},+ {file = "claude_agent_sdk-0.2.159-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:b03683d12d217b0b6c189c88a3d260a045171e7fdc9f23e2d0dfb05ff3276834"},+ {file = "claude_agent_sdk-0.2.159-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:d3ba57c187b07c87702b94e2b62dd7c61ed874899defcbb35bb5cef4cb94ace1"},+ {file = "claude_agent_sdk-0.2.159-py3-none-win_amd64.whl", hash = "sha256:cc1b92ae56f42ade2d083ef2d2e5edb4aa8c7a6d856818a9b8f60cf6ae746f3a"},+ {file = "claude_agent_sdk-0.2.159.tar.gz", hash = "sha256:e1905e2637b27971bb561bb6ad317aeb3d50619be5261bfa7ff2e9c2be0f0fd1"},][package.dependencies]@@ -8936,4 +8936,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt[metadata]lock-version = "2.1"python-versions = ">=3.10,<3.14"-content-hash = "0775ceb3c13fc0e920726e46be5cccdf31cf76930399cf5059dd15bb2f629cb1"+content-hash = "3fafab08269ed623ad4df93407e39d5e5aaefd6f6c97a7cfe29a41ea58d77809"diff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex f55ee346e6..e097f0c374 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -19,7 +19,7 @@ autogpt-libs = { path = "../autogpt_libs", develop = true }bcrypt = "^5.0.0"bleach = { extras = ["css"], version = "^6.2.0" }cachetools = "^5.5.0"-claude-agent-sdk = "^0.2.146" # 2.1.98+ fixes the --resume + excludeDynamicSections crash that used to force a per-turn 33K cache write. CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 strips the context-management beta, which OpenRouter rejects. See sdk_compat_test.py.+claude-agent-sdk = "^0.2.159" # Bundled CLI 2.1.280+ is required for claude-opus-5-5. 2.1.98+ fixes the --resume + excludeDynamicSections crash that used to force a per-turn 33K cache write. CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 strips the context-management beta, which OpenRouter rejects. See sdk_compat_test.py.click = "^8.2.0"cryptography = ">=46,<51"discord-py = "^2.5.2"