t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Codex "Subscription Sharing usage limit" stream error isn't treated as a usage limit, so there's no resume-at-reset option

Open NathanGlasby opened this issue 1 month ago • 2 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Use Codex through a ChatGPT subscription login until the 5-hour usage limit is used up mid-turn.
  2. Watch the thread when the limit hits.

Expected behavior

T3 Code recognises it as a usage limit, shows the reset time, and offers to resume once limits reset.

Actual behavior

My ChatGPT 5-hour usage limit was at 0% remaining when the turn failed with:

stream disconnected before completion: The ChatGPT user has reached their Subscription Sharing usage limit. Ask the user to try again after their usage limit resets or use an API key instead.

So it's a real usage limit, but T3 Code shows no usage-limit banner, no reset time and no resume option. It's handled like a generic stream disconnect.

Impact

Long-running work stops and doesn't pick back up after the reset, so I have to resume the thread by hand.

Version or commit

0.1.2 (044f07257c96)

Environment

T3 Code (Beta) desktop app on macOS 27, MacBook Air M5

Logs or stack traces

No response

Screenshots, recordings, or supporting files

No response

Workaround

Manually resend or resume the thread after the limit resets.

Related: #18766 had the same error text and was closed as not planned. This is narrower: the message says it's a usage limit, so it should go through the same path as other limit stops (#17808, #24885).

NathanGlasby avatar Oct 26 '26 05:10 NathanGlasby

I have just had the same thing happen to me.

Pjieter avatar Oct 27 '26 19:10 Pjieter

Same on 0.1.7-nightly.20261104.4151 (commit 322f6544dfad), with a few extra details that may help.

Setup: T3 server on a remote Ubuntu host, used from app.t3.codes. Codex 0.166.0 through Connect with ChatGPT (managed runtime, model_provider="openai_token_sharing").

What happens

  • Every turn fails with stream disconnected before completion: The ChatGPT user has reached their Subscription Sharing usage limit. ..., shown as "Provider error after 5/5 retries". There's no Limited state, no reset time and no resume.
  • T3 retries the hard limit 5 times first (Reconnecting... 1/5 …), so each "continue" spends a few minutes failing.
  • The provider event log on that host has 900+ of these errors across several threads since Oct 20. 665 arrive as codexErrorInfo: {responseStreamDisconnected: {httpStatusCode: null}} with the text only in additionalDetails, and 249 as codexErrorInfo: "other". Neither comes with the subscription_sharing_usage_limit_exceeded code, so the friendly message in CodexManagedErrors.ts ("Your ChatGPT usage limit was reached. Check ChatGPT Usage settings…") is never used.
  • account/rateLimits/updated for the managed instance always has planType: null and empty primary/secondary. Settings → Providers only shows "Could not check Codex right now", so nothing points at the shared-usage allowance. The same account signed in with codex login (existing CLI home) reports its plan and limits normally and keeps working while the managed runtime is limited.

Suggestion: besides routing this stream error through the usage-limit path (as above), have the error and the provider status say that it's the ChatGPT sharing allowance, and link to Manage usage. Users with usage left on their plan otherwise assume T3 is broken. Using an existing Codex CLI login is the workaround.

Evidence gathered by Claude Code (Claude Opus 5.5) during a T3 Code triage session.

grenmango51 avatar Nov 04 '26 11:11 grenmango51