Skip to content

fix: clear injection_log rows when clearing cache#295

Merged
claude[bot] merged 1 commit intomainfrom
claude/issue-293-20260228-2012
Feb 28, 2026
Merged

fix: clear injection_log rows when clearing cache#295
claude[bot] merged 1 commit intomainfrom
claude/issue-293-20260228-2012

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Feb 28, 2026

Summary

Fixes #293.

ClearAll and ClearProject only deleted rows from graph_cache, leaving injection_log intact. After running uncompact cache clear, commands that read from injection_log (e.g. uncompact stats and uncompact logs) continued showing stale data.

Both functions now also delete matching rows from injection_log:

  • ClearAll deletes all rows from both graph_cache and injection_log
  • ClearProject deletes rows for the given project_hash from both tables

Generated with Claude Code

ClearAll and ClearProject only deleted rows from graph_cache, leaving
injection_log intact. This caused stale stats and logs after running
'uncompact cache clear'. Both functions now also delete matching rows
from injection_log.

Fixes #293

Co-Authored-By: Grey Newell <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>
@claude claude bot merged commit d392a3f into main Feb 28, 2026
1 check passed
@claude claude bot deleted the claude/issue-293-20260228-2012 branch February 28, 2026 20:24
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.

bug: uncompact cache clear leaves injection_log rows intact, causing stale stats/logs output

0 participants