chore: clean up TODO comments in ProviderForm
- Remove obsolete TODO comments for Codex Base URL handling - Codex Base URL is already fully managed by useCodexConfigState hook - useBaseUrlState is now only used for Claude mode - Add clarifying comments about the architecture
This commit is contained in:
@@ -120,20 +120,15 @@ export function ProviderForm({
|
||||
selectedPresetId,
|
||||
});
|
||||
|
||||
// 使用 Base URL hook
|
||||
const {
|
||||
baseUrl,
|
||||
// codexBaseUrl, // TODO: 等 Codex 支持时使用
|
||||
handleClaudeBaseUrlChange,
|
||||
// handleCodexBaseUrlChange, // TODO: 等 Codex 支持时使用
|
||||
} = useBaseUrlState({
|
||||
// 使用 Base URL hook (仅 Claude 模式)
|
||||
const { baseUrl, handleClaudeBaseUrlChange } = useBaseUrlState({
|
||||
appType,
|
||||
category,
|
||||
settingsConfig: form.watch("settingsConfig"),
|
||||
codexConfig: "", // TODO: 从 settingsConfig 中提取 codex config
|
||||
codexConfig: "",
|
||||
onSettingsConfigChange: (config) => form.setValue("settingsConfig", config),
|
||||
onCodexConfigChange: () => {
|
||||
// TODO: 更新 codex config
|
||||
// Codex 使用 useCodexConfigState 管理 Base URL
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user