Skip to content

bug(platform): project Files says "Indexing queued" when the server refused Index now or Retry indexing #4837

Closed

Description

@yannickmonney

Problem

In a project's Files tab, Index now and Retry indexing always toast success, even when the server refused. main acd5dbd10:

  • services/platform/app/features/projects/components/project-files-tab.tsx:925-938 awaits retryRagIndexing({ documentId }) and then shows "Indexing queued" (files.indexingStartQueued) or "Indexing retry queued" without reading the result. The catch handles only a thrown error (:939-949).
  • The answer it ignores: the same mutation answers a refusal with { success: false, … } and status 200. Knowledge › Documents checks it: features/documents/components/document-row-actions.tsx:187-196 shows rag.toast.retryFailed when result.success is false.
  • When the server refuses: per the backend handler (backend/domains/documents/service.ts, retryRagIndexing), after its per-minute rate limit, or for a row with no stored file.

What the user sees: "Indexing queued" while nothing was queued. They then wait for an index that never comes, with no hint to try later or re-upload the file.

Expected

  • Read result.success as Knowledge › Documents does. On false, show the failure toast with the server's reason, mapped to catalog text where a code exists.
  • Regression: a Files-tab test where retryRagIndexing resolves { success: false } and must not show "Indexing queued". On acd5dbd10 it does.

Severity and owner

  • Severity: medium. It is a false success on the action meant to fix a file that isn't searchable.
  • Owner: platform (projects, files).
  • Found by: Review A (TALE-358), 2026-10-12 08:15 Zurich occurrence, oldest-due projects.files slice. Static reading at acd5dbd10, verified against the Knowledge Hub caller; I didn't run it.

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): two create-folder problems. main df7cd70f7, paths under services/platform/app/features/projects/components/ unless noted.

    1. The create-folder deep link ignores edit rights.

    • project-files-tab.tsx:422-434: ?createFolder=1 opens the create-folder dialog (setCreateFolderParent({})) for anyone who follows the link. The tab's own create-folder controls only render for canEdit (:1087, :1099).
    • A reader, or anyone on an archived project, gets a dialog that can only fail. Submitting raises "Couldn't create folder" with the server's refusal as the description (project-create-folder-dialog.tsx:79-86, failureDetail(error)), not a sentence saying they can't add folders here.
    • Expected: honour canEdit, and the archived state, before opening the dialog from the link. Otherwise drop the parameter, or explain why no folder can be created.
    • Regression: a files-tab test as a reader with openCreateFolder. No dialog opens. On df7cd70f7 it opens.

    2. Folder-name rules arrive in English, after the round trip.

    • The dialog's schema only requires a non-empty name (project-create-folder-dialog.tsx:46-50).
    • A name like "2024/25" goes to the server, which refuses it with FOLDER_NAME_INVALID and the English sentence "Folder name must not contain a path separator ("/" or "")" (backend/domains/folders/paths.ts:28-45). That sentence becomes the toast description under the localized title, in every locale.
    • The same rules exist as a shared helper (lib/shared/utils/folder-name.ts).
    • Expected: validate with the shared helper in the dialog and show localized, field-level messages for each reason (blank, too long, separator, control character, dot).

    This is static reading, verified at the cited lines. I didn't run it.

  2. added
    agent-ready
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    4a2b600
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

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions