Skip to content

bug(platform): Cloud import connect treats a failed app-status read as not connected #3864

Closed

Description

@yannickmonney

Bug: Cloud import connect dialog treats app-status read failure as not connected

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

Reproduction

Open CloudImportConnectDialog for Google Drive while cloud_import/queries:getOauthAppStatus settles with data: undefined, isLoading: false, and a 503 error. The actual component renders the ordinary not connected description and a normal Connect OAuth button. It renders no alert, no Retry action, and no “app not configured” explanation. The replay probe passed one test against the real dialog at source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

In services/platform/app/features/documents/components/cloud-import-connect-dialog.tsx, appMissing is computed as appStatus.data !== undefined && !appStatus.data.configured. A failed read leaves data undefined, so the dialog takes the same branch as an available OAuth app and invites the user to start reauthorization. The only recovery is to click a route that may fail again because the app-status request itself was never resolved; the user is not told that the configuration check failed. This is especially confusing for administrators, who would otherwise receive the explicit connector-settings path when the app is known to be missing.

Expected behavior is to surface the app-status read error with a retry that re-runs the query, and to withhold OAuth navigation until the configuration state is known. This is distinct from a successful configured: false response and from OAuth token/consent failures after a connection is already known.

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