Skip to content

bug(platform): failed Inbox availability reads show setup and hide the Inbox #3896

Closed

Description

@yannickmonney

P2 · Locally reproduced at 9ea59724df24d62729a9360f3902d964dab39b3e.

A settled failure of the reads used to discover an organization's Inbox is treated as proof that the Inbox has not been installed. The route replaces the Inbox with Set up your Inbox, Install an email automation, and Browse automations, with no error or retry. This misdirects an operator during an outage and prevents the conversation route from mounting.

Reproduce

  1. Use an organization with a deployed email automation exposing the inbox view and no API-only source. Open the Inbox from a cold query cache.
  2. Make automations/queries:listAutomations fail after loading settles while conversations/queries:apiSources successfully returns [].
  3. Inspect the Inbox route. It shows the installation empty state, not a failed availability read, and the conversation outlet is absent.
  4. The equivalent case occurs for an API-only Inbox when apiSources fails and the automation list successfully returns [].

Expected: distinguish failed discovery from a successful negative result, retain a useful Inbox shell, and provide recovery. Actual: the query failure is discarded and the route tells users to install an automation.

Root cause

services/platform/app/features/conversations/hooks/use-inbox-availability.ts destructures only data and isLoading from both reads. An error with undefined data and isLoading=false becomes {isLoading:false, hasInbox:false}. services/platform/app/routes/dashboard/$id/conversations.tsx uses that result to render the setup empty state and omit <Outlet />. The hook is also used to determine navigation visibility; the replay assertion in this report is specifically the route behavior.

Local evidence and controls

A retained Vitest/jsdom replay renders the actual Conversations route and actual useInboxAvailability; only useBackendQuery is controlled at its result boundary. Two controls open the route for a deployed email pack and for a nonempty API source. Two failure cases render Set up your Inbox, omit the outlet, and have no Retry button. 4 tests passed. Both failing sources are grouped as one defect because they share the discovery-state contract.

Probe: /Users/yannick/.codex/notes/tale-1000-additional/inbox-recovery-next/availability.probe.test.tsx; log: availability.replay.log in the same directory. Run through the platform vitest.ui.config.ts after placing the probe beside the route (relative route import ./conversations). No backend, production data, or provider traffic was used.

Dedup: checked the audit ledger, baseline and current Inbox/availability issues. #2641 concerns preserving compose intent when an Inbox actually is absent; #3709 concerns the conversation list read after availability succeeds. Neither covers failed discovery being misclassified as an uninstalled Inbox.

Repair the hook's state contract and its consumers together; add success-empty, failure, retry and healthy controls.

Activity

  1. yannickmonney commented on Sep 29, 2026

    @yannickmonney
    ContributorAuthor

    Current-main revalidation — b7f8ca0

    Source: b7f8ca02ec249c004652b1ee52e112d9cdfa53ea. The actual availability hook/route still presents setup and hides the Inbox after a failed availability read. Four current-source cases pass, with an explicit author-role fixture for the newly role-gated install link. Backend reads and router shell are controlled; this is a component replay, not a production or full-stack test.

    Evidence: /Users/yannick/.codex/notes/tale-1000-additional/inbox-functional-next-2/current-main-recovery.log. Installed external dependencies are reused; app/UI/shared source points at the isolated current tree. Browser runs retain the runner/browser version warning. These revalidations add no findings and include no production testing.

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