fix(config-backup): ignore a Docker case's conversation id, list every ignored key, correct the retention and restart docs

This commit is contained in:
Devvyn committed 2026-10-20 18:01:43 +08:00
1 parent a0b9570457
commit 71fcefbaf2
8 files changed
+25 -13

No files matched your search

+3 -1
View File
@@ -205,10 +205,12 @@ const sha256 = (data: Buffer | string): string => createHash('sha256').update(da
const VOLATILE_KEYS: Readonly<Record<string, readonly string[]>> = {
'custom-model-hosts.json': ['lastDiscoveredAt'],
// Rewritten by activity, not by anything the user set: a Basic-auth login (at most once a minute
// per user), a session started in another case, and every captured prompt.
// per user), a session started in another case, every captured prompt, and a Docker case's
// conversation id after a /clear.
'users.json': ['lastLoginAt'],
'settings.json': ['lastUsedCase'],
'intents.json': ['recentPrompts', 'updatedAt'],
'docker-cases.json': ['lastClaudeSessionId'],
};
function withoutKeys(value: unknown, drop: ReadonlySet<string>): unknown {