Skip to content

fix(document-monitor): transition status to missing when file vanishes - #807

Closed
CodeLine9 wants to merge 1 commit into
amd:mainfrom
CodeLine9:clawoss/fix/document-monitor-missing-status
Closed

CodeLine9 wants to merge 1 commit into
amd:mainfrom
CodeLine9:clawoss/fix/document-monitor-missing-status

Conversation

@CodeLine9

Copy link
Copy Markdown
Contributor

Bug

_check_documents logs a warning when an indexed file disappears but never updates the DB row's indexing_status. The API continues reporting the doc as complete, and downstream chat requests use stale RAG-cached chunks.

Fix

Call self._db.update_document_status(doc_id, "missing") after the warning log, inside the existing status != "missing" guard.

Closes #791

@CodeLine9

Copy link
Copy Markdown
Contributor Author

Closing — won't have bandwidth to address feedback on this. Apologies for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DocumentMonitor never transitions status to 'missing' when the underlying file vanishes

1 participant