Skip to content

Commit 650cf35

Browse files
friggeriCopilot
andauthored
Update python/copilot/client.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2fc867c commit 650cf35

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

python/copilot/client.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -580,14 +580,8 @@ async def resume_session(
580580
# Add system message configuration if provided
581581
system_message = cfg.get("system_message")
582582
if system_message:
583-
wire_system_message: dict[str, Any] = {}
584-
if "prefix" in system_message:
585-
wire_system_message["prefix"] = system_message["prefix"]
586-
if "suffix" in system_message:
587-
wire_system_message["suffix"] = system_message["suffix"]
588-
if "override" in system_message:
589-
wire_system_message["override"] = system_message["override"]
590-
payload["systemMessage"] = wire_system_message
583+
# Pass through the system message configuration directly, matching create_session behavior.
584+
payload["systemMessage"] = system_message
591585

592586
# Add available/excluded tools if provided
593587
available_tools = cfg.get("available_tools")

0 commit comments

Comments
 (0)