diff --git a/.changeset/serious-rules-laugh.md b/.changeset/serious-rules-laugh.md new file mode 100644 index 0000000000..76bbf9623c --- /dev/null +++ b/.changeset/serious-rules-laugh.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Pass current language to system prompt correctly diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 6cf0ca495d..3746fcee3c 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -1125,6 +1125,7 @@ export class Cline extends EventEmitter { experiments, enableMcpServerCreation, browserToolEnabled, + language, } = (await this.providerRef.deref()?.getState()) ?? {} const { customModes } = (await this.providerRef.deref()?.getState()) ?? {} const systemPrompt = await (async () => { @@ -1146,6 +1147,7 @@ export class Cline extends EventEmitter { this.diffEnabled, experiments, enableMcpServerCreation, + language, rooIgnoreInstructions, ) })() diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index bb769f4cb4..6c826d5336 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1988,6 +1988,7 @@ export class ClineProvider extends EventEmitter implements experiments, enableMcpServerCreation, browserToolEnabled, + language, } = await this.getState() // Create diffStrategy based on current model and settings @@ -2021,6 +2022,7 @@ export class ClineProvider extends EventEmitter implements diffEnabled, experiments, enableMcpServerCreation, + language, rooIgnoreInstructions, ) return systemPrompt