feat: validate and persist openInAppId updates from settings

This commit is contained in:
Bohdan Triapitsyn
2026-02-08 15:11:20 +02:00
parent b4f4ee58e5
commit 148b55f66b
5 changed files with 47 additions and 24 deletions
+6
View File
@@ -1094,6 +1094,12 @@ const sanitizeSettingsUpdate = (payload) => {
if (typeof candidate.filesViewShowGitignored === 'boolean') {
result.filesViewShowGitignored = candidate.filesViewShowGitignored;
}
if (typeof candidate.openInAppId === 'string') {
const trimmed = candidate.openInAppId.trim();
if (trimmed.length > 0) {
result.openInAppId = trimmed;
}
}
// Memory limits for message viewport management
if (typeof candidate.memoryLimitHistorical === 'number' && Number.isFinite(candidate.memoryLimitHistorical)) {