Improved "/zen:continue" prompt instructions to re-use previous model

This commit is contained in:
Fahad
2025-08-08 09:21:30 +05:00
parent 8203baa4ef
commit 6e7f07c49d

View File

@@ -1270,7 +1270,12 @@ async def handle_get_prompt(name: str, arguments: dict[str, Any] = None) -> GetP
# Generate tool call instruction # Generate tool call instruction
if name.lower() == "continue": if name.lower() == "continue":
# "/zen:continue" case # "/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: else:
# Simple prompt case # Simple prompt case
tool_instruction = prompt_text tool_instruction = prompt_text