diff --git a/webview-ui/src/components/settings/CodeIndexSettings.tsx b/webview-ui/src/components/settings/CodeIndexSettings.tsx index cd45a6921b..c57989049a 100644 --- a/webview-ui/src/components/settings/CodeIndexSettings.tsx +++ b/webview-ui/src/components/settings/CodeIndexSettings.tsx @@ -140,23 +140,27 @@ export const CodeIndexSettings: React.FC = ({ return ( <> - - setCachedStateField("codebaseIndexConfig", { - ...codebaseIndexConfig, - codebaseIndexEnabled: e.target.checked, - }) - }> - ⚠️ {t("settings:codeIndex.enableLabel")} - -
- {t("settings:codeIndex.enableDescription")} +
+
+ + setCachedStateField("codebaseIndexConfig", { + ...codebaseIndexConfig, + codebaseIndexEnabled: e.target.checked, + }) + }> + {t("settings:codeIndex.enableLabel")} + +
+

+ {t("settings:codeIndex.enableDescription")} +

{codebaseIndexConfig?.codebaseIndexEnabled && ( -
-
+
+
= ({
{indexingStatus.systemStatus === "Indexing" && ( -
+
@@ -191,76 +195,86 @@ export const CodeIndexSettings: React.FC = ({
)} -
- {t("settings:codeIndex.providerLabel")} +
+
{t("settings:codeIndex.providerLabel")}
-
- { + const newProvider = value as EmbedderProvider + const models = codebaseIndexModels?.[newProvider] + const modelIds = models ? Object.keys(models) : [] + const defaultModelId = modelIds.length > 0 ? modelIds[0] : "" // Use empty string if no models - if (codebaseIndexConfig) { - setCachedStateField("codebaseIndexConfig", { - ...codebaseIndexConfig, - codebaseIndexEmbedderProvider: newProvider, - codebaseIndexEmbedderModelId: defaultModelId, - }) - } - }}> - - - - - {t("settings:codeIndex.openaiProvider")} - {t("settings:codeIndex.ollamaProvider")} - - + if (codebaseIndexConfig) { + setCachedStateField("codebaseIndexConfig", { + ...codebaseIndexConfig, + codebaseIndexEmbedderProvider: newProvider, + codebaseIndexEmbedderModelId: defaultModelId, + }) + } + }}> + + + + + {t("settings:codeIndex.openaiProvider")} + {t("settings:codeIndex.ollamaProvider")} + + +
{codebaseIndexConfig?.codebaseIndexEmbedderProvider === "openai" && ( -
- setApiConfigurationField("codeIndexOpenAiKey", e.target.value)} - style={{ width: "100%" }}> - {t("settings:codeIndex.openaiKeyLabel")} - +
+
+
{t("settings:codeIndex.openaiKeyLabel")}
+
+
+ setApiConfigurationField("codeIndexOpenAiKey", e.target.value)} + style={{ width: "100%" }}> +
)} -
- {t("settings:codeIndex.modelLabel")} +
+
{t("settings:codeIndex.modelLabel")}
-
- +
+
+ +
{codebaseIndexConfig?.codebaseIndexEmbedderProvider === "ollama" && ( - <> -
+
+
+
{t("settings:codeIndex.ollamaUrlLabel")}
+
+
@@ -269,38 +283,42 @@ export const CodeIndexSettings: React.FC = ({ codebaseIndexEmbedderBaseUrl: e.target.value, }) } - style={{ width: "100%" }}> - {t("settings:codeIndex.ollamaUrlLabel")} - + style={{ width: "100%" }}>
- +
)} -
- - setCachedStateField("codebaseIndexConfig", { - ...codebaseIndexConfig, - codebaseIndexQdrantUrl: e.target.value, - }) - } - style={{ width: "100%" }}> - {t("settings:codeIndex.qdrantUrlLabel")} - +
+
+
{t("settings:codeIndex.qdrantUrlLabel")}
+
+
+ + setCachedStateField("codebaseIndexConfig", { + ...codebaseIndexConfig, + codebaseIndexQdrantUrl: e.target.value, + }) + } + style={{ width: "100%" }}> +
-
- setApiConfigurationField("codeIndexQdrantApiKey", e.target.value)} - style={{ width: "100%" }}> - {t("settings:codeIndex.qdrantKeyLabel")} - +
+
+
{t("settings:codeIndex.qdrantKeyLabel")}
+
+
+ setApiConfigurationField("codeIndexQdrantApiKey", e.target.value)} + style={{ width: "100%" }}> +
-
+
{(indexingStatus.systemStatus === "Error" || indexingStatus.systemStatus === "Standby") && ( vscode.postMessage({ type: "startIndexing" })} diff --git a/webview-ui/src/components/settings/ExperimentalFeature.tsx b/webview-ui/src/components/settings/ExperimentalFeature.tsx index e2abe0340b..a96a00a426 100644 --- a/webview-ui/src/components/settings/ExperimentalFeature.tsx +++ b/webview-ui/src/components/settings/ExperimentalFeature.tsx @@ -18,7 +18,6 @@ export const ExperimentalFeature = ({ enabled, onChange, experimentKey }: Experi return (
- {t("settings:experimental.warning")} onChange(e.target.checked)}> {t(nameKey)} diff --git a/webview-ui/src/i18n/locales/ca/settings.json b/webview-ui/src/i18n/locales/ca/settings.json index e7ee54172c..0c83012041 100644 --- a/webview-ui/src/i18n/locales/ca/settings.json +++ b/webview-ui/src/i18n/locales/ca/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "Llindar per activar la condensació intel·ligent de context", "description": "Quan la finestra de context assoleix aquest llindar, Roo la condensarà automàticament." diff --git a/webview-ui/src/i18n/locales/de/settings.json b/webview-ui/src/i18n/locales/de/settings.json index aa319793bb..f97e73fa99 100644 --- a/webview-ui/src/i18n/locales/de/settings.json +++ b/webview-ui/src/i18n/locales/de/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "Schwellenwert für intelligente Kontextkomprimierung", "description": "Wenn das Kontextfenster diesen Schwellenwert erreicht, wird Roo es automatisch komprimieren." diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json index 9340531c37..95ef04251f 100644 --- a/webview-ui/src/i18n/locales/en/settings.json +++ b/webview-ui/src/i18n/locales/en/settings.json @@ -34,7 +34,7 @@ }, "codeIndex": { "title": "Codebase Indexing", - "enableLabel": "Enable Codebase Indexing", + "enableLabel": "Enable codebase indexing", "enableDescription": "Enabling this feature will index your codebase. This might consume system resources and take some time depending on the size of your project.", "providerLabel": "Embeddings Provider", "selectProviderPlaceholder": "Select provider", @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "Threshold to trigger intelligent context condensing", "description": "When the context window reaches this threshold, Roo will automatically condense it." diff --git a/webview-ui/src/i18n/locales/es/settings.json b/webview-ui/src/i18n/locales/es/settings.json index 84a957d192..49cce6aeac 100644 --- a/webview-ui/src/i18n/locales/es/settings.json +++ b/webview-ui/src/i18n/locales/es/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "Umbral para activar la condensación inteligente de contexto", "description": "Cuando la ventana de contexto alcanza este umbral, Roo la condensará automáticamente." diff --git a/webview-ui/src/i18n/locales/fr/settings.json b/webview-ui/src/i18n/locales/fr/settings.json index b29d8fa43a..860371a058 100644 --- a/webview-ui/src/i18n/locales/fr/settings.json +++ b/webview-ui/src/i18n/locales/fr/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "Seuil pour déclencher la condensation intelligente du contexte", "description": "Lorsque la fenêtre de contexte atteint ce seuil, Roo la condensera automatiquement." diff --git a/webview-ui/src/i18n/locales/hi/settings.json b/webview-ui/src/i18n/locales/hi/settings.json index 66628a8044..37dfffc399 100644 --- a/webview-ui/src/i18n/locales/hi/settings.json +++ b/webview-ui/src/i18n/locales/hi/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/it/settings.json b/webview-ui/src/i18n/locales/it/settings.json index 8dd5656e04..cd1befa036 100644 --- a/webview-ui/src/i18n/locales/it/settings.json +++ b/webview-ui/src/i18n/locales/it/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/ja/settings.json b/webview-ui/src/i18n/locales/ja/settings.json index d3a08ed5fa..40584c9f61 100644 --- a/webview-ui/src/i18n/locales/ja/settings.json +++ b/webview-ui/src/i18n/locales/ja/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "インテリジェントなコンテキスト圧縮をトリガーするしきい値", "description": "コンテキストウィンドウがこのしきい値に達すると、Rooは自動的に圧縮します。" diff --git a/webview-ui/src/i18n/locales/ko/settings.json b/webview-ui/src/i18n/locales/ko/settings.json index 52a35e1e76..5df34ecb67 100644 --- a/webview-ui/src/i18n/locales/ko/settings.json +++ b/webview-ui/src/i18n/locales/ko/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/nl/settings.json b/webview-ui/src/i18n/locales/nl/settings.json index ca980d90b9..3137a56c01 100644 --- a/webview-ui/src/i18n/locales/nl/settings.json +++ b/webview-ui/src/i18n/locales/nl/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/pl/settings.json b/webview-ui/src/i18n/locales/pl/settings.json index cacab09af7..7fbb50add3 100644 --- a/webview-ui/src/i18n/locales/pl/settings.json +++ b/webview-ui/src/i18n/locales/pl/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/pt-BR/settings.json b/webview-ui/src/i18n/locales/pt-BR/settings.json index 150c57f253..ce6a202923 100644 --- a/webview-ui/src/i18n/locales/pt-BR/settings.json +++ b/webview-ui/src/i18n/locales/pt-BR/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/ru/settings.json b/webview-ui/src/i18n/locales/ru/settings.json index b20236d362..f43ab819ca 100644 --- a/webview-ui/src/i18n/locales/ru/settings.json +++ b/webview-ui/src/i18n/locales/ru/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/tr/settings.json b/webview-ui/src/i18n/locales/tr/settings.json index ecd6165738..83cc234bb5 100644 --- a/webview-ui/src/i18n/locales/tr/settings.json +++ b/webview-ui/src/i18n/locales/tr/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/vi/settings.json b/webview-ui/src/i18n/locales/vi/settings.json index e9452c688b..a41507e6ce 100644 --- a/webview-ui/src/i18n/locales/vi/settings.json +++ b/webview-ui/src/i18n/locales/vi/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.", diff --git a/webview-ui/src/i18n/locales/zh-CN/settings.json b/webview-ui/src/i18n/locales/zh-CN/settings.json index 4df61e0847..0fe506b8d9 100644 --- a/webview-ui/src/i18n/locales/zh-CN/settings.json +++ b/webview-ui/src/i18n/locales/zh-CN/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "autoCondenseContextPercent": { "label": "触发智能上下文压缩的阈值", "description": "当上下文窗口达到此阈值时,Roo 将自动压缩它。" diff --git a/webview-ui/src/i18n/locales/zh-TW/settings.json b/webview-ui/src/i18n/locales/zh-TW/settings.json index b03978c9e6..619a49a5d1 100644 --- a/webview-ui/src/i18n/locales/zh-TW/settings.json +++ b/webview-ui/src/i18n/locales/zh-TW/settings.json @@ -429,7 +429,6 @@ } }, "experimental": { - "warning": "⚠️", "condensingApiConfiguration": { "label": "API Configuration for Context Condensing", "description": "Select which API configuration to use for context condensing operations. Leave unselected to use the current active configuration.",