Repository navigation
Closed
Labels
Description
Problem
Three settings pages show false or dead content when a read fails, and one formats money without the reader's locale. Paths are under services/platform/app/features/settings/ at main acd5dbd10.
| # | Page | Code | What the user sees |
|---|---|---|---|
| 1 | Settings › Usage, storage | usage/components/usage-settings.tsx:287 keeps only data and isLoading from useUploadUsage. When the read fails, storage is undefined and the else branch (:316-320) renders usage.storage.unlimited |
"No storage limit applies to you.": a false verdict, with no error and no retry. The budget section on the same page handles its own failure |
| 2 | Settings › Sandboxes, sessions and devices tables | sandboxes/sandboxes-settings.tsx:453-466 and sandboxes/sandbox-devices.tsx:271-284 pass error={error} to DataTable but no onRetry. DataTable then hands ErrorDisplayCompact reset={onRetry || (() => {})} (packages/ui/src/components/data-table/data-table.tsx:653-659) |
A failed read shows the error with a Try again button that does nothing |
| 3 | Settings › Sandboxes, Spend column | sandboxes/sandboxes-settings.tsx:39-42: return `$${(cents / 100).toFixed(2)}`; |
Every locale sees "$1234.50", with no grouping and an English decimal point. The shared useFormatNumber cost formatting gives the reader's locale, for example "1.234,50 $" in de |
| 4 | Settings › API › Models, setup snippets | model-endpoints/components/model-endpoints-section.tsx:191: const orgSlug = organization.data?.slug ?? '<org-slug>';. The component reads no organization error; the slug row is hidden (:259) |
After a failed organization read, the copyable snippets carry the literal <org-slug> header value with no error. The MCP tab handles the same read with an alert and Try again (connectors/components/mcp-endpoint-section.tsx) |
Expected
-
(1) Distinguish "no limit" from "couldn't load": show an error with Try again when
isError. -
(2) Pass
onRetry(the query'srefetch) to both tables. -
(3) Format with
useFormatNumber(the cost helper) like the other spend columns. -
(4) Show the MCP tab's error state instead of a placeholder snippet.
-
Regression:
- a usage test where the storage read fails must not render
usage.storage.unlimited; - sandboxes tests where Try again refetches;
- a de-locale Spend cell;
- a models test with a failed organization read.
On
acd5dbd10all fail. - a usage test where the storage read fails must not render
Severity and owner
- Severity: medium for (1): it gives a false policy statement. The rest are low.
- Owner: platform (settings).
- Related: the failed-read class bug(platform): Teams, Notifications and Enterprise SSO settings hide a failed read (endless skeleton, all toggles on, blank form) #4653, bug(platform): WebDAV app passwords stay on their loading skeleton when the list fails to load #4652, bug(platform): Settings › API shows Access denied to a member with an API grant when their access read fails #4767 and bug(platform): automation version compare, Tests panel, Restore and "Saved by" turn a failed read into a false result #4828.
- Found by: Review A (TALE-358), 2026-10-12 08:15 Zurich occurrence, oldest-due UX-CLARITY slice (
settings.usage,settings.sandboxes,api.models). Static reading atacd5dbd10, verified at the cited lines; nothing was run, because Review A's stack is BLOCKED.
Activity
yannickmonney commentedon Oct 12, 2026
Addendum (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): Sandboxes › Devices also hands out an unpinned install command after a failed read.
maindf7cd70f7, paths underservices/platform/app/features/settings/sandboxes/.device-command.ts:30-38pins the install to the server's release (VERSION=<serverVersion>) "so the CLI and the server speak the same version", but only whenisReleaseVersion(serverVersion)holds.sandbox-devices.tsx:292passesserverVersion={view?.serverVersion ?? 'dev'}. When the devices view fails to load,'dev'turns the pin off.hub === 'not_configured'(:255-262).add-device-dialog.tsx:156) installs the newest CLI, not the server's version. The device then connects with a CLI that may not match the server, and nothing tells the admin the pin is missing.Expected: keep Add device disabled, or the dialog in a "can't read the server version" state with Try again, until the view has loaded. Never fall back to
'dev'on a release server.Regression: a devices-section test with a rejected view read. The add-device dialog doesn't offer an install command without
VERSION=. Ondf7cd70f7it does.This is static reading, verified at the cited lines. I didn't run it.
yannickmonney commentedon Oct 12, 2026
Addendum 2 (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): Sandboxes also raises an error toast for work nobody asked for.
maindf7cd70f7,services/platform/app/features/settings/sandboxes/sandboxes-settings.tsx.:104-112: every time a manager opens Sandboxes, a backgroundreconcileOrgSessionsruns (if (canManage) reconcileMutate(…)). Unlike the page's other actions (destroySandbox,setSandboxPinned,:95-102, botherrorToast: false), it keepsuseBackendAction's default error toast (app/hooks/use-backend-action.ts:82-90).Expected:
errorToast: falsefor the background reconcile, with the failure logged or shown once as a quiet status on the page, not as a toast.This is static reading, verified at the cited lines. I didn't run it.
fix(platform): name failed settings reads and localize sandbox spend
fix(platform): name failed settings reads and localize sandbox spend