fix(mobile): one aligned notice for ChatGPT sharing limits #31277
Mergedshivamhwp(GitHub profile, opens in a new tab)merged 8 commits into
main fromrefs/pull/31277/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/mobile/src/features/threads/UsageLimitRecoveryCard.tsx lines 136 to 149OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -91,0 +129,21 @@129+ ) : null}130+ {workspaceLimit ? (131+ <Button132+ label="Copy request for admin"133+ tone="secondary"134+ size="compact"135+ onPress={() =>136+ void Clipboard.setStringAsync(CHATGPT_WORKSPACE_ADMIN_REQUEST).then(137+ () => setCopied(true),138+ () => setError("Could not copy the request. Try again."),139+ )140+ }141+ />142+ ) : chatGptLimit ? (143+ <Button144+ label="Manage usage"145+ tone="secondary"146+ size="compact"147+ onPress={() =>148+ void Linking.openURL(CHATGPT_USAGE_URL).catch(() =>149+ setError("Could not open ChatGPT. Go to chatgpt.com → Settings → Usage."),
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/mobile/src/features/threads/UsageLimitRecoveryCard.tsx line 47OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -30,6 +38,10 @@3038 const recovery = thread.limitRecovery;3139 const scheduled =3240 recovery?.runId === runId && recovery?.resetAt === resetAt && recovery?.autoResume;41+ const [copied, setCopied] = useState(false);42+ const code = thread.runtime?.lastErrorCode;43+ const workspaceLimit = code === CHATGPT_WORKSPACE_USAGE_LIMIT_CODE;44+ const chatGptLimit = workspaceLimit || code === CHATGPT_USAGE_LIMIT_CODE;3345 if (3446 thread.runtime?.status !== "failed" ||35- thread.runtime.lastErrorClass !== "usage_limit" ||47+ // Servers before #25341 report sharing limits as provider errors.apps/mobile/src/features/threads/UsageLimitRecoveryCard.tsx lines 121 to 130Resolvedby shivamhwp(GitHub profile, opens in a new tab)@@ -70,9 +86,10 @@7086 }7187 return (7288 <View className="mx-3 mb-2 gap-2 rounded-xl border border-warning-foreground/25 bg-screen p-3">73- <Text className="text-sm text-warning-foreground">74- {resetAt75- ? `Usage limit resets ${DateTime.toDateUtc(DateTime.makeUnsafe(resetAt)).toLocaleString()}.`76- : "The provider did not report a reset time. Retry manually when your limit is available."}77- </Text>78- {canSchedule ? (89+ {chatGptLimit ? (90+ // OpenAI's partner guidelines specify this ChatGPT notice and its action.91+ <>92+ <View className="flex-row items-center gap-2">93+ <ProviderIcon provider="codex" size={16} />94+ <Text className="text-sm font-t3-medium text-warning-foreground">95+ ChatGPT usage limit reachedapps/mobile/src/features/threads/UsageLimitRecoveryCard.tsx lines 135 to 139OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -91,0 +119,21 @@119+ disabled={pending}120+ onPress={() => void toggle("resume")}121+ />122+ <Button123+ label={snoozed ? "Wake now" : "Snooze until reset"}124+ tone="secondary"125+ disabled={pending || (!snoozed && resetPassed)}126+ onPress={() => void toggle("snooze")}127+ />128+ </>129+ ) : null}130+ {workspaceLimit ? (131+ <Button132+ label="Copy request for admin"133+ tone="secondary"134+ size="compact"135+ onPress={() =>136+ void Clipboard.setStringAsync(CHATGPT_WORKSPACE_ADMIN_REQUEST).then(137+ () => setCopied(true),138+ () => setError("Could not copy the request. Try again."),139+ )
shivamhwp(GitHub profile, opens in a new tab) changed the title
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
shivamhwp(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Approvability#
Verdict: Approved at
16b0985Macroscope's review found this PR approvable — Consolidates mobile ChatGPT usage-limit messaging into one recovery card while preserving explicit recovery actions and accessibility alerts. The change is limited to notice presentation and interaction, without changing usage limits or automatic recovery defaults.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).