mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Do a more complete mode switch from switch_mode command
This commit is contained in:
@@ -2065,11 +2065,10 @@ export class Cline {
|
||||
break
|
||||
}
|
||||
|
||||
// Switch the mode
|
||||
// Switch the mode using shared handler
|
||||
const provider = this.providerRef.deref()
|
||||
if (provider) {
|
||||
await provider.updateGlobalState("mode", mode_slug)
|
||||
await provider.postStateToWebview()
|
||||
await provider.handleModeSwitch(mode_slug)
|
||||
}
|
||||
pushToolResult(
|
||||
`Successfully switched from ${getModeBySlug(currentMode)?.name ?? currentMode} mode to ${
|
||||
|
||||
Reference in New Issue
Block a user