Skip to content
TypeScript

fix(codex): explain speed limits on managed connections (#30322)

shivam0f4a13071090
diff --git a/apps/mobile/src/features/threads/ChatGptSharingStatus.tsx b/apps/mobile/src/features/threads/ChatGptSharingStatus.tsx
index afad0906cfe..bc62146a084 100644
--- a/apps/mobile/src/features/threads/ChatGptSharingStatus.tsx
+++ b/apps/mobile/src/features/threads/ChatGptSharingStatus.tsx
@@ -19,6 +19,7 @@ export function ChatGptSharingStatus({ provider }: { provider: ServerProvider |
[
provider?.auth.email,
"Eligible usage uses your ChatGPT plan. Credit settings and limits are managed in ChatGPT.",
+ "Fast and Ultrafast are unavailable with this ChatGPT connection. Use an existing Codex CLI login for speed options your account supports.",
]
.filter(Boolean)
.join("\n\n"),
diff --git a/apps/web/src/components/chat/ChatGptSharingControl.tsx b/apps/web/src/components/chat/ChatGptSharingControl.tsx
index 905e74ce1cc..1d6917d39a1 100644
--- a/apps/web/src/components/chat/ChatGptSharingControl.tsx
+++ b/apps/web/src/components/chat/ChatGptSharingControl.tsx
@@ -1,16 +1,36 @@
import { usesChatGptSharing } from "@t3tools/shared/usageLimits";
import type { ServerProvider } from "@t3tools/contracts";
+import { useId } from "react";
import { OpenAI } from "../Icons";
import { ChatGptUsageButton } from "../settings/ChatGptUsageButton";
+import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+
+const speedNotice =
+ "Fast and Ultrafast are unavailable with this ChatGPT connection. Use an existing Codex CLI login for speed options your account supports.";
export function ChatGptSharingControl({ provider }: { provider: ServerProvider | null }) {
+ const speedNoticeId = useId();
if (!usesChatGptSharing(provider)) return null;
return (
<div className="flex items-center justify-between gap-4 border-t px-3 py-2">
- <span className="flex items-center gap-2 text-xs text-muted-foreground">
- <OpenAI className="size-3.5" aria-hidden="true" />
- Using ChatGPT plan
- </span>
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <span
+ aria-describedby={speedNoticeId}
+ tabIndex={0}
+ className="flex items-center gap-2 rounded-sm text-xs text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
+ />
+ }
+ >
+ <OpenAI className="size-3.5" aria-hidden="true" />
+ Using ChatGPT plan
+ </TooltipTrigger>
+ <span id={speedNoticeId} className="sr-only">
+ {speedNotice}
+ </span>
+ <TooltipPopup side="top">{speedNotice}</TooltipPopup>
+ </Tooltip>
<ChatGptUsageButton size="xs" />
</div>
);
diff --git a/docs/user/providers-codex.md b/docs/user/providers-codex.md
index bdc87902a63..3384831aa87 100644
--- a/docs/user/providers-codex.md
+++ b/docs/user/providers-codex.md
@@ -12,6 +12,9 @@ Manage shared usage and credits in ChatGPT through **Manage usage** in T3 Code.
If a request uses a feature that ChatGPT sharing does not support, use another
provider for that request.
+Fast and Ultrafast speeds are unavailable with this connection. To use the speed
+options your account supports, [use an existing Codex login](#use-an-existing-codex-login).
+
When reconnecting, choose the same account in T3 Code and on OpenAI's sign-in
page. Disconnecting stops running threads but keeps their history and lets you
reconnect later.
@@ -25,6 +28,11 @@ T3 Code can use your installed Codex and its existing login. Run `codex login`
on the environment's machine to sign in. [Provider setup](./install.md#providers)
covers installation and custom configuration.
+Running `codex login` does not change a managed ChatGPT connection. In
+**Settings > Providers**, add a Codex instance, choose **Configure manually**,
+and complete the wizard. Then select that instance from the thread's model
+picker. See [Use multiple accounts](#use-multiple-accounts).
+
## Use multiple accounts
Add another ChatGPT account in **Settings → Providers**, then select the account