GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web,mobile): Limits shows why a provider's limits are unavailable by seankd3 · Pull Request #40481 · pingdotgg/t3code

fix(web,mobile): Limits shows why a provider's limits are unavailable #40481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 2 commits into pingdotgg:main from seankd3:fix/unsupported-limits-notice
Nov 21, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(web,mobile): Limits shows why a provider's limits are unavailable #40481

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit Hold shift + click to select a range
0d9f892
fix(web,mobile): Limits shows why a provider's limits are unavailable
seankd3 Nov 21, 2026
93732d1
Merge remote-tracking branch 'origin/main' into fix/unsupported-limit…
juliusmarminge Nov 21, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Next Next commit
fix(web,mobile): Limits shows why a provider's limits are unavailable
An unsupported reading that carries a message, such as Antigravity's
"Sign in with Google to see Antigravity limits.", was dropped from the
Limits page with no row and no notice. It now shows as a notice. A bare
unsupported reading and one with an external usage link stay hidden.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@seankd3 @claude
seankd3 and claude committed Nov 21, 2026
commit 0d9f892fa8cfdf15057fbd1bc6fb12e58c212b67

There are no files selected for viewing

24 changes: 24 additions & 0 deletions 24 packages/shared/src/usageLimits.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,30 @@ describe("external usage settings", () => {
expect(collectLimitNotices(presentations)).toEqual(["Host · codex: Could not read limits."]);
});

it("shows the reason an account's limits are unsupported, but not a bare unsupported", () => {
const unsupported = (message?: string) =>
provider({
usageLimits: {
checkedAt: "2026-09-03T11:00:00.000Z",
windows: [],
unavailable: { reason: "unsupported", ...(message ? { message } : {}) },
},
});
const notices = (limited: ServerProvider) =>
collectLimitNotices(
new Map([
[
EnvironmentId.make("a"),
{ entry: { target: { label: "Host" } }, serverConfig: { providers: [limited] } },
],
]),
);
expect(notices(unsupported("Sign in with Google to see Antigravity limits."))).toEqual([
"codex: Sign in with Google to see Antigravity limits.",
]);
expect(notices(unsupported())).toEqual([]);
});

it("names a hub account whose read failed unless another environment read it", () => {
const checkedAt = "2026-09-03T11:00:00.000Z";
const account = {
Expand Down
11 changes: 9 additions & 2 deletions 11 packages/shared/src/usageLimitsCopy.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,15 @@ export function collectLimitNotices(
for (const presentation of presentations.values()) {
const environmentLabel = presentation.entry.target.label;
for (const provider of providersWithLimits(presentation.serverConfig?.providers ?? [])) {
if (provider.usageLimits?.unavailable?.reason === "unsupported") continue;
const notice = provider.usageLimits ? limitsNotice(provider.usageLimits, resolve) : null;
const limits = provider.usageLimits;
// A bare unsupported means the account has no limits; an external usage link shows its message.
if (
limits?.unavailable?.reason === "unsupported" &&
(!limits.unavailable.message || limits.externalUsage)
) {
continue;
}
const notice = limits ? limitsNotice(limits, resolve) : null;
const name = provider.displayName?.trim() || String(provider.driver);
if (notice) notices.add(`${label(environmentLabel, name)}: ${notice}`);
}
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.