Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/claude_agent_sdk/_internal/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ async def initialize(self) -> dict[str, Any] | None:
request["agents"] = self._agents
if self._exclude_dynamic_sections is not None:
request["excludeDynamicSections"] = self._exclude_dynamic_sections
# 'all' and omitted are equivalent at the wire level (no filter), so
# only send the field when it's an explicit list.
if isinstance(self._skills, list):
# Send skills when set to a list (explicit allowlist) or 'all'
# (triggers Skill tool injection in the CLI transport).
if self._skills is not None:
request["skills"] = self._skills

# Use longer timeout for initialize since MCP servers may take time to start
Expand Down