Skip to navigation

Track changes to Band SDKs including the Python SDK and MCP SDK.

Fixed

  • Python SDK:
    • WebSocket Session Termination on 401 — WebSocket sessions now terminate correctly when an upgrade is refused with HTTP 401. A refused credential token no longer leaves the session open.

Fixed

  • TypeScript SDK:
    • WebSocket 401 Session Termination - The WebSocket session now ends cleanly when an upgrade is refused with a 401 response, preventing the client from waiting indefinitely for a session that the server has already rejected.

Fixed

  • Python SDK:
    • Conflict Policy Without Agent ID — A non-default conflict_policy is now sent on the initial connect even when no agent_id is set, so connections using ConflictPolicy.REJECT correctly apply the policy from the first connect.

Breaking

PhoenixChannelsTransport reconnect configuration removed.

PhoenixChannelsTransportOptions drops three fields in 2.0.0:

Removed fieldReplacement
heartbeatIntervalMssessionPolicy from @band-ai/band-sdk-core
reconnectAfterMssessionPolicy from @band-ai/band-sdk-core
onTerminalDisconnectSubscribe via the new terminal observer API

Added

  • TypeScript SDK:
    • Shared Core Round Policy - The runtime now uses @band-ai/band-sdk-core’s round policy and turn-completion logic across all adapters, giving consistent turn-outcome behavior without adapter-specific overrides.

Fixed

  • TypeScript SDK:
    • LangGraph Tool Loop on Decline - LangGraph’s built-in tool loop now stops when Band declines the turn, preventing additional tool rounds after the room has already received a decline.
    • Google ADK Tool Loop Cap - The Google ADK adapter ends its tool loop when the turn is declined and caps rounds at 8 by default (configurable with maxToolRounds on GoogleADKAdapterOptions). Previously, a tool-heavy turn could loop indefinitely.
    • Gemini Thought Signatures and No-Reply Termination - Gemini thought signatures are now replayed correctly in the tool-call context, and the tool loop terminates when the model returns no reply, preventing a hang.
    • OpenCode Pending State - A reply that loses its associated OpenCode ask is told it is no longer pending, so it does not block subsequent prompts in that room.
    • Room Work Held Until Turn Ends - A room’s other work is now held until a handed-back turn has fully ended. Previously, overlapping work could start before the turn’s conclusion was recorded.
    • Runtime Catch-Up Past Failed Head - The runtime now skips a failed /messages/next head instead of retrying it forever, so session catch-up moves past the broken entry and resumes normal delivery.

Changed

  • Python SDK:
    • Breaking: WebSocketClient API — WebSocketClient.transport_ended, end_transport(), and record_terminal_disconnect() are removed. handle_supersede() is now async and takes a SupersedePayload argument instead of retryable: bool and retry_after_s: float | None. Code that called these members directly or subclassed WebSocketClient must be updated. See the migration guide.
    • Phoenix Client Dependency — The phoenix-channels-python-client dependency moves from >=0.4.1,<0.5 to >=0.5.2,<0.6. Upgrade your lockfile after updating band-sdk.

Added

  • Python SDK:
    • User Access Token Authentication — WebSocketClient now accepts access_token= (keyword-only) for authenticating with a user JWT via the x-auth-token header, as an alternative to an API key.
    • Claude Settings Overrides — ClaudeCLIOptions gains a settings field for passing host Claude settings at CLI launch, as inline JSON ({...}) or an absolute file path. The adapter layers them under its own isolation settings, whose keys always win. The env section of the settings may not set BAND_MCP_TOKEN.

Fixed

  • Python SDK:
    • OpenCode Session Resume — OpenCode sessions now resume correctly after the first successful prompt regardless of the emit setting. A first prompt that fails, times out, or is cancelled leaves no resume record. The Claude SDK adapter follows the same rule.
    • CrewAI Turn End on band_no_reply — CrewAI agents now end their turn correctly when the agent calls band_no_reply.
    • Custom Decline Handling — Successful custom declines in Strands, PydanticAI, batch-based adapters, and ADK now stop correctly. CrewAI failures are now preserved when a custom decline stops.
    • OpenCode Approval Terminology — Resolved OpenCode questions are now described as questions, not approvals, in room messages.
    • OMP Background Results — OMP declines no longer strand background results that arrive after the decline is issued.
    • Google ADK Compatibility — Google ADK 1.x client compatibility is restored. Failed ADK turn inputs are retained in conversation history. ADK tool rounds are now capped like the Gemini adapter.

Added

  • Python SDK:
    • Provider-Native Activity Reporting — Agno, Claude SDK, Codex, Copilot SDK, and LangGraph adapters now observe and report provider-native tool activity with per-call scope, so each native tool call appears as its own activity entry in the room’s working state.

Changed

  • Python SDK:
    • Breaking: Keyed Activity Reporting — The activity reporting API is now keyed. report_tool_activity, end_tool_activity, and report_memory_activity are replaced by start_tool_activity(tools, key, name), start_memory_activity(tools, key), and end_activity(tools, key). ActivityObserver.update is replaced by start(key, activity) and end(key). TurnActivity.apply is replaced by start(key, activity) and end(key). ExecutionContext.observe_activity is replaced by start_activity and end_activity. execute_custom_tool and invoke_validated_custom_tool take tools= instead of turn=. See the migration guide.
    • Breaking: ACP TurnSink — The ACP ChunkSink callable is replaced by the TurnSink protocol. prompt and prompt_turn take sink= instead of on_chunk=. Update any ChunkSink type annotations and on_chunk= call sites. See the migration guide.

Fixed

  • Python SDK:
    • Activity Ownership with Overlapping Tools — Activity ownership is now preserved when multiple tools execute concurrently in the same turn, so each tool’s activity is reported under its original owner rather than being displaced by a later tool.

Added

  • Python SDK:
    • Antigravity ACP Adapter - Connect Google’s Antigravity agent to Band chat rooms with AntigravityACPAdapter, available through the existing acp extra. Each agent and room uses a separate persistent GEMINI_HOME for native session state. Band tool requests are approved only during the room’s active turn. Native tool requests use approve-once or reject-once according to approval_mode, which defaults to auto_accept. This permission policy does not sandbox the server. A runnable example and setup guide are included.

Changed

  • Python SDK:
    • Codex Session State - CodexSessionState replaces thread_id, room_id, created_at, and has_thread() with room_to_thread and replay_messages. Read a room’s thread with state.room_to_thread.get(room_id). See the 7.1.0 migration guide.

Fixed

  • Python SDK:
    • Codex Session Resume - Codex now records a room’s thread only after its first prompt completes, so a failed or interrupted first prompt is no longer resumed after a restart, and this works with task events turned off. A fresh thread is seeded with the room transcript and roster. Rooms with earlier Codex session records start a fresh, replayed thread after upgrading; later resumption requires the seeded record to be present in loaded startup history.
    • Replay Past Pending Requests - History replay into a new session no longer includes later pending requests ahead of their own turns when a thread reply is missing from the fetched history.
    • Windows ACP Agent Shutdown - Stopping an agent on Windows now ends the ACP agent’s whole process tree, so Agent.stop() no longer hangs on a launcher that exited while its child processes kept running.
    • Antigravity Startup Timeout - The Antigravity startup transition timeout is now 60 seconds instead of the generic ACP adapter’s 30 seconds.

Changed

  • TypeScript SDK:
    • Breaking: Existing Rooms Rejoin by Default - AgentConfig.autoSubscribeExistingRooms now defaults to true. At startup and after a whole-agent reconnect, agents join rooms they already belong to and may answer pending messages there. Pass agentConfig: { autoSubscribeExistingRooms: false } to retain the 0.x behavior, or use roomFilter to select rooms. See Migration below.

Added

  • TypeScript SDK:
    • Working State and Activity - Agents report when a room is processing work, with configurable keep-alive and request timeouts. Activity reporting can distinguish reasoning, tool calls, memory work and permission requests when the adapter or provider supplies those events. Set sessionConfig: { enableWorkingState: false } to disable working-state reporting.
    • Native Adapter Activity - Claude SDK, Codex, ACP, Cursor and OpenCode integrations observe native tool activity. ACP, Cursor and OpenCode also report human-decision activity. Claude SDK observes native compaction; its optional execution reporting forwards provider-emitted tool summaries rather than generating summaries itself.
    • Room and History Helpers - Create rooms with a title, retrieve and rename rooms, enumerate peers across pages, and fetch recent message history for context.
    • Optional Task-Board Tools - Added band_get_board, band_set_board, band_list_tasks, band_create_task, band_get_task and band_update_task. These tools are off by default. Enable them with linkOptions: { capabilities: { tasks: true } } on an account where the platform task board is enabled.
    • Dynamic MCP Stdio Servers - BandMcpStdioServer can start without Band tools, add or remove tools while running, expose a host-provided resource source, and notify clients when tool or resource lists change.

Fixed

  • TypeScript SDK:
    • ACP and A2A Dependency Compatibility - Optional peer ranges now require @agentclientprotocol/sdk >=1.4.0 <2 and @a2a-js/sdk >=0.3.10 <1, preventing installs from selecting incompatible major versions. ACP 2.x and A2A 1.x support is not included.
    • Gemini Default Model - Gemini and Google ADK adapters use gemini-3.1-flash-lite when no model is supplied.

Migration

Install @band-ai/sdk@1.0.0 and review which existing rooms your agent should join before its first start after upgrading. To keep the 0.x room-subscription behavior:

const agent = Agent.create({
adapter,
config,
agentConfig: { autoSubscribeExistingRooms: false },
});

Alternatively, keep the new default and pass roomFilter to join only selected rooms. Review direct ACP and A2A dependency pins and regenerate the application lockfile so they satisfy the peer ranges above.

Added

  • Python SDK:
    • Native OMP Adapter — Connect an OMP agent directly to Band chat rooms with OmpAdapter, including per-room sessions, model selection, room-scoped MCP servers, and questions relayed to the room. The new omp extra installs only the adapter’s Python dependency (psutil); install the OMP CLI separately so the omp command is available.
    • Opt-In Queued Message Batching — Set SessionConfig.consume_all_queued to have an agent handle a backlog of queued messages together in one turn instead of one turn per message, up to max_queued_messages (1–100, default 10). It requires an adapter that declares supports_batch_input, and is not available with one-shot hosting (OneShotInvoker refuses it).
    • Room-Scoped MCP Servers for ACP Agents — ACP client adapters, including the Copilot and Cursor constructors, accept an optional resolve_mcp_servers callback. It receives the room’s workspace directory path once per session setup and returns that room’s external MCP servers, which replace the configured external servers while Band’s own MCP server stays in place.
    • Cloudflare One-Shot Agent Hosting — New example shows how to host a Python Band agent on Cloudflare while keeping its persistent event connection on your own infrastructure.
    • Antigravity Tool Recognition in ACP — The ACP base now recognizes Antigravity’s tool calls, so Band replies appear under the correct tool name with a single copy of their arguments.
    • Live Room Activity Detail — Rooms can now show what an agent is doing, such as reasoning, a named tool call, or waiting on a person, including Band tools and native Claude SDK, Codex, and OMP tools, approvals, and compaction.
  • Band Bridge:
    • HTTP Bridge Bearer Token — HTTP bridge targets can now be configured with a bearer_token, which the bridge sends as an Authorization: Bearer header on every forwarded request.