From 3715a70f720f69aaab8524332baf10d202401a4b Mon Sep 17 00:00:00 2001
From: Matt Rubens
Date: Tue, 11 Feb 2025 12:37:20 -0500
Subject: [PATCH 1/3] Hide advanced openrouter config in the welcome view
---
.changeset/polite-lizards-rhyme.md | 5 ++
.../src/components/settings/ApiOptions.tsx | 79 +++++++++----------
2 files changed, 43 insertions(+), 41 deletions(-)
create mode 100644 .changeset/polite-lizards-rhyme.md
diff --git a/.changeset/polite-lizards-rhyme.md b/.changeset/polite-lizards-rhyme.md
new file mode 100644
index 0000000000..690b900743
--- /dev/null
+++ b/.changeset/polite-lizards-rhyme.md
@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Hide advanced openrouter config in the welcome view
diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx
index ce34e5f194..0d8bb43bb5 100644
--- a/webview-ui/src/components/settings/ApiOptions.tsx
+++ b/webview-ui/src/components/settings/ApiOptions.tsx
@@ -355,30 +355,6 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage, fromWelcomeView }: A
)}
- {
- setOpenRouterBaseUrlSelected(checked)
- if (!checked) {
- handleInputChange("openRouterBaseUrl")({
- target: {
- value: "",
- },
- })
- }
- }}>
- Use custom base URL
-
-
- {openRouterBaseUrlSelected && (
-
- )}
This key is stored locally and only used to make API requests from this extension.{" "}
- {/* {!apiConfiguration?.openRouterApiKey && (
-
- (Note: OpenRouter is recommended for high rate
- limits, prompt caching, and wider selection of models.)
-
- )} */}
- {
- handleInputChange("openRouterUseMiddleOutTransform")({
- target: { value: checked },
- })
- }}>
- Compress prompts and message chains to the context size (
- OpenRouter Transforms)
-
-
+ {!fromWelcomeView && (
+ <>
+ {
+ setOpenRouterBaseUrlSelected(checked)
+ if (!checked) {
+ handleInputChange("openRouterBaseUrl")({
+ target: {
+ value: "",
+ },
+ })
+ }
+ }}>
+ Use custom base URL
+
+
+ {openRouterBaseUrlSelected && (
+
+ )}
+ {
+ handleInputChange("openRouterUseMiddleOutTransform")({
+ target: { value: checked },
+ })
+ }}>
+ Compress prompts and message chains to the context size (
+ OpenRouter Transforms)
+
+ >
+ )}
)}
From 873cb1fcc517742c81529f7788bd8caf1b5018e0 Mon Sep 17 00:00:00 2001
From: Matt Rubens
Date: Tue, 11 Feb 2025 12:52:54 -0500
Subject: [PATCH 2/3] Make let's go button sticky
---
.../src/components/welcome/WelcomeView.tsx | 33 ++++++++++---------
1 file changed, 18 insertions(+), 15 deletions(-)
diff --git a/webview-ui/src/components/welcome/WelcomeView.tsx b/webview-ui/src/components/welcome/WelcomeView.tsx
index 92f2d90b96..912d36fcb1 100644
--- a/webview-ui/src/components/welcome/WelcomeView.tsx
+++ b/webview-ui/src/components/welcome/WelcomeView.tsx
@@ -21,23 +21,26 @@ const WelcomeView = () => {
}
return (
-
-
Hi, I'm Roo!
-
- I can do all kinds of tasks thanks to the latest breakthroughs in agentic coding capabilities and access
- to tools that let me create & edit files, explore complex projects, use the browser, and execute
- terminal commands (with your permission, of course). I can even use MCP to create new tools and extend
- my own capabilities.
-
+
+
+
Hi, I'm Roo!
+
+ I can do all kinds of tasks thanks to the latest breakthroughs in agentic coding capabilities and
+ access to tools that let me create & edit files, explore complex projects, use the browser, and
+ execute terminal commands (with your permission, of course). I can even use MCP to create new tools
+ and extend my own capabilities.
+
-
To get started, this extension needs an API provider.
+
To get started, this extension needs an API provider.
-
-
-
+
+
+
+ Let's go!
{errorMessage && {errorMessage}}
From c97eef753cb31fc6f1846238c8136c241f3d02c4 Mon Sep 17 00:00:00 2001
From: Matt Rubens
Date: Tue, 11 Feb 2025 13:23:51 -0500
Subject: [PATCH 3/3] Fix the width of checkboxes
---
webview-ui/src/index.css | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/webview-ui/src/index.css b/webview-ui/src/index.css
index facc2db084..d4ccf2f233 100644
--- a/webview-ui/src/index.css
+++ b/webview-ui/src/index.css
@@ -319,6 +319,11 @@ vscode-dropdown::part(listbox) {
max-height: unset !important;
}
+.vscrui-checkbox svg {
+ min-width: 16px;
+ min-height: 16px;
+}
+
/**
* @shadcn/ui Overrides / Hacks
*/