Skip to content

Commit 51e153c

Browse files
committed
fix: resolve OpenAI Compatible settings persistence issues
- Fixed storage mismatch in config-manager.ts where settings were read from incorrect top-level keys instead of nested codebaseIndexConfig object - Updated CodebaseIndexConfig type definition to include OpenAI Compatible fields - Removed complex workaround logic from import/export that is no longer needed - Fixed UI bug in CodeIndexPopover where saved settings were not displayed - Updated unit tests to match the corrected architecture This addresses Dan's review feedback about the root cause of the bug and ensures OpenAI Compatible provider settings are properly saved, displayed, and exported.
1 parent 9a7d0a3 commit 51e153c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webview-ui/src/components/chat/CodeIndexPopover.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ export const CodeIndexPopover: React.FC<CodeIndexPopoverProps> = ({
117117
codebaseIndexConfig.codebaseIndexSearchMaxResults || CODEBASE_INDEX_DEFAULTS.DEFAULT_SEARCH_RESULTS,
118118
codeIndexOpenAiKey: "",
119119
codeIndexQdrantApiKey: "",
120-
codebaseIndexOpenAiCompatibleBaseUrl: "",
120+
codebaseIndexOpenAiCompatibleBaseUrl: codebaseIndexConfig.codebaseIndexOpenAiCompatibleBaseUrl || "",
121121
codebaseIndexOpenAiCompatibleApiKey: "",
122-
codebaseIndexOpenAiCompatibleModelDimension: undefined,
122+
codebaseIndexOpenAiCompatibleModelDimension:
123+
codebaseIndexConfig.codebaseIndexOpenAiCompatibleModelDimension || undefined,
123124
codebaseIndexGeminiApiKey: "",
124125
}
125126
setInitialSettings(settings)

0 commit comments

Comments
 (0)