mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix bug with role definition overrides for built-in modes
This commit is contained in:
@@ -54,7 +54,7 @@ async function generatePrompt(
|
||||
|
||||
// Get the full mode config to ensure we have the role definition
|
||||
const modeConfig = getModeBySlug(mode, customModeConfigs) || modes.find((m) => m.slug === mode) || modes[0]
|
||||
const roleDefinition = modeConfig.roleDefinition
|
||||
const roleDefinition = promptComponent?.roleDefinition || modeConfig.roleDefinition
|
||||
|
||||
const basePrompt = `${roleDefinition}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user