From 6e7f07c49d084567086a950a0e442a20b5cb0f15 Mon Sep 17 00:00:00 2001 From: Fahad Date: Fri, 8 Aug 2025 09:21:30 +0500 Subject: [PATCH] Improved "/zen:continue" prompt instructions to re-use previous model --- server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index ba83223..ee924fb 100644 --- a/server.py +++ b/server.py @@ -1270,7 +1270,12 @@ async def handle_get_prompt(name: str, arguments: dict[str, Any] = None) -> GetP # Generate tool call instruction if name.lower() == "continue": # "/zen:continue" case - tool_instruction = f"Continue the previous conversation using the {tool_name} tool" + tool_instruction = ( + f"Continue the previous conversation using the {tool_name} tool. " + "CRITICAL: You MUST provide the continuation_id from the previous response to maintain conversation context. " + "Additionally, you should reuse the same model that was used in the previous exchange for consistency, unless " + "the user specifically asks for a different model name to be used." + ) else: # Simple prompt case tool_instruction = prompt_text