Skip to content

fix: refresh knowledge items and don't show processing items on filtered files#1265

Merged
lucaseduoli merged 5 commits into
release-0.4.1from
fix/knowledge_bugs
Mar 26, 2026
Merged

fix: refresh knowledge items and don't show processing items on filtered files#1265
lucaseduoli merged 5 commits into
release-0.4.1from
fix/knowledge_bugs

Conversation

@lucaseduoli
Copy link
Copy Markdown
Collaborator

This pull request improves the accuracy and responsiveness of the knowledge table in the search page, especially when handling file statuses and active filters. The changes ensure that the frontend reflects the backend's authoritative file status, avoids showing irrelevant task files when filters are applied, and keeps the UI updated as files are processed or removed.

Knowledge Table Row Handling:

  • The buildKnowledgeTableRows function now accepts a hasActiveFilter parameter and, when a filter is active, only returns backend search results to prevent displaying task-only files that do not match the filter. [1] [2]
  • Merging of file metadata has been improved so that the backend's status always takes precedence over the task file's status, ensuring the UI reflects the true ingestion state of each file.

Search Page Behavior:

  • The search query now auto-refetches every 5 seconds to keep results up to date, and the loading state is more accurately tracked using isSearchLoading. [1] [2]
  • The buildKnowledgeTableRows function is now called with the new hasActiveFilter parameter to support correct filtering behavior.

Task File State Synchronization:

  • In the task context, when files disappear from a task (e.g., after being processed), their status is updated from "processing" to "active" and the search results are refreshed, ensuring the UI quickly reflects backend changes.

@lucaseduoli lucaseduoli requested a review from mpawlow March 25, 2026 22:50
@lucaseduoli lucaseduoli self-assigned this Mar 25, 2026
@github-actions github-actions Bot added frontend 🟨 Issues related to the UI/UX bug 🔴 Something isn't working. labels Mar 25, 2026
@lucaseduoli lucaseduoli changed the base branch from release-0.4.0 to release-0.4.1 March 26, 2026 00:08
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Mar 26, 2026
Copy link
Copy Markdown
Collaborator

@Wallgau Wallgau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions Bot added the lgtm label Mar 26, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Mar 26, 2026
@github-actions github-actions Bot added bug 🔴 Something isn't working. and removed bug 🔴 Something isn't working. labels Mar 26, 2026
@lucaseduoli lucaseduoli merged commit f53e0c7 into release-0.4.1 Mar 26, 2026
6 checks passed
@github-actions github-actions Bot deleted the fix/knowledge_bugs branch March 26, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🔴 Something isn't working. frontend 🟨 Issues related to the UI/UX lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants