Skip to content

v0.6.1 - 开机自启与稳定性增强

Choose a tag to compare

@Oxidane-bot Oxidane-bot released this 12 Feb 12:27
· 67 commits to master since this release

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 升级

  1. 下载 SonicInput-v0.6.1-win64.exe。
  2. 关闭旧版本并替换可执行文件。
  3. 启动后进入“设置 -> 应用”,确认“开机自启”状态(旧 ui.auto_start 会自动迁移)。
  4. 配置与历史记录保持不变。

说明

  • 开机自启仅在 Windows 生效(当前用户级注册,不要求管理员权限)。
  • 若使用离线模型,继续保持 exe 与 models/ 同目录。

系统要求

最低: Windows 10 64-bit,4GB RAM,500MB 磁盘
推荐: Windows 11 64-bit,8GB RAM,1GB 磁盘(离线包额外约 2GB 解压空间)

支持


English

Highlights

Launch at login (Windows)

  • Added a Launch at Windows login setting (ui.launch_at_login) for auto-start after Windows sign-in.
  • Added config migration from legacy ui.auto_start to ui.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: and Launch 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 -ii while 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

  1. Download SonicInput-v0.6.1-win64.exe.
  2. Close the old build and replace the executable.
  3. Open Settings -> Application and verify Launch at Windows login state (legacy ui.auto_start is migrated automatically).
  4. 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


核心改进: v0.6.1 补全开机自启设置的系统联动与双语覆盖,并强化配置、日志与核心回归测试。
Core Improvements: v0.6.1 completes launch-at-login integration and i18n coverage while hardening config, logging, and core regression testing.