adding xml examples to all newtask calls (#8034)

This commit is contained in:
Toshii authored and GitHub committed 2025-12-10 19:33:00 -08:00
1 parent 27c9971774
commit 17a95f0021
2 files changed
+3 -5

No files matched your search

+2 -4
View File
@@ -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:
<new_task>
<context>1. Current Work:
+1 -1
View File
@@ -57,7 +57,7 @@ export async function parseSlashCommands(
const willUseNativeTools = isNativeToolCallingConfig(providerInfo!, enableNativeToolCalls || false)
const commandReplacements: Record<string, string> = {
newtask: newTaskToolResponse(willUseNativeTools),
newtask: newTaskToolResponse(),
smol: condenseToolResponse(focusChainSettings),
compact: condenseToolResponse(focusChainSettings),
newrule: newRuleToolResponse(),