Skip to content

fix(cleanup): remove phantom dirs from _resolve_cache_directories (#5082)#5795

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-5082
Apr 24, 2026
Merged

fix(cleanup): remove phantom dirs from _resolve_cache_directories (#5082)#5795
mrveiss merged 1 commit intoDev_new_guifrom
issue-5082

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 24, 2026

Summary

  • Remove embeddings_cache, chunks_temp, exports from _resolve_cache_directories() — all three have zero write sites in the codebase
  • exports has a write site in documents.py but it has zero call sites (dead code) so the dir is never created
  • DATA_DIR/cache (rglob) already covers data/cache/claude_responses/ from graceful_degradation.py
  • TEMP_DIR already covered
  • Updated docstring names the specific modules that write to each covered directory

Test Plan

  • pytest autobot-backend/tasks/ -q → 17 passed, 0 failed
  • python3 -m py_compile knowledge_tasks.py → syntax ok

Closes #5082

🤖 Generated with Claude Code

)

embeddings_cache and chunks_temp have zero write sites in the codebase.
exports is written only by KnowledgeDocuments.export_all_data(), which
has no call sites and is dead code. Remove all three to eliminate false
signals; DATA_DIR/cache already covers real cache sinks via rglob.
Update docstring to document which modules write to each covered directory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit 60e60f2 into Dev_new_gui Apr 24, 2026
1 of 4 checks passed
@mrveiss mrveiss deleted the issue-5082 branch April 24, 2026 19:43
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.

1 participant