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 {
+1 -1
View File
@@ -3269,7 +3269,7 @@
<div class="set-row has-field" data-search="config backup retention keep days age">
<div class="set-row-text">
<span class="set-row-label">Delete backups older than (days)</span>
<span class="set-row-desc">0 keeps backups until the count above pushes them out.</span>
<span class="set-row-desc">A backup is removed once a newer one has existed this many days. 0 keeps backups until the count above pushes them out.</span>
</div>
<input type="number" id="appSettingsConfigBackupKeepDays" class="set-input" min="0" max="3650" step="1" placeholder="30">
</div>