Skip to content

bug(platform): Project breadcrumb hides a failed project-list read and loses switching #3883

Closed

Description

@yannickmonney

Bug: Project breadcrumb hides a failed project-list read and loses switching

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

Reproduction

Render ProjectBreadcrumbSwitcher for a project while projects/queries:listProjects settles with data: undefined, isLoading: false, and a 503 error. The actual breadcrumb falls back to a plain Getting started name: the switch-project button is absent, with no alert or Retry action. The probe passed one test against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

useProjects returns projects: data ?? [] and drops the query error. ProjectBreadcrumbSwitcher interprets the empty array as the legitimate no-siblings case, so users lose the in-place project switcher on every project detail tab during a transient list outage. They must navigate back to the Projects page or hand-edit the URL, and there is no indication that the list read failed.

Expected behavior is to keep the breadcrumb in an unavailable state with a retry/reload affordance or explicit error while preserving the current project name. A successful empty list can continue to render a plain name; the failed list must not be indistinguishable from it.

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