Skip to content

bug(platform): Sandbox quota settings hide a failed allocation read as unavailable usage #3877

Closed

Description

@yannickmonney

Bug: Sandbox quota settings hide a failed allocation read as unavailable usage

  • Classification: P2 confirmed product defect (Settings / Sandboxes)
  • Source SHA: 9ea5972
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/sandbox-quota-read-error-probe.log
  • Scope: isolated local jsdom/Vitest component probe; no production network or writes.

Reproduction

Render SandboxQuotaEditor while sandbox/session_queries_public:getSandboxQuotaUsage settles with data: undefined, isLoading: false, and a 503 error, with deployment capacity otherwise available. The actual editor shows Allocation data unavailable under all three fields, disables the fieldset, and renders no error alert or Retry control. The probe passed one test against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

The editor computes savedConfig from usage.data and intentionally leaves it undefined when rows are missing, but it never consumes usage.isError, usage.error, or a retry function. The form consequently looks like a stable unavailable-allocation state rather than a failed request, and the grouped Save editor is not registered. Administrators cannot tell whether the quota configuration is absent, temporarily unreadable, or recoverable; a transient backend outage removes the editable controls with no recovery path.

Expected behavior is to distinguish a successful incomplete/absent usage response from a failed read, show the query error with Retry, and keep the editor disabled until the saved configuration can be fetched. This is distinct from deployment-capacity unavailability, which is surfaced separately by the existing capacity guard.

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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions