v1.0.2 - Bugfix
简体中文 (Simplified Chinese)
⚡ 改进与优化
- 语言实时同步:实现了 Dashboard 与 HUD 窗口间的实时语言切换同步,修改设置后无需重启即可在全局生效。
- 模型加载兼容性:在加载 Mortal 和 DQN 模型时引入非严格模式(non-strict mode),能够优雅处理权重文件及其配置中缺失或多余的关键字段。
🛠️ 维护与重构
- 设置面板功能重构:使用
useReducer模式重构了SettingsProvider。通过lastUpdatedBy标记精准区分数据来源,彻底解决了多窗口同步中的死循环与状态冲突问题。 - 信号处理机制升级:重构了后端通信流程,采用 共享消息队列 (Shared Message Queue) 处理系统信号(如关机、状态变更),显著提升了多进程协作的稳定性。
- 工程化增强:在 Electron 构建配置中启用了更严格的 TypeScript 类型检查规则,并修复了前端与桌面端模块之间的 Prettier 格式冲突。
🧪 测试与质量
- 测试套件修复:
- 修复了
test_mortal_engine中推理引擎的 Mock 错误,使其支持最新的模型加载流程。 - 更新了
test_shutdown_api集成测试,使其与基于消息队列的关机机制相匹配。
- 修复了
English
⚡ Improvements & Refinements
- Real-time Language Sync: Implemented instant language synchronization between Dashboard and HUD windows, taking effect globally without restarts.
- Model Loading Compatibility: Introduced non-strict mode for loading Mortal and DQN models, allowing the engine to gracefully handle missing or unexpected keys in weight files.
🛠️ Maintenance & Refactoring
- Configuration Panel Refactor: Rebuilt
SettingsProviderusing theuseReducerpattern. IntroducedlastUpdatedByto distinguish update sources, resolving cross-window sync loops and state conflicts. - Signal Handling Upgrade: Refactored backend communication to use a Shared Message Queue for system signals (e.g., shutdown, state changes), improving process coordination stability.
- Engineering Hardening: Enforced stricter TypeScript rules in Electron build configurations and resolved Prettier formatting conflicts across the codebase.
🧪 Testing & Quality
- Test Suite Fixes:
- Fixed Mock logic in
test_mortal_engineto support the updated model inference and loading flow. - Updated
test_shutdown_apiintegration tests to align with the new message-queue-based shutdown mechanism.
- Fixed Mock logic in
Full Changelog: v1.0.1...v1.0.2