diff --git a/.changeset/healthy-oranges-drum.md b/.changeset/healthy-oranges-drum.md new file mode 100644 index 0000000..1305bc4 --- /dev/null +++ b/.changeset/healthy-oranges-drum.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Add a dropdown to select the API configuration for a mode in the Prompts tab diff --git a/.changeset/new-keys-relax.md b/.changeset/new-keys-relax.md new file mode 100644 index 0000000..55a5d4d --- /dev/null +++ b/.changeset/new-keys-relax.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Fix bug where always allow wasn't showing up for MCP tools diff --git a/webview-ui/src/components/chat/Announcement.tsx b/webview-ui/src/components/chat/Announcement.tsx index a15171d..a2e9660 100644 --- a/webview-ui/src/components/chat/Announcement.tsx +++ b/webview-ui/src/components/chat/Announcement.tsx @@ -12,7 +12,6 @@ interface AnnouncementProps { You must update the latestAnnouncementId in ClineProvider for new announcements to show to users. This new id will be compared with whats in state for the 'last announcement shown', and if it's different then the announcement will render. As soon as an announcement is shown, the id will be updated in state. This ensures that announcements are not shown more than once, even if the user doesn't close it themselves. */ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { - const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0 return (
{ style={{ position: "absolute", top: "8px", right: "8px" }}> -

- 🎉{" "}Introducing Roo Code {minorVersion} -

+

🎉{" "}Introducing Roo Code 3.2

Our biggest update yet is here - we're officially changing our name from Roo Cline to Roo Code! After diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 530e31f..92da010 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -79,7 +79,7 @@ export const ChatRowContent = ({ isLast, isStreaming, }: ChatRowContentProps) => { - const { mcpServers } = useExtensionState() + const { mcpServers, alwaysAllowMcp } = useExtensionState() const [reasoningCollapsed, setReasoningCollapsed] = useState(false) // Auto-collapse reasoning when new messages arrive @@ -888,6 +888,7 @@ export const ChatRowContent = ({ )?.alwaysAllow || false, }} serverName={useMcpServer.serverName} + alwaysAllowMcp={alwaysAllowMcp} />

{useMcpServer.arguments && useMcpServer.arguments !== "{}" && ( diff --git a/webview-ui/src/components/prompts/PromptsView.tsx b/webview-ui/src/components/prompts/PromptsView.tsx index 56f4809..6827878 100644 --- a/webview-ui/src/components/prompts/PromptsView.tsx +++ b/webview-ui/src/components/prompts/PromptsView.tsx @@ -43,6 +43,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => { customModePrompts, customSupportPrompts, listApiConfigMeta, + currentApiConfigName, enhancementApiConfigId, setEnhancementApiConfigId, mode, @@ -609,6 +610,36 @@ const PromptsView = ({ onDone }: PromptsViewProps) => { {/* Mode settings */} <> +
+
API Configuration
+
+ { + const value = e.detail?.target?.value || e.target?.value + vscode.postMessage({ + type: "loadApiConfiguration", + text: value, + }) + }} + style={{ width: "100%" }}> + {(listApiConfigMeta || []).map((config) => ( + + {config.name} + + ))} + +
+ Select which API configuration to use for this mode +
+
+
+ {/* Show tools for all modes */}