Checkpoint: File edits

Automatic checkpoint created by Claude Code
- Branch: rebrand/ruvflow-umbrella
- Timestamp: 2026-02-10T16:50:09Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rUvandClaude Opus 4.5 committed 2026-02-10 16:50:09 +00:00
1 parent 666b7f04da
commit 74efcdc1f6
1 file changed
+7 -1
+7 -1
View File
@@ -1187,11 +1187,17 @@ async function doPreCompact() {
const archiveResult = await storeChunks(backend, chunks, sessionId, trigger || 'auto');
// Auto-optimize: prune stale entries + sync to RuVector if available
const optimizeResult = await autoOptimize(backend, type);
const total = await backend.count(NAMESPACE);
await backend.shutdown();
const optimizeMsg = optimizeResult.pruned > 0 || optimizeResult.synced > 0
? ` Optimized: ${optimizeResult.pruned} pruned, ${optimizeResult.synced} synced to RuVector.`
: '';
process.stderr.write(
`[ContextPersistence] Archived ${archiveResult.stored} turns (${archiveResult.deduped} deduped) via ${type}. Total: ${total}\n`
`[ContextPersistence] Archived ${archiveResult.stored} turns (${archiveResult.deduped} deduped) via ${type}. Total: ${total}.${optimizeMsg}\n`
);
// Exit code 0: stdout is appended as custom compact instructions