Repository navigation
feat(indexing): Introduce notification for file removal during indexing - #676
Merged
haiphucnguyen merged 3 commits intoAug 27, 2026
Merged
Conversation
haiphucnguyen
commented
Aug 27, 2026
Collaborator
- Implements FileRemovedFromIndexEvent to track file deletions from the index.
- Displays a visual notification in the UI when a watched file is removed.
- Ensures users are aware of changes in the indexed content state.
- Implements FileRemovedFromIndexEvent to track file deletions from the index. - Displays a visual notification in the UI when a watched file is removed. - Ensures users are aware of changes in the indexed content state.
There was a problem hiding this comment.
Pull request overview
Adds a new user-facing notification when the file watcher detects a watched file/directory deletion and removes it from the project index, wiring the event from indexing/watch logic through to the desktop notification UI.
Changes:
- Emit
FileRemovedFromIndexEventon watcher delete events and includeprojectNamein watcher-driven indexing events. - Render the new removal event in the desktop notifications UI (label + icon) and add i18n strings across supported locales.
- Bump
langchain4j-jvectorversion and project version.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| shared/src/main/kotlin/io/askimo/core/rag/watching/FileChangeHandler.kt | Emits removal + indexing lifecycle events from watcher callbacks; refactors reindexFile to return success. |
| shared/src/main/kotlin/io/askimo/core/rag/indexing/LocalFoldersIndexingCoordinator.kt | Passes projectName into FileChangeHandler. |
| shared/src/main/kotlin/io/askimo/core/event/user/IndexingEvent.kt | Introduces FileRemovedFromIndexEvent. |
| desktop-shared/src/main/kotlin/io/askimo/ui/shell/NotificationComponents.kt | Displays the new removal notification (icon + label) and handles it in the internal event stream. |
| desktop-shared/src/main/resources/i18n/messages.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_de.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_es.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_fr.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_ja_JP.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_ko_KR.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_pt_BR.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_vi_VN.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_zh_CN.properties | Adds event.file.removed string. |
| desktop-shared/src/main/resources/i18n/messages_zh_TW.properties | Adds event.file.removed string. |
| gradle/libs.versions.toml | Updates langchain4j-jvector version. |
| gradle.properties | Bumps project version. |
Suppressed comments (1)
shared/src/main/kotlin/io/askimo/core/rag/watching/FileChangeHandler.kt:77
indexedCountis incremented whenreindexFile(file)returnstrue, butreindexFilecurrently returnstrueeven when it intentionally skips indexing (e.g., no extractable/blank content). This will over-reportfilesIndexedinIndexingCompletedEventand the UI (e.g., showing "1 file indexed" when none were indexed).
var indexedCount = 0
filePath.walk()
.filter { it.isRegularFile() && !shouldExcludePath(it) }
.forEach { file ->
if (reindexFile(file)) indexedCount++
}
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
53
to
+63
| if (kind == StandardWatchEventKinds.ENTRY_DELETE) { | ||
| log.debug("Path deleted: {}, removing from index...", filePath.fileName) | ||
| batchIndexer.removeDirectoryFromIndex(filePath) | ||
| batchIndexer.removeFileFromIndex(filePath) | ||
| EventBus.emit( | ||
| FileRemovedFromIndexEvent( | ||
| projectId = projectId, | ||
| projectName = projectName, | ||
| fileName = filePath.fileName.toString(), | ||
| ), | ||
| ) |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
haiphucnguyen
deleted the
feature/show-notification-when-rag-changes-in-watchers
branch
August 27, 2026 18:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.