| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When compaction prunes old tool outputs, only the `time.compacted` timestamp was being set — the actual output string and attachments array remained in storage indefinitely. This caused unbounded storage growth (observed 774 MB database in 3 weeks, with 81% being part data). Changes: - Clear output and attachments when prune marks parts as compacted - Add prune() calls before both compaction triggers in prompt.ts to reduce context before LLM summarization - Add tests for prune clearing behavior and config respect Fixes part of anomalyco#16101
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Sorry, something went wrong.
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Sorry, something went wrong.
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found related PRs that address similar issues: Potentially Related PRs:
Note: PR #7049 appears to be addressing the same core problem (clearing tool output and attachments to prevent memory/storage leaks). You should verify if this is a duplicate or if PR #16162 is an update/fix to the previous approach. |
Sorry, something went wrong.
|
Superseded by #16175 which includes this fix plus the full MVP (CLI commands, VACUUM support, cross-project cascade fix). |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Problem
When compaction prunes old tool outputs, only the time.compacted timestamp was being set — the actual output string and attachments array remained in storage indefinitely. This caused unbounded storage growth.
Evidence:
Solution
This PR clears the actual data when marking parts as compacted:
compaction.ts (2 lines):
prompt.ts (2 calls):
Tests (new coverage):
Testing
Fixes part of #16101