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]: File Manager bulk delete includes files hidden by a search on the same page #22757
I confirm that I am using English to submit this report (Language Policy).
Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
Please do not modify this template :) and fill in all the required fields.
RAGFlow workspace code commit ID
Reproduced on 2c1adcfd335fde0434a8c2ac5c06d20d883302dc. The relevant Files page and selection code is identical on upstream 1f461db66aabee460877beea0cbb5d56a74a48a6.
RAGFlow image version
N/A. Reproduced in a frontend component test using mocked file services.
Other environment information
Windows, Node.js 24.19.0, Jest with jsdom.
Actual behavior
In File Manager, searching on page one can hide a checked file while leaving it in the bulk selection. After I selected the one visible result, the confirmation counted two files. Confirming in the component test called the mocked delete service with { ids: ['file-alpha', 'file-beta'] } even though only beta.pdf was visible.
Expected behavior
The confirmation should count one file, and confirming should submit only the ID of beta.pdf.
Steps to reproduce
Open Files in a folder with both alpha.pdf and beta.pdf on page one.
Check alpha.pdf, then enter beta in the search box and wait for the results.
Check beta.pdf and open the bulk Delete dialog. The count already shows the issue. You can cancel here.
The same payload was observed when checking alpha.pdf just after typing, while the previous rows were still displayed during the search debounce.
Additional information
Changing the search on page one leaves the page number and page size unchanged. The Files page watches pagination to clear its selection. With file-ID selection, the shared helper returns all stored keys, and the bulk delete handler forwards those IDs. Files page · Selection helper · Delete handler
Related work covers folder navigation (#21393) and pagination (#19158). This case occurs in a single folder on page one throughout.
Activity