Skip to content

Commit 408eccd

Browse files
Ben ApplebyBen Appleby
authored andcommitted
Additional empty list case for available_tools
1 parent d6618f2 commit 408eccd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/copilot/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,11 @@ async def resume_session(
630630

631631
# Add available/excluded tools if provided
632632
available_tools = cfg.get("available_tools")
633-
if available_tools:
633+
if available_tools is not None:
634634
payload["availableTools"] = available_tools
635635

636636
excluded_tools = cfg.get("excluded_tools")
637-
if excluded_tools:
637+
if excluded_tools is not None:
638638
payload["excludedTools"] = excluded_tools
639639

640640
provider = cfg.get("provider")

0 commit comments

Comments
 (0)