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) + + + )} )} 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! - +
+ +
+
+ +
+
+ Let's go! {errorMessage && {errorMessage}}
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 */