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 — feat(app): ask the workspace admin when the ChatGPT Business limit is reached by rekram1-node · Pull Request #64926 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 19, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

On ChatGPT Business workspaces, an admin sets how much of the shared plan each member can use. When a member hits that cap, sign in with ChatGPT returns subscription_sharing_workplace_individual_usage_limit_exceeded. Since #62823 we stop retrying it and show an error line, but the app opened no dialog, and the user had no easy way to ask their admin for more.

This gives the workspace limit its own error type and shows the ChatGPT usage dialog with a "Copy request for admin" button, as in OpenAI's partner guidelines.

 subscription_sharing_usage_limit_exceeded
   type: provider.chatgpt-limit       → dialog: "Manage usage" opens ChatGPT settings
 subscription_sharing_workplace_individual_usage_limit_exceeded
-  type: provider.rate-limit          → no dialog
+  type: provider.chatgpt-workspace-limit
+                                     → dialog: "Copy request for admin" copies a message for the admin

The copied message:

I've reached the limit for using my ChatGPT plan in OpenCode. Could you increase our workspace's usage limits so I can continue?

Go to admin.openai.com → Workspace → Usage limits. Thank you!

The button only copies the text. Where the clipboard API is missing (the web UI over plain HTTP), it falls back to writeClipboard, and if copying still fails the dialog shows the request so it can be copied by hand. Sending it is up to the user, and nothing changes the limit. Both dialogs share the existing 24 hour cooldown.

  • packages/core/src/session/to-session-error.ts: types the workspace limit as provider.chatgpt-workspace-limit. type is a free string in the session error schema, so this adds no schema change. The message text is unchanged.
  • packages/app/src/session/usage-exceeded-dialogs.tsx: opens the dialog for either ChatGPT limit.
  • packages/app/src/providers/connect/chatgpt-usage-limit.tsx: workspace copy and the copy button, plus a story.

SDK and plugin code that matched this error as provider.rate-limit will now see provider.chatgpt-workspace-limit. Nothing in this repo matched on it.

Verification

  • bun test test/session-error.test.ts in packages/core: 14 pass.
  • bun typecheck in packages/core and packages/app: pass.
  • bun run test:unit in packages/app: 2776 pass. No test renders the dialog itself.

Added by the opencode bot (AI-generated).

Public API: session error type for the ChatGPT workspace limit changes from provider.rate-limit to provider.chatgpt-workspace-limit (no schema change; consumers matching the old type for this error stop matching)

Sorry, something went wrong.

Uh oh!

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

All reactions
@rekram1-node
feat(app): handle ChatGPT Business workspace usage limits
2f31ceb
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks right. The core typing is verified by tests: the workspace limit becomes provider.chatgpt-workspace-limit, still isn't retried, and nothing else in app/TUI/CLI/ACP/client branches on its old provider.rate-limit type. I couldn't render the dialog here (it's app UI and no browser was available). Could you attach a screenshot of the workspace dialog before and after clicking "Copy request for admin"?

Public API: the type reported in session errors for subscription_sharing_workplace_individual_usage_limit_exceeded changes from provider.rate-limit to provider.chatgpt-workspace-limit. There's no schema change (type is a free string), but SDK/plugin consumers that matched on provider.rate-limit for this error will no longer match it. No other API surface is affected.

One concern, inline: on plain-HTTP origins the copy silently does nothing.

Small note: src/session/usage-exceeded-dialogs.test.ts loads fine with the package's preloads (bun run test:unit, or --conditions=solid --preload ../ui/test/solid-jsx.ts --preload ./happydom.ts). The jsxDEV error comes from running it without them.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/app/src/providers/connect/chatgpt-usage-limit.tsx Outdated
const text = language.t("provider.connect.chatgptUsageLimit.request")
void Promise.resolve()
.then(() =>
platform.writeClipboardText ? platform.writeClipboardText(text) : navigator.clipboard.writeText(text),

@opencodejr opencodejr Bot Nov 19, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the web UI over plain HTTP (LAN/Tailscale), navigator.clipboard is undefined, so this throws. The .catch swallows it, and the dialog's only action does nothing visible. AGENTS.md asks for a non-secure fallback here. providers/connect/dialog.tsx and settings/about/about.tsx use writeClipboard from @opencode/session-ui/copy, which falls back to a selected textarea and returns false on failure. It would also help to show something when the copy fails (e.g. the request text to copy by hand) instead of leaving the dialog unchanged.

Sorry, something went wrong.

Uh oh!

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

All reactions
@rekram1-node
fix(app): copy the admin request without the async clipboard API
f75523c
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commits fix the earlier clipboard point. The copy now goes through writeClipboard where the platform has no copy function, and if it still fails the dialog shows the request to copy by hand. tsc -b in packages/app passes. I couldn't render the dialog here, so a screenshot of the workspace dialog after a successful copy and after a failed one would help.

Public API: unchanged since the last review. The session error type for the ChatGPT workspace limit changes from provider.rate-limit to provider.chatgpt-workspace-limit (no schema change).

No new concerns.

Sorry, something went wrong.

Uh oh!

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

All reactions
@rekram1-node
rekram1-node merged commit a0ef1e9 into dev Nov 19, 2026
14 checks passed

Uh oh!

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

@rekram1-node
rekram1-node deleted the chatgpt-business-limit branch November 19, 2026 18:25
@thdxr thdxr mentioned this pull request Nov 20, 2026
port dialog and focus ring updates anomalyco/opencode-rune#228
Open
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@rekram1-node
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 01402775 — 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.