From 8a724b79ec556c7fc3568851aee87f5cdabb9077 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 16 Oct 2025 22:28:36 +0800 Subject: [PATCH] fix: enable base URL and endpoint editing for Codex providers in edit mode Fixed critical bug where CodexFormFields component was not rendered in edit mode, preventing users from: - Viewing and editing API base URL for custom/third-party Codex providers - Accessing endpoint speed test modal in edit mode - Updating API keys in edit mode Changed line 477 from: {appType === "codex" && !isEditMode && ( To: {appType === "codex" && ( This aligns Codex behavior with Claude, where all form fields are available in both create and edit modes for custom/third-party providers. --- src/components/providers/forms/ProviderForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/providers/forms/ProviderForm.tsx b/src/components/providers/forms/ProviderForm.tsx index b4d8b22..245b8c6 100644 --- a/src/components/providers/forms/ProviderForm.tsx +++ b/src/components/providers/forms/ProviderForm.tsx @@ -474,7 +474,7 @@ export function ProviderForm({ )} {/* Codex 专属字段 */} - {appType === "codex" && !isEditMode && ( + {appType === "codex" && (