mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Merge pull request #526 from RooVetGit/switch_mode_tool
Add a tool to switch modes
This commit is contained in:
@@ -443,6 +443,27 @@ export const ChatRowContent = ({
|
||||
// </div>
|
||||
// </>
|
||||
// )
|
||||
case "switchMode":
|
||||
return (
|
||||
<>
|
||||
<div style={headerStyle}>
|
||||
{toolIcon("symbol-enum")}
|
||||
<span style={{ fontWeight: "bold" }}>
|
||||
{message.type === "ask" ? (
|
||||
<>
|
||||
Roo wants to switch to <code>{tool.mode}</code> mode
|
||||
{tool.reason ? ` because: ${tool.reason}` : ""}
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
Roo switched to <code>{tool.mode}</code> mode
|
||||
{tool.reason ? ` because: ${tool.reason}` : ""}
|
||||
</>
|
||||
)}
|
||||
</span>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
default:
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user