Skip to content

bug(platform): Documents hub turns a failed folder-list read into “No documents yet” #3880

Closed

Description

@yannickmonney

Bug: Documents hub turns a failed folder-list read into “No documents yet”

  • Classification: P2 confirmed product defect (Documents navigation)
  • Source SHA: 9ea5972
  • Evidence: /Users/yannick/.codex/notes/tale-1000-additional/projects-documents-next/documents-folder-read-error.md
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/projects-documents-next/documents-folder-read-error.probe.test.tsx
  • Scope: isolated local replay; no production network or writes.

Reproduction

Open the root Documents hub with a successful empty root-document response, an approximate organization count of 1 for a nested document, and folders/queries:listFolders settling with a 503. The actual DocumentsTable maps the undefined folder data to no rows and renders the ordinary No documents yet state. There is no folder row, alert, error text, or Retry control. The control/failure replay passed two tests against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e; the failure snapshot records approxDocumentCount: 1, no folder data, the empty state, and no retry.

Root cause and impact

services/platform/app/features/documents/components/documents-table.tsx reads only folder data and maps undefined to an empty folderRows array. At the hub root the document query intentionally returns only unfiled documents, so an organization whose documents live in nested folders depends on the folder list to discover them. A failed folder read therefore makes existing nested content appear absent while the approximate count contradicts the empty copy.

Expected behavior is a folder-list error state with Retry or reload guidance, preserving a distinct unavailable state from a genuinely empty organization. This is separate from the project Files folder query (#3736), Documents breadcrumb metadata (#3863), and cloud-import app-status (#3864).

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