From 66909b5c36e29bc3817dbc67daff7bfadf8cccbe Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sat, 25 Jan 2025 21:41:03 -0500 Subject: [PATCH 1/3] Hardcode version in announcement --- webview-ui/src/components/chat/Announcement.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 From 90d6ab7e2e2ecbf126a5da8f574295896aca12e9 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sat, 25 Jan 2025 22:16:05 -0500 Subject: [PATCH 2/3] Add configuration picker on the modes page --- .changeset/healthy-oranges-drum.md | 5 +++ .../src/components/prompts/PromptsView.tsx | 31 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .changeset/healthy-oranges-drum.md 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/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 */}
Date: Sat, 25 Jan 2025 23:44:18 -0500 Subject: [PATCH 3/3] Fix bug where always allow wasn't showing up for MCP tools --- .changeset/new-keys-relax.md | 5 +++++ webview-ui/src/components/chat/ChatRow.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/new-keys-relax.md 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/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 2757947..d4f6275 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -78,7 +78,7 @@ export const ChatRowContent = ({ isLast, isStreaming, }: ChatRowContentProps) => { - const { mcpServers } = useExtensionState() + const { mcpServers, alwaysAllowMcp } = useExtensionState() const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => { if (message.text != null && message.say === "api_req_started") { const info: ClineApiReqInfo = JSON.parse(message.text) @@ -871,6 +871,7 @@ export const ChatRowContent = ({ )?.alwaysAllow || false, }} serverName={useMcpServer.serverName} + alwaysAllowMcp={alwaysAllowMcp} />
{useMcpServer.arguments && useMcpServer.arguments !== "{}" && (