Repository navigation
fix(settings): report unreadable settings and the backup path - #2280
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 21, 2026 12:13
15 of 18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
Closes #1943
PR 类型 / Type
改动说明 / What changes
背景 / Why
设置文件损坏时,应用使用默认设置。#2051 已保护原文件,但用户看不到启动回退和后续备份位置。
改动 / Changes
不在本 PR 范围内 / Out of scope
不修改选择性保留不认识的设置项的既有行为。
类型专属:fix
复现与根因
settings.json后启动,再切换主题触发保存。原来没有启动说明和备份位置;现在能看到两条提示,并找回原始字节。5bbd47c88)已在首次保存时保留坏文件。存储层原本只返回写入错误,没有把备份结果交给工作台。检查项
TestUnreadableSettingsWarnAtStartupAndIdentifyTheBackupOnSave在修复前因缺少启动通知失败;修复后通过。范围检查 / Scope checks
功能矩阵 / Feature matrix
application-settings,如实记录平台验证状态;矩阵总检查与改动门禁通过。插件归属 / Plugin ownership
UI 验证 / UI evidence
desktop-go.sh test -tags vivahead -run TestVisualSettingsRecoveryNotifications ./internal/workbench,92ac32b6a,1440×900,英文浅色与中文深色,覆盖启动和首次保存。统一日志系统 / Structured logging
界面文案 / i18n
逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A:修改恢复反馈,未新增设置项或页面。
插件契约 / Plugin contract
N/A:未修改插件接口。
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
未能执行的检查和原因: Windows 虚拟机缺少开发工具链。早期全量
vivahead测试里的键盘选择测试超时,随后在基线及修复分支单独重跑通过。全量与其他构建并行时观察到非本改动路径的子进程超时,另单独复测。提交前确认 / Final checks
origin/main;目标main。