diff --git a/ccw/src/templates/dashboard-js/i18n.js b/ccw/src/templates/dashboard-js/i18n.js
index 54a7ae44..0fec1b46 100644
--- a/ccw/src/templates/dashboard-js/i18n.js
+++ b/ccw/src/templates/dashboard-js/i18n.js
@@ -280,6 +280,9 @@ const i18n = {
'codexlens.cleanAllIndexes': 'Clean All Indexes',
'codexlens.installCodexLens': 'Install CodexLens',
'codexlens.createIndex': 'Create Index',
+ 'codexlens.indexManagement': 'Management',
+ 'codexlens.incrementalUpdate': 'Incremental Update',
+ 'codexlens.environmentVariables': 'Environment Variables',
'codexlens.embeddingBackend': 'Embedding Backend',
'codexlens.localFastembed': 'Local (FastEmbed)',
'codexlens.apiLitellm': 'API (LiteLLM)',
@@ -2242,6 +2245,9 @@ const i18n = {
'codexlens.cleanAllIndexes': '清理所有索引',
'codexlens.installCodexLens': '安装 CodexLens',
'codexlens.createIndex': '创建索引',
+ 'codexlens.indexManagement': '管理',
+ 'codexlens.incrementalUpdate': '增量更新',
+ 'codexlens.environmentVariables': '环境变量',
'codexlens.embeddingBackend': '嵌入后端',
'codexlens.localFastembed': '本地 (FastEmbed)',
'codexlens.apiLitellm': 'API (LiteLLM)',
diff --git a/ccw/src/templates/dashboard-js/views/codexlens-manager.js b/ccw/src/templates/dashboard-js/views/codexlens-manager.js
index 1e97f39b..c2626d8f 100644
--- a/ccw/src/templates/dashboard-js/views/codexlens-manager.js
+++ b/ccw/src/templates/dashboard-js/views/codexlens-manager.js
@@ -1790,12 +1790,20 @@ async function loadRerankerModelList() {
'';
});
} else {
- // LiteLLM backend - show API info
+ // API/LiteLLM backend - show current model info
html +=
- '
' +
- '
' +
- '
Using API reranker
' +
- '
Model configured via CODEXLENS_RERANKER_MODEL
' +
+ '
' +
+ '
' +
+ '' +
+ 'Using API Reranker' +
+ '
' +
+ '
' +
+ '
Current Model:
' +
+ '
' +
+ escapeHtml(currentModel) +
+ '
' +
+ '
' +
+ '
Configure via Environment Variables below
' +
'
';
}
@@ -1890,9 +1898,13 @@ function switchCodexLensModelTab(tabName) {
if (tabName === 'embedding') {
embeddingContent.style.display = 'block';
rerankerContent.style.display = 'none';
+ // Reload embedding models when switching to embedding tab
+ loadModelList();
} else {
embeddingContent.style.display = 'none';
rerankerContent.style.display = 'block';
+ // Load reranker models when switching to reranker tab
+ loadRerankerModelList();
}
}
}
@@ -2936,9 +2948,9 @@ function buildCodexLensManagerPage(config) {
'
' +
// Left Column
'
' +
- // Create Index Section - Simplified (model config in Environment Variables)
+ // Index Management Section - Combined Create Index + Maintenance
'
' +
- '
' + t('codexlens.createIndex') + '
' +
+ '
' + t('codexlens.indexManagement') + '
' +
'
' +
// Index Actions - Primary buttons
'
' +
@@ -2954,9 +2966,17 @@ function buildCodexLensManagerPage(config) {
// Incremental Update button
'
' +
- '
' + t('codexlens.indexTypeHint') + ' Configure embedding model in Environment Variables below.
' +
+ '
' + t('codexlens.indexTypeHint') + '
' +
+ // Maintenance Actions
+ '
' +
+ '
' +
+ '' +
+ '' +
+ '' +
+ '
' +
+ '
' +
'
' +
'
' +
// Storage Path Section
@@ -2980,22 +3000,13 @@ function buildCodexLensManagerPage(config) {
// Environment Variables Section
'
' +
'
' +
- '
Environment Variables
' +
+ ' ' + t('codexlens.environmentVariables') + '
' +
'' +
'' +
'
' +
'
Click Load to view/edit ~/.codexlens/.env
' +
'
' +
'
' +
- // Maintenance Section
- '
' +
- '
' + t('codexlens.maintenance') + '
' +
- '
' +
- '' +
- '' +
- '' +
- '
' +
- '
' +
'
' +
// Right Column
'
' +