mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
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:
1 parent
666b7f04da
commit
74efcdc1f6
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user