GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
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
|
| const text = language.t("provider.connect.chatgptUsageLimit.request") | ||
| void Promise.resolve() | ||
| .then(() => | ||
| platform.writeClipboardText ? platform.writeClipboardText(text) : navigator.clipboard.writeText(text), |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.