Repository navigation
v0.6.1 - 开机自启与稳定性增强
v0.6.1 - 开机自启与稳定性增强
中文
亮点
开机自启(Windows)
- 新增设置项
开机自启(ui.launch_at_login),支持在 Windows 登录后自动启动 SonicInput。 - 配置迁移支持
ui.auto_start -> ui.launch_at_login,升级后自动映射并清理旧字段。 - 设置应用流程与系统开机自启同步纳入事务,失败时可回滚,减少配置与系统状态不一致。
I18N 完整性
- 补齐开机自启相关 UI 文案双语:
Auto Start:、Launch at Windows login。 - 更新中文 QM 资源,修复新设置项仅英文显示的问题。
稳定性与安全性
- 配置读取与默认值回退改为深拷贝,避免嵌套配置共享引用带来的副作用。
- 历史记录排序查询改为白名单映射,收紧动态 SQL 拼接风险。
- 日志系统增强配置校验、非法类别兜底与按天清理过期日志。
工程与 CI
- CI 新增 Windows 核心回归测试(
not gui and not gpu and not e2e)。 - Bandit 安全扫描阈值收紧为
-ll -ii,并继续输出 JSON 报告。 - 补充核心回归测试:配置完整性、DI 清理、历史排序安全、日志 hygiene、流式任务处理。
升级步骤
从 v0.6.0 升级
- 下载
SonicInput-v0.6.1-win64.exe。 - 关闭旧版本并替换可执行文件。
- 启动后进入“设置 -> 应用”,确认“开机自启”状态(旧
ui.auto_start会自动迁移)。 - 配置与历史记录保持不变。
说明
- 开机自启仅在 Windows 生效(当前用户级注册,不要求管理员权限)。
- 若使用离线模型,继续保持 exe 与
models/同目录。
系统要求
最低: Windows 10 64-bit,4GB RAM,500MB 磁盘
推荐: Windows 11 64-bit,8GB RAM,1GB 磁盘(离线包额外约 2GB 解压空间)
支持
- 配置:
%AppData%/SonicInput/config.json - 日志:
%AppData%/SonicInput/logs/app.log - Issues:https://github.com/Oxidane-bot/SonicInput/issues
English
Highlights
Launch at login (Windows)
- Added a
Launch at Windows loginsetting (ui.launch_at_login) for auto-start after Windows sign-in. - Added config migration from legacy
ui.auto_starttoui.launch_at_login. - Startup-registration sync is now part of settings transaction flow with rollback on failures.
I18N Completeness
- Added bilingual UI strings for startup controls:
Auto Start:andLaunch at Windows login. - Updated Chinese QM resources so the new setting no longer appears English-only.
Stability & Security
- Config read/default fallback now uses deep copies to avoid nested shared-reference side effects.
- History ordering query now uses whitelist-based SQL mapping to reduce dynamic query risks.
- Logging hardening includes config validation, unknown-category fallback, and retention cleanup.
Engineering & CI
- Added Windows core regression tests in CI (
not gui and not gpu and not e2e). - Tightened Bandit thresholds to
-ll -iiwhile keeping JSON artifact output. - Added core tests for config integrity, DI cleanup, order-by safety, logging hygiene, and streaming processing.
Upgrade Steps
From v0.6.0
- Download
SonicInput-v0.6.1-win64.exe. - Close the old build and replace the executable.
- Open
Settings -> Applicationand verifyLaunch at Windows loginstate (legacyui.auto_startis migrated automatically). - Config and history are preserved.
Notes
- Launch-at-login is Windows-only (per-user registration; no admin required).
- For offline usage, keep the exe and
models/folder together.
System Requirements
Minimum: Windows 10 64-bit, 4GB RAM, 500MB disk
Recommended: Windows 11 64-bit, 8GB RAM, 1GB disk (plus ~2GB to unpack offline bundle)
Support
- Config:
%AppData%/SonicInput/config.json - Logs:
%AppData%/SonicInput/logs/app.log - Issues: https://github.com/Oxidane-bot/SonicInput/issues
核心改进: v0.6.1 补全开机自启设置的系统联动与双语覆盖,并强化配置、日志与核心回归测试。
Core Improvements: v0.6.1 completes launch-at-login integration and i18n coverage while hardening config, logging, and core regression testing.