fromFHTTPResponse returned Header and Trailer maps that aliased the
original fhttp.Response maps. Downstream consumers (e.g. console
adapter calling Header.Del) mutated the shared maps, corrupting the
fhttp response state. Clone all shared data structures (Header,
Trailer, TransferEncoding) to isolate the two responses.
When normalizeResponseFormat promoted json_schema fields into the
top-level format object, the schema's own "type" key (e.g. "object")
overwrote the format "type" that was just set to "json_schema". The
upstream then received a malformed format specification with
type:"object" instead of type:"json_schema".
Skip the "type" key when copying schema fields to preserve the
correct format type.
After a successful hard link commits the image to its permanent path,
a failure to remove the temporary file caused the permanent copy to
be deleted — a data loss bug. The leftover temp file is harmless and
will be cleaned up on the next write or restart; the committed image
must not be rolled back for a cleanup failure.
All copy buttons silently failed when the app was served over plain HTTP on a LAN IP, because navigator.clipboard.writeText rejects in a non-secure context and the previous code neither awaited the promise nor handled its rejection. Surface a boolean return value from copyToClipboard and fall back to execCommand(copy) with a hidden textarea so copying works regardless of context security.
Extract the duplicated inline CopyButton implementations from the docs, accounts, and client-keys pages into a single shared component that handles the icon toggle, toast notifications, and fallback wiring. Client keys still fetch the secret before copying via the existing mutation, but now surface copy failures through its error handler.
Add the common.copyFailed translation key for both locales.
navigator.clipboard API requires a secure context (HTTPS or localhost).
When accessing via LAN IP (e.g. http://192.168.x.x), navigator.clipboard
is undefined, causing "Cannot read properties of undefined (reading
'writeText')" on every copy action.
Add a copyToClipboard() helper that uses navigator.clipboard when
available and falls back to document.execCommand('copy') otherwise.
Replace all 4 direct navigator.clipboard.writeText calls.
Fixes#591
Upstream already fixed Bug 3 (model sync for Web accounts) by
refactoring syncAllAccounts to iterate both ProviderBuild and
ProviderWeb. Drop our Web-specific sync code in favor of upstream's
generic implementation.
Remaining fixes (Bug 1 & 2):
- quota.go: basic tier re-probe + auto mode secondary detection
- account/service.go: real tier detection instead of hardcoded basic
The grok.com frontend's fetch interceptor generates x-statsig-id by
running a Statsig SDK evaluation per request. When that evaluation
fails (headless, first paint, etc.), it falls back to:
btoa("x1:" + error.toString())
The old code used the prefix "e:" instead of "x1:", which Grok's
anti-bot now detects and rejects with HTTP 403.
Verified against 3 SSO tokens — all return 200 on app-chat endpoints.
Fixes#562