mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Pass current language to system prompt correctly (#1793)
This commit is contained in:
parent
b520b6f724
commit
dc9fc13a22
3 changed files with 9 additions and 0 deletions
5
.changeset/serious-rules-laugh.md
Normal file
5
.changeset/serious-rules-laugh.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Pass current language to system prompt correctly
|
||||
|
|
@ -1125,6 +1125,7 @@ export class Cline extends EventEmitter<ClineEvents> {
|
|||
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<ClineEvents> {
|
|||
this.diffEnabled,
|
||||
experiments,
|
||||
enableMcpServerCreation,
|
||||
language,
|
||||
rooIgnoreInstructions,
|
||||
)
|
||||
})()
|
||||
|
|
|
|||
|
|
@ -1988,6 +1988,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> 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<ClineProviderEvents> implements
|
|||
diffEnabled,
|
||||
experiments,
|
||||
enableMcpServerCreation,
|
||||
language,
|
||||
rooIgnoreInstructions,
|
||||
)
|
||||
return systemPrompt
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue