Skip to content

bug(platform): Documents breadcrumb hides a failed folder read without recovery #3863

Closed

Description

@yannickmonney

Bug: Documents breadcrumb hides failed folder context without recovery

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

Reproduction

Render BreadcrumbNavigation for folder-2 while folders/queries:getFolderBreadcrumb settles with data: undefined, isLoading: false, and a 503 error. The actual component renders only the root Documents button. The expected folder segment is absent, no error or alert is rendered, no Retry button exists, and the onNavigate callback is not invoked. The probe passed one test against the component at source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

services/platform/app/features/documents/components/breadcrumb-navigation.tsx destructures only data: breadcrumb and isLoading from useBackendQuery. It derives segments from breadcrumb ?? [], and its effect handles only a settled empty array as “folder not found”. A rejected breadcrumb read therefore follows the same render path as an empty breadcrumb while silently preserving the current folder view. Users lose their location context and have no indication that navigation metadata failed or how to retry it; the root button can also take them away from the folder when they were trying to navigate within Documents.

Expected behavior is a distinct read-error state with an inline error/retry affordance, while preserving the current route until the breadcrumb can be loaded. This is a navigation-metadata failure and is separate from document-list or project-folder read errors.

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