Skip to content

bug(platform): Settings › Usage says "No storage limit applies to you" when the read fails; Sandboxes Try again does nothing #4832

Closed

Description

@yannickmonney

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's refetch) 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 acd5dbd10 all fail.

Severity and owner

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    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. main df7cd70f7, paths under services/platform/app/features/settings/sandboxes/.

    • device-command.ts:30-38 pins the install to the server's release (VERSION=<serverVersion>) "so the CLI and the server speak the same version", but only when isReleaseVersion(serverVersion) holds.
    • sandbox-devices.tsx:292 passes serverVersion={view?.serverVersion ?? 'dev'}. When the devices view fails to load, 'dev' turns the pin off.
    • Add device stays enabled: it is only disabled for hub === 'not_configured' (:255-262).
    • Effect: after a failed or pending read, the dialog's one-line command (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=. On df7cd70f7 it does.

    This is static reading, verified at the cited lines. I didn't run it.

  2. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum 2 (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): Sandboxes also raises an error toast for work nobody asked for. main df7cd70f7, services/platform/app/features/settings/sandboxes/sandboxes-settings.tsx.

    • :104-112: every time a manager opens Sandboxes, a background reconcileOrgSessions runs (if (canManage) reconcileMutate(…)). Unlike the page's other actions (destroySandbox, setSandboxPinned, :95-102, both errorToast: false), it keeps useBackendAction's default error toast (app/hooks/use-backend-action.ts:82-90).
    • So when the reconcile fails, for example while the sandbox infrastructure is down, each visit pops a destructive toast about an action the admin never took, on top of whatever the page itself shows.

    Expected: errorToast: false for 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.

  3. added
    agent-ready
    on Oct 29, 2026
  4. added a commit that references this issue on Oct 30, 2026
    4421bfd
  5. added a commit that references this issue on Oct 30, 2026
    607fa8a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions