fix: resolve GitHub issues #63, #66, #67, #68, #69, #70

- #70: Fix API Key Tester URL handling - normalize trailing slashes before
  version suffix detection to prevent double-slash URLs like //models
- #69: Fix memory embedder ignoring CodexLens config - add error handling
  for CodexLensConfig.load() with fallback to defaults
- #68: Fix ccw cli using wrong Python environment - add getCodexLensVenvPython()
  to resolve correct venv path on Windows/Unix
- #67: Fix LiteLLM API Provider test endpoint - actually test API key connection
  instead of just checking ccw-litellm installation
- #66: Fix help-routes.ts path configuration - use correct 'ccw-help' directory
  name and refactor getIndexDir to pure function
- #63: Fix CodexLens install state refresh - add cache invalidation after
  config save in codexlens-manager.js

Also includes targeted unit tests for the URL normalization logic.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
catlog22
2026-01-13 18:20:54 +08:00
parent 61cef8019a
commit 340137d347
12 changed files with 546 additions and 29 deletions

View File

@@ -1034,6 +1034,15 @@ async function startCodexLensInstall() {
progressBar.style.width = '100%';
statusText.textContent = 'Installation complete!';
// 清理缓存以确保刷新后获取最新状态
if (window.cacheManager) {
window.cacheManager.invalidate('all-status');
window.cacheManager.invalidate('dashboard-init');
}
if (typeof window.invalidateCodexLensCache === 'function') {
window.invalidateCodexLensCache();
}
setTimeout(() => {
closeCodexLensInstallWizard();
showRefreshToast('CodexLens installed successfully!', 'success');
@@ -1184,6 +1193,15 @@ async function startCodexLensUninstall() {
progressBar.style.width = '100%';
statusText.textContent = 'Uninstallation complete!';
// 清理缓存以确保刷新后获取最新状态
if (window.cacheManager) {
window.cacheManager.invalidate('all-status');
window.cacheManager.invalidate('dashboard-init');
}
if (typeof window.invalidateCodexLensCache === 'function') {
window.invalidateCodexLensCache();
}
setTimeout(() => {
closeCodexLensUninstallWizard();
showRefreshToast('CodexLens uninstalled successfully!', 'success');