@devries-cameron20 / t3code Mirror · read-only / commits / 6f75bcb374
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 19:30 UTC

feat: ChatGPT Business usage limits offer a copyable admin request (#23361)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 21, 2026 at 21:43 UTC 6f75bcb374c0e19ff90e4f7c2d3949c58aba5f02
13 files changed +214 -43
apps/mobile/src/features/threads/ChatGptUsageLimitNotice.tsx new
+69
@@ -0,0 +1,69 @@
1 +import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell";
2 +import {
3 + CHATGPT_USAGE_LIMIT_CODE,
4 + CHATGPT_USAGE_URL,
5 + CHATGPT_WORKSPACE_ADMIN_REQUEST,
6 + CHATGPT_WORKSPACE_USAGE_LIMIT_CODE,
7 +} from "@t3tools/shared/usageLimits";
8 +import * as Clipboard from "expo-clipboard";
9 +import { useState } from "react";
10 +import { Linking, View } from "react-native";
11 +import { ProviderIcon } from "../../components/ProviderIcon";
12 +import { AppText as Text } from "../../components/ui/AppText";
13 +import { Button } from "../../components/ui/Button";
14 +
15 +export function ChatGptUsageLimitNotice({ thread }: { thread: EnvironmentThreadShell }) {
16 + const [status, setStatus] = useState<"copied" | "copy-failed" | "open-failed" | null>(null);
17 + const code = thread.runtime?.lastErrorCode;
18 + const workspaceLimit = code === CHATGPT_WORKSPACE_USAGE_LIMIT_CODE;
19 + if (thread.runtime?.status !== "failed" || (!workspaceLimit && code !== CHATGPT_USAGE_LIMIT_CODE))
20 + return null;
21 + return (
22 + <View
23 + accessibilityRole="alert"
24 + className="mx-3 mb-2 gap-2 rounded-xl border border-border-subtle bg-screen p-3"
25 + >
26 + <View className="flex-row items-center gap-2">
27 + <ProviderIcon provider="codex" size={16} />
28 + <Text className="text-sm font-t3-medium text-foreground">ChatGPT usage limit reached</Text>
29 + </View>
30 + <Text className="text-xs text-foreground-muted">
31 + {workspaceLimit
32 + ? status === "copied"
33 + ? "Request copied. Send it to your workspace admin."
34 + : "You've reached your workspace's limit for using your ChatGPT plan in other apps. Copy a request to ask your workspace admin for increased usage limits."
35 + : "Review your usage settings in ChatGPT."}
36 + </Text>
37 + {workspaceLimit ? (
38 + <Button
39 + label="Copy request for admin"
40 + tone="primary"
41 + onPress={() =>
42 + void Clipboard.setStringAsync(CHATGPT_WORKSPACE_ADMIN_REQUEST).then(
43 + () => setStatus("copied"),
44 + () => setStatus("copy-failed"),
45 + )
46 + }
47 + />
48 + ) : (
49 + <Button
50 + label="Manage usage"
51 + tone="primary"
52 + onPress={() =>
53 + void Linking.openURL(CHATGPT_USAGE_URL).then(
54 + () => setStatus(null),
55 + () => setStatus("open-failed"),
56 + )
57 + }
58 + />
59 + )}
60 + {status === "copy-failed" || status === "open-failed" ? (
61 + <Text accessibilityRole="alert" className="text-xs text-destructive">
62 + {status === "copy-failed"
63 + ? "Could not copy the request. Try again."
64 + : "Could not open ChatGPT. Go to chatgpt.com → Settings → Usage."}
65 + </Text>
66 + ) : null}
67 + </View>
68 + );
69 +}
apps/mobile/src/features/threads/ThreadDetailScreen.tsx
+5
@@ -12,6 +12,7 @@ import {
12 useThreadShell,
13 } from "../../state/entities";
14 import { UsageLimitRecoveryCard } from "./UsageLimitRecoveryCard";
15 +import { ChatGptUsageLimitNotice } from "./ChatGptUsageLimitNotice";
16 import { StackActions, useFocusEffect, useNavigation } from "@react-navigation/native";
17 import {
18 effectiveSnoozed,
@@ -1466,6 +1467,10 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
1467 thread={props.selectedThread}
1468 environmentId={props.environmentId}
1469 />
1470 + <ChatGptUsageLimitNotice
1471 + key={`chatgpt-limit:${props.selectedThread.latestRun?.runId}`}
1472 + thread={props.selectedThread}
1473 + />
1474 {props.feedbackSubmissions.map((submission) => (
1475 <ComposerFeedback
1476 key={submission.id}
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
+19 -4
@@ -3922,6 +3922,13 @@ describe("CodexAdapterV2 post-settle continuation", () => {
3922 notification: false,
3923 expectedClass: "provider_error",
3924 },
3925 + {
3926 + name: "chatgpt-workspace-limit",
3927 + code: "other",
3928 + details: "subscription_sharing_workplace_individual_usage_limit_exceeded",
3929 + notification: true,
3930 + expectedClass: "provider_error",
3931 + },
3932 ] as const)("classifies Codex terminal failures from $name evidence", (scenario) =>
3933 Effect.scoped(
3934 Effect.gen(function* () {
@@ -3999,9 +4006,11 @@ describe("CodexAdapterV2 post-settle continuation", () => {
4006 message,
4007 codexErrorInfo: errorInfo,
4008 additionalDetails:
4002 - scenario.name === "matching-details"
4003 - ? "Detailed provider allowance explanation."
4004 - : null,
4009 + "details" in scenario
4010 + ? scenario.details
4011 + : scenario.name === "matching-details"
4012 + ? "Detailed provider allowance explanation."
4013 + : null,
4014 },
4015 },
4016 },
@@ -4019,7 +4028,9 @@ describe("CodexAdapterV2 post-settle continuation", () => {
4028 ...makeCodexReplayTurn({ id: nativeTurnId, status: "failed" }),
4029 error: {
4030 message: scenario.name === "replacement" ? "A different failure." : message,
4022 - ...(scenario.notification && scenario.name !== "matching-details"
4031 + ...(scenario.notification &&
4032 + scenario.name !== "matching-details" &&
4033 + !("details" in scenario)
4034 ? {}
4035 : { codexErrorInfo: errorInfo }),
4036 },
@@ -4101,6 +4112,10 @@ describe("CodexAdapterV2 post-settle continuation", () => {
4112 assert.isDefined(item);
4113 }
4114 if (scenario.name === "retry") assert.equal(terminal.retry?.attempt, 1);
4115 + if (scenario.name === "chatgpt-workspace-limit") {
4116 + assert.equal(terminal.failure.code, scenario.details);
4117 + assert.include(terminal.failure.message, "workspace admin");
4118 + }
4119 }).pipe(
4120 Effect.provide(
4121 Layer.mergeAll(IdAllocator.layer, McpProviderSessions.layer, NodeServices.layer),
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
+54 -26
@@ -14,6 +14,7 @@ import {
14 } from "../../provider/CodexTurnTokenUsage.ts";
15 import type { ManagedServerProvider } from "@t3tools/provider-core/server/snapshot";
16 import type { CodexEffectiveRuntime } from "../../provider/CodexManagedRuntime.ts";
17 +import { classifyCodexManagedError } from "../../provider/CodexManagedErrors.ts";
18 import {
19 buildCodexInitializeParams,
20 codexAppServerEnvironment,
@@ -1134,10 +1135,25 @@ function codexUsageLimitError(
1135 );
1136 }
1137
1138 +/**
1139 + * ChatGPT sharing reports its own reason inside Codex's generic turn error, so
1140 + * the code it names replaces Codex's, and clients pick a recovery from it.
1141 + */
1142 +function withCodexManagedFailure(
1143 + failure: OrchestrationV2ProviderFailure,
1144 + nativeError: unknown,
1145 +): OrchestrationV2ProviderFailure {
1146 + const managed = classifyCodexManagedError(nativeError);
1147 + return managed === undefined
1148 + ? failure
1149 + : { ...failure, message: managed.message, code: managed.code };
1150 +}
1151 +
1152 interface ActiveCodexTurnContext {
1153 closedCommandItemIds?: ReadonlySet<string>;
1154 latestProviderFailure?: {
1155 readonly nativeMessage: string;
1156 + readonly nativeCode: string | null;
1157 readonly failure: OrchestrationV2ProviderFailure;
1158 };
1159 readonly nativeStartReady?: Deferred.Deferred<void>;
@@ -1167,6 +1183,7 @@ interface ActiveCodexTurnContext {
1183
1184 interface ActiveCodexProviderRetry {
1185 readonly nativeMessage: string;
1186 + readonly nativeCode: string | null;
1187 readonly retry: OrchestrationV2ProviderRetry;
1188 readonly failure: OrchestrationV2ProviderFailure;
1189 readonly startedAt: DateTime.Utc;
@@ -4563,13 +4580,17 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
4580 if (!payload.willRetry) {
4581 context.latestProviderFailure = {
4582 nativeMessage: payload.error.message,
4566 - failure: makeProviderFailure({
4567 - message: payload.error.additionalDetails?.trim() || payload.error.message,
4568 - code: notificationCode,
4569 - class: codexUsageLimitError(notificationCode, payload.error.codexErrorInfo)
4570 - ? "usage_limit"
4571 - : "provider_error",
4572 - }),
4583 + nativeCode: notificationCode,
4584 + failure: withCodexManagedFailure(
4585 + makeProviderFailure({
4586 + message: payload.error.additionalDetails?.trim() || payload.error.message,
4587 + code: notificationCode,
4588 + class: codexUsageLimitError(notificationCode, payload.error.codexErrorInfo)
4589 + ? "usage_limit"
4590 + : "provider_error",
4591 + }),
4592 + payload.error,
4593 + ),
4594 };
4595 return;
4596 }
@@ -4583,24 +4604,28 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
4604 };
4605 const code = codexErrorInfoCode(payload.error.codexErrorInfo);
4606 const additionalDetails = payload.error.additionalDetails?.trim();
4586 - const failure = makeProviderFailure({
4587 - message:
4588 - additionalDetails === undefined || additionalDetails.length === 0
4589 - ? payload.error.message
4590 - : additionalDetails,
4591 - code,
4592 - class: codexUsageLimitError(code, payload.error.codexErrorInfo)
4593 - ? "usage_limit"
4594 - : code?.startsWith("http") === true || code?.startsWith("responseStream") === true
4595 - ? "transport_error"
4596 - : "provider_error",
4597 - retryable: true,
4598 - });
4607 + const failure = withCodexManagedFailure(
4608 + makeProviderFailure({
4609 + message:
4610 + additionalDetails === undefined || additionalDetails.length === 0
4611 + ? payload.error.message
4612 + : additionalDetails,
4613 + code,
4614 + class: codexUsageLimitError(code, payload.error.codexErrorInfo)
4615 + ? "usage_limit"
4616 + : code?.startsWith("http") === true || code?.startsWith("responseStream") === true
4617 + ? "transport_error"
4618 + : "provider_error",
4619 + retryable: true,
4620 + }),
4621 + payload.error,
4622 + );
4623 const itemOrdinal =
4624 previous?.itemOrdinal ??
4625 (yield* resolveItemOrdinal(context, `terminal-failure:${context.providerTurnId}`));
4626 const state: ActiveCodexProviderRetry = {
4627 nativeMessage: payload.error.message,
4628 + nativeCode: code,
4629 retry,
4630 failure,
4631 startedAt: previous?.startedAt ?? updatedAt,
@@ -5656,14 +5681,17 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
5681 previousFailure !== undefined &&
5682 (input.failureMessage === undefined ||
5683 input.failureMessage === previousFailure.nativeMessage) &&
5659 - (failureCode === undefined || failureCode === previousFailure.failure.code) &&
5684 + (failureCode === undefined || failureCode === previousFailure.nativeCode) &&
5685 (exhaustionStatus === null || previousFailure.failure.class === failureClass)
5686 ? previousFailure.failure
5662 - : makeProviderFailure({
5663 - message: input.failureMessage,
5664 - code: failureCode,
5665 - class: failureClass,
5666 - });
5687 + : withCodexManagedFailure(
5688 + makeProviderFailure({
5689 + message: input.failureMessage,
5690 + code: failureCode,
5691 + class: failureClass,
5692 + }),
5693 + input.failureMessage,
5694 + );
5695 return {
5696 type: "turn.terminal",
5697 driver: CODEX_PROVIDER,
apps/server/src/orchestration-v2/ProjectionStore.ts
+2
@@ -1711,6 +1711,7 @@ type ShellThreadState = {
1711 readonly activityRunStartedAt: DateTime.Utc | null;
1712 readonly lastError: string | null;
1713 readonly lastErrorClass: OrchestrationV2ThreadShell["lastErrorClass"];
1714 + readonly lastErrorCode: OrchestrationV2ThreadShell["lastErrorCode"];
1715 readonly usageLimitResetAt: OrchestrationV2ThreadShell["usageLimitResetAt"];
1716 readonly pendingRuntimeRequest: OrchestrationV2PendingRuntimeRequestSummary | null;
1717 readonly latestUserMessageAt: DateTime.Utc | null;
@@ -1866,6 +1867,7 @@ function shellFromState(input: {
1867 status: input.state.latestRunStatus,
1868 lastError: input.state.lastError,
1869 lastErrorClass: input.state.lastErrorClass,
1870 + lastErrorCode: input.state.lastErrorCode,
1871 usageLimitResetAt: input.state.usageLimitResetAt,
1872 pendingRuntimeRequest: input.state.pendingRuntimeRequest,
1873 latestVisibleMessage: null,
apps/server/src/provider/CodexManagedErrors.ts
+5
@@ -9,6 +9,11 @@ const legacyFailures = {
9 "Your ChatGPT usage limit was reached. Check ChatGPT Usage settings for your available allowance.",
10 revoke: false,
11 },
12 + subscription_sharing_workplace_individual_usage_limit_exceeded: {
13 + message:
14 + "You reached your workspace's limit for using ChatGPT in other apps. Ask your workspace admin to increase it.",
15 + revoke: false,
16 + },
17 subscription_sharing_usage_unavailable: {
18 message: "ChatGPT usage is temporarily unavailable. Try again shortly.",
19 revoke: false,
apps/web/src/components/ChatView.tsx
+6 -3
@@ -816,6 +816,8 @@ export default function ChatView(props: ChatViewProps) {
816 ? threadError
817 : null;
818 const [, setThreadErrorBannerDismissTick] = useState(0);
819 + const threadErrorIsServerRuntimeError =
820 + localServerError === null && visibleThreadError === serverRuntime?.lastError;
821 const defaultRuntimeMode = resolveProjectSettings(settings, activeThread?.projectId ?? null)
822 .settings.defaultRuntimeMode;
823 const runtimeMode =
@@ -3235,9 +3237,10 @@ export default function ChatView(props: ChatViewProps) {
3237 threadId={activeThread.id}
3238 threadError={timelineThreadError}
3239 threadErrorClass={
3238 - localServerError === null && visibleThreadError === serverRuntime?.lastError
3239 - ? (serverRuntime?.lastErrorClass ?? null)
3240 - : null
3240 + threadErrorIsServerRuntimeError ? (serverRuntime?.lastErrorClass ?? null) : null
3241 + }
3242 + threadErrorCode={
3243 + threadErrorIsServerRuntimeError ? (serverRuntime?.lastErrorCode ?? null) : null
3244 }
3245 threadErrorBannerKey={threadErrorBannerKey}
3246 setThreadError={setThreadError}
apps/web/src/components/chat/ChatBannerLane.tsx
+3
@@ -20,6 +20,7 @@ export function ChatBannerLane(props: {
20 threadId: ThreadId;
21 threadError: string | null;
22 threadErrorClass: OrchestrationV2ProviderFailureClass | null;
23 + threadErrorCode: string | null;
24 threadErrorBannerKey: string | null;
25 setThreadError: (threadId: ThreadId | null, error: string | null) => void;
26 setThreadErrorBannerDismissTick: Dispatch<SetStateAction<number>>;
@@ -32,6 +33,7 @@ export function ChatBannerLane(props: {
33 threadId,
34 threadError,
35 threadErrorClass,
36 + threadErrorCode,
37 threadErrorBannerKey,
38 setThreadError,
39 setThreadErrorBannerDismissTick,
@@ -46,6 +48,7 @@ export function ChatBannerLane(props: {
48 <ThreadErrorBanner
49 error={threadError}
50 errorClass={threadErrorClass}
51 + errorCode={threadErrorCode}
52 onDismiss={() => {
53 setThreadError(threadId, null);
54 dismissThreadErrorBannerForSession(threadErrorBannerKey);
apps/web/src/components/chat/ThreadErrorBanner.tsx
+39 -8
@@ -1,12 +1,31 @@
1 import type { OrchestrationV2ProviderFailureClass } from "@t3tools/contracts";
2 +import {
3 + CHATGPT_USAGE_LIMIT_CODE,
4 + CHATGPT_WORKSPACE_ADMIN_REQUEST,
5 + CHATGPT_WORKSPACE_USAGE_LIMIT_CODE,
6 +} from "@t3tools/shared/usageLimits";
7 import { memo } from "react";
8 +import { writeTextToClipboard } from "../../hooks/useCopyToClipboard";
9 import { Alert, AlertAction, AlertDescription } from "../ui/alert";
10 import { Button } from "../ui/button";
11 +import { toastManager } from "../ui/toast";
12 import { CircleAlertIcon, XIcon } from "lucide-react";
13 import { OpenAI } from "../Icons";
14 import { ChatGptUsageButton } from "../settings/ChatGptUsageButton";
15 import { ExpandableText } from "../settings/ExpandableText";
16
17 +function copyAdminRequest() {
18 + void writeTextToClipboard(CHATGPT_WORKSPACE_ADMIN_REQUEST, "admin request").then(
19 + () =>
20 + toastManager.add({
21 + type: "success",
22 + title: "Request copied",
23 + description: "Send it to your workspace admin.",
24 + }),
25 + () => toastManager.add({ type: "error", title: "Could not copy the request" }),
26 + );
27 +}
28 +
29 export function getThreadErrorBannerMessage(error: string): string {
30 let payload: unknown;
31 try {
@@ -54,36 +73,48 @@ export const ThreadErrorBanner = memo(function ThreadErrorBanner({
73 error,
74 onDismiss,
75 errorClass,
57 - chatGptUsageLimit = false,
76 + errorCode,
77 }: {
78 error: string | null;
79 errorClass?: OrchestrationV2ProviderFailureClass | null;
80 + errorCode?: string | null;
81 onDismiss?: () => void;
62 - chatGptUsageLimit?: boolean;
82 }) {
83 if (!error) return null;
65 - const variant = errorClass === "usage_limit" ? "warning" : "error";
84 + const workspaceLimit = errorCode === CHATGPT_WORKSPACE_USAGE_LIMIT_CODE;
85 + const chatGptLimit = workspaceLimit || errorCode === CHATGPT_USAGE_LIMIT_CODE;
86 + const variant = errorClass === "usage_limit" || chatGptLimit ? "warning" : "error";
87 return (
88 <div className="pointer-events-auto mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3">
89 <Alert variant={variant} surface="glass" controlAlignment="first-line" data-variant={variant}>
69 - {chatGptUsageLimit ? (
90 + {chatGptLimit ? (
91 <OpenAI className="size-4 text-foreground!" aria-hidden="true" />
92 ) : (
93 <CircleAlertIcon />
94 )}
95 <AlertDescription>
75 - {chatGptUsageLimit ? (
96 + {chatGptLimit ? (
97 <div className="space-y-1">
98 <p className="font-medium">ChatGPT usage limit reached</p>
78 - <p>Review your usage settings in ChatGPT to continue.</p>
99 + <p>
100 + {workspaceLimit
101 + ? "You've reached your workspace's limit for using your ChatGPT plan in other apps. Copy a request to ask your workspace admin for increased usage limits."
102 + : "Review your usage settings in ChatGPT."}
103 + </p>
104 </div>
105 ) : (
106 <ExpandableText text={error} collapsedText={getThreadErrorBannerMessage(error)} />
107 )}
108 </AlertDescription>
84 - {(chatGptUsageLimit || onDismiss) && (
109 + {(chatGptLimit || onDismiss) && (
110 <AlertAction>
86 - {chatGptUsageLimit ? <ChatGptUsageButton variant="default" size="sm" /> : null}
111 + {workspaceLimit ? (
112 + <Button variant="default" size="sm" onClick={copyAdminRequest}>
113 + Copy request for admin
114 + </Button>
115 + ) : chatGptLimit ? (
116 + <ChatGptUsageButton variant="default" size="sm" />
117 + ) : null}
118 {onDismiss ? (
119 <Button variant="ghost" size="icon-xs" aria-label="Dismiss error" onClick={onDismiss}>
120 <XIcon />
packages/client-runtime/src/state/models.ts
+2
@@ -60,6 +60,7 @@ export interface ThreadRuntimeSummary {
60 readonly providerName: string | null;
61 readonly lastError: string | null;
62 readonly lastErrorClass?: OrchestrationV2ProviderFailureClass | null;
63 + readonly lastErrorCode?: string | null;
64 readonly usageLimitResetAt?: string | null;
65 readonly updatedAt: string;
66 }
@@ -185,6 +186,7 @@ function shellRuntime(thread: OrchestrationV2ThreadShell): ThreadRuntimeSummary
186 providerName: null,
187 lastError: thread.lastError ?? null,
188 lastErrorClass: thread.lastErrorClass ?? null,
189 + lastErrorCode: thread.lastErrorCode ?? null,
190 usageLimitResetAt: thread.usageLimitResetAt ?? null,
191 updatedAt: iso(thread.updatedAt),
192 };
packages/contracts/src/orchestrationV2.ts
+1
@@ -1838,6 +1838,7 @@ export const OrchestrationV2ThreadShell = Schema.Struct({
1838 status: OrchestrationV2ShellThreadStatus,
1839 lastError: Schema.optional(Schema.NullOr(Schema.String)),
1840 lastErrorClass: Schema.optional(Schema.NullOr(OrchestrationV2ProviderFailureClass)),
1841 + lastErrorCode: Schema.optional(Schema.NullOr(Schema.String)),
1842 usageLimitResetAt: Schema.optional(Schema.NullOr(IsoDateTime)),
1843 pendingRuntimeRequest: Schema.NullOr(OrchestrationV2PendingRuntimeRequestSummary),
1844 latestVisibleMessage: Schema.NullOr(OrchestrationV2LatestVisibleMessageSummary),
packages/shared/src/orchestrationV2ThreadError.ts
+2 -2
@@ -41,8 +41,8 @@ export function threadErrorSummary(
41 usageLimitResetAt:
42 currentFailure?.class === "usage_limit" ? (currentFailure.resetAt ?? null) : null,
43 lastError: sessionError ?? failure?.message ?? null,
44 - lastErrorClass:
45 - sessionError !== null && sessionError !== failure?.message ? null : (failure?.class ?? null),
44 + lastErrorClass: currentFailure?.class ?? null,
45 + lastErrorCode: currentFailure?.code ?? null,
46 };
47 }
48
packages/shared/src/usageLimits.ts
+7
@@ -18,6 +18,13 @@ const HOUR = 60 * MINUTE;
18 const DAY = 24 * HOUR;
19
20 export const CHATGPT_USAGE_URL = "https://chatgpt.com/#settings/Usage";
21 +export const CHATGPT_USAGE_LIMIT_CODE = "subscription_sharing_usage_limit_exceeded";
22 +/** A ChatGPT Business admin caps plan use in other apps; only the admin can raise it. */
23 +export const CHATGPT_WORKSPACE_USAGE_LIMIT_CODE =
24 + "subscription_sharing_workplace_individual_usage_limit_exceeded";
25 +/** OpenAI's partner guidelines fix this wording; the user sends it to their admin themselves. */
26 +export const CHATGPT_WORKSPACE_ADMIN_REQUEST =
27 + "I've reached the limit for using my ChatGPT plan in T3 Code. Could you increase our workspace's usage limits so I can continue?\n\nGo to admin.openai.com → Workspace → Usage limits. Thank you!";
28
29 export function usesChatGptSharing(provider: ServerProvider | null | undefined): boolean {
30 return provider?.auth.status === "authenticated" && provider.auth.subscriptionSharing === true;