feat: smart tail protection during compaction (v3.1)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-31 14:33:13 +10:00
co-authored by Claude Sonnet 4.6
parent a0cd296ec7
commit e9046829b5
2 changed files with 90 additions and 1 deletions
+9
View File
@@ -37,6 +37,11 @@
"type": "boolean",
"default": true,
"description": "Write session summaries to memory/sessions/ daily logs"
},
"tailProtectCount": {
"type": "number",
"default": 3,
"description": "Number of recent critical message pairs to protect during compaction"
}
}
},
@@ -64,6 +69,10 @@
"sessionLogging": {
"label": "Session logging",
"help": "Append session summaries to daily markdown logs"
},
"tailProtectCount": {
"label": "Tail protect count",
"help": "Keep N recent user/assistant pairs visible after compaction"
}
}
}