From 44cc8245abc6fcc578ea5009fdc2941d9a22cf19 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 15 Jun 2026 20:55:14 +0800 Subject: [PATCH] fix(provider-form): show Codex FAST mode toggle in account-select mode The FAST mode switch was gated on mode === "manage", but the Claude and Claude Desktop Codex OAuth forms render CodexOAuthSection in select mode while still passing onFastModeChange. The toggle was therefore hidden: new providers couldn't enable FAST mode and existing ones couldn't turn it off, even though the backend still honors meta.codexFastMode. Gate the toggle on onFastModeChange presence instead, restoring the pre-refactor behavior without affecting the manage panel or native Codex form (which do not pass the handler). --- src/components/providers/forms/CodexOAuthSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/providers/forms/CodexOAuthSection.tsx b/src/components/providers/forms/CodexOAuthSection.tsx index 560373645..5eeb0babe 100644 --- a/src/components/providers/forms/CodexOAuthSection.tsx +++ b/src/components/providers/forms/CodexOAuthSection.tsx @@ -198,7 +198,7 @@ export const CodexOAuthSection: React.FC = ({ accountSelect )} - {mode === "manage" && onFastModeChange && ( + {onFastModeChange && (