You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): Documents breadcrumb hides a failed folder read without recovery #3863
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.
Activity