@@ -225,7 +225,6 @@ describe("SYSTEM_PROMPT", () => {
225225 undefined , // customModePrompts
226226 undefined , // customModes
227227 undefined , // globalCustomInstructions
228- undefined , // diffEnabled
229228 experiments ,
230229 undefined , // language
231230 undefined , // rooIgnoreInstructions
@@ -247,7 +246,6 @@ describe("SYSTEM_PROMPT", () => {
247246 undefined , // customModePrompts
248247 undefined , // customModes,
249248 undefined , // globalCustomInstructions
250- undefined , // diffEnabled
251249 experiments ,
252250 undefined , // language
253251 undefined , // rooIgnoreInstructions
@@ -271,7 +269,6 @@ describe("SYSTEM_PROMPT", () => {
271269 undefined , // customModePrompts
272270 undefined , // customModes,
273271 undefined , // globalCustomInstructions
274- undefined , // diffEnabled
275272 experiments ,
276273 undefined , // language
277274 undefined , // rooIgnoreInstructions
@@ -293,7 +290,6 @@ describe("SYSTEM_PROMPT", () => {
293290 undefined , // customModePrompts
294291 undefined , // customModes,
295292 undefined , // globalCustomInstructions
296- undefined , // diffEnabled
297293 experiments ,
298294 undefined , // language
299295 undefined , // rooIgnoreInstructions
@@ -315,7 +311,6 @@ describe("SYSTEM_PROMPT", () => {
315311 undefined , // customModePrompts
316312 undefined , // customModes,
317313 undefined , // globalCustomInstructions
318- undefined , // diffEnabled
319314 experiments ,
320315 undefined , // language
321316 undefined , // rooIgnoreInstructions
@@ -325,81 +320,6 @@ describe("SYSTEM_PROMPT", () => {
325320 expect ( prompt ) . toMatchFileSnapshot ( "./__snapshots__/system-prompt/with-different-viewport-size.snap" )
326321 } )
327322
328- it ( "should include diff strategy tool description when diffEnabled is true" , async ( ) => {
329- const prompt = await SYSTEM_PROMPT (
330- mockContext ,
331- "/test/path" ,
332- false ,
333- undefined , // mcpHub
334- new MultiSearchReplaceDiffStrategy ( ) , // Use actual diff strategy from the codebase
335- undefined , // browserViewportSize
336- defaultModeSlug , // mode
337- undefined , // customModePrompts
338- undefined , // customModes
339- undefined , // globalCustomInstructions
340- true , // diffEnabled
341- experiments ,
342- undefined , // language
343- undefined , // rooIgnoreInstructions
344- undefined , // partialReadsEnabled
345- )
346-
347- // Native-only: tool catalog isn't embedded in the system prompt anymore.
348- expect ( prompt ) . not . toContain ( "# Tools" )
349- expect ( prompt ) . not . toContain ( "apply_diff" )
350- expect ( prompt ) . toMatchFileSnapshot ( "./__snapshots__/system-prompt/with-diff-enabled-true.snap" )
351- } )
352-
353- it ( "should exclude diff strategy tool description when diffEnabled is false" , async ( ) => {
354- const prompt = await SYSTEM_PROMPT (
355- mockContext ,
356- "/test/path" ,
357- false , // supportsImages
358- undefined , // mcpHub
359- new MultiSearchReplaceDiffStrategy ( ) , // Use actual diff strategy from the codebase
360- undefined , // browserViewportSize
361- defaultModeSlug , // mode
362- undefined , // customModePrompts
363- undefined , // customModes
364- undefined , // globalCustomInstructions
365- false , // diffEnabled
366- experiments ,
367- undefined , // language
368- undefined , // rooIgnoreInstructions
369- undefined , // partialReadsEnabled
370- )
371-
372- // Native-only: tool catalog isn't embedded in the system prompt anymore.
373- expect ( prompt ) . not . toContain ( "# Tools" )
374- expect ( prompt ) . not . toContain ( "apply_diff" )
375- expect ( prompt ) . toMatchFileSnapshot ( "./__snapshots__/system-prompt/with-diff-enabled-false.snap" )
376- } )
377-
378- it ( "should exclude diff strategy tool description when diffEnabled is undefined" , async ( ) => {
379- const prompt = await SYSTEM_PROMPT (
380- mockContext ,
381- "/test/path" ,
382- false ,
383- undefined , // mcpHub
384- new MultiSearchReplaceDiffStrategy ( ) , // Use actual diff strategy from the codebase
385- undefined , // browserViewportSize
386- defaultModeSlug , // mode
387- undefined , // customModePrompts
388- undefined , // customModes
389- undefined , // globalCustomInstructions
390- undefined , // diffEnabled
391- experiments ,
392- undefined , // language
393- undefined , // rooIgnoreInstructions
394- undefined , // partialReadsEnabled
395- )
396-
397- // Native-only: tool catalog isn't embedded in the system prompt anymore.
398- expect ( prompt ) . not . toContain ( "# Tools" )
399- expect ( prompt ) . not . toContain ( "apply_diff" )
400- expect ( prompt ) . toMatchFileSnapshot ( "./__snapshots__/system-prompt/with-diff-enabled-undefined.snap" )
401- } )
402-
403323 it ( "should include vscode language in custom instructions" , async ( ) => {
404324 // Mock vscode.env.language
405325 const vscode = vi . mocked ( await import ( "vscode" ) ) as any
@@ -439,7 +359,6 @@ describe("SYSTEM_PROMPT", () => {
439359 undefined , // customModePrompts
440360 undefined , // customModes
441361 undefined , // globalCustomInstructions
442- undefined , // diffEnabled
443362 undefined , // experiments
444363 undefined , // language
445364 undefined , // rooIgnoreInstructions
@@ -499,7 +418,6 @@ describe("SYSTEM_PROMPT", () => {
499418 undefined , // customModePrompts
500419 customModes , // customModes
501420 "Global instructions" , // globalCustomInstructions
502- undefined , // diffEnabled
503421 experiments ,
504422 undefined , // language
505423 undefined , // rooIgnoreInstructions
@@ -536,7 +454,6 @@ describe("SYSTEM_PROMPT", () => {
536454 customModePrompts , // customModePrompts
537455 undefined , // customModes
538456 undefined , // globalCustomInstructions
539- undefined , // diffEnabled
540457 undefined , // experiments
541458 undefined , // language
542459 undefined , // rooIgnoreInstructions
@@ -568,7 +485,6 @@ describe("SYSTEM_PROMPT", () => {
568485 customModePrompts , // customModePrompts
569486 undefined , // customModes
570487 undefined , // globalCustomInstructions
571- undefined , // diffEnabled
572488 undefined , // experiments
573489 undefined , // language
574490 undefined , // rooIgnoreInstructions
@@ -598,7 +514,6 @@ describe("SYSTEM_PROMPT", () => {
598514 undefined , // customModePrompts
599515 undefined , // customModes
600516 undefined , // globalCustomInstructions
601- undefined , // diffEnabled
602517 experiments ,
603518 undefined , // language
604519 undefined , // rooIgnoreInstructions
@@ -630,7 +545,6 @@ describe("SYSTEM_PROMPT", () => {
630545 undefined , // customModePrompts
631546 undefined , // customModes
632547 undefined , // globalCustomInstructions
633- undefined , // diffEnabled
634548 experiments ,
635549 undefined , // language
636550 undefined , // rooIgnoreInstructions
@@ -662,7 +576,6 @@ describe("SYSTEM_PROMPT", () => {
662576 undefined , // customModePrompts
663577 undefined , // customModes
664578 undefined , // globalCustomInstructions
665- undefined , // diffEnabled
666579 experiments ,
667580 undefined , // language
668581 undefined , // rooIgnoreInstructions
@@ -694,7 +607,6 @@ describe("SYSTEM_PROMPT", () => {
694607 undefined , // customModePrompts
695608 undefined , // customModes
696609 undefined , // globalCustomInstructions
697- undefined , // diffEnabled
698610 experiments ,
699611 undefined , // language
700612 undefined , // rooIgnoreInstructions
0 commit comments