From 17a95f002199a0eeb7f2f032add8b9ea0b9eca1d Mon Sep 17 00:00:00 2001 From: Toshii <94262432+0xToshii@users.noreply.github.com> Date: Wed, 10 Dec 2025 19:33:00 -0800 Subject: [PATCH] adding xml examples to all newtask calls (#8034) --- src/core/prompts/commands.ts | 6 ++---- src/core/slash-commands/index.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/prompts/commands.ts b/src/core/prompts/commands.ts index e98f1bd9..f8be6acf 100644 --- a/src/core/prompts/commands.ts +++ b/src/core/prompts/commands.ts @@ -1,10 +1,8 @@ import type { ApiProviderInfo } from "@/core/api" import { getDeepPlanningPrompt } from "./commands/deep-planning" -export const newTaskToolResponse = (enableNativeToolCalls?: boolean) => { - const xmlExample = enableNativeToolCalls - ? "" - : ` +export const newTaskToolResponse = () => { + const xmlExample = ` Example: 1. Current Work: diff --git a/src/core/slash-commands/index.ts b/src/core/slash-commands/index.ts index be732fa3..47eb4e0e 100644 --- a/src/core/slash-commands/index.ts +++ b/src/core/slash-commands/index.ts @@ -57,7 +57,7 @@ export async function parseSlashCommands( const willUseNativeTools = isNativeToolCallingConfig(providerInfo!, enableNativeToolCalls || false) const commandReplacements: Record = { - newtask: newTaskToolResponse(willUseNativeTools), + newtask: newTaskToolResponse(), smol: condenseToolResponse(focusChainSettings), compact: condenseToolResponse(focusChainSettings), newrule: newRuleToolResponse(),