Skip to content

v0.7.9

Choose a tag to compare

@Chasen-Liao Chasen-Liao released this 10 Jun 14:29

中文

🔒 安全加固

  • 为 AgentSession 增加 JSONL 写入锁机制,防止多请求并发写入导致会话文件损坏。
  • 改进 API 错误处理:统一错误响应格式,避免敏感信息泄露到客户端。
  • 修复 Electron 构建配置中环境变量过滤逻辑,防止服务端环境变量泄漏到渲染进程。

📋 Electron 日志增强

  • 日志格式新增 scope 字段,支持区分主进程、渲染进程和子进程日志来源,便于多源日志排查。

⚡ 大文件查看性能优化

  • FileViewer 新增虚拟化渲染层:仅渲染可视区域内的代码行,大幅降低大文件(>5000 行)打开时的内存占用和卡顿。
  • 大文件自动切换为纯文本模式,保留行号显示,避免语法高亮导致界面无响应。

🔄 自动更新支持

  • electron-updater 从开发依赖移至运行时依赖,确保生产构建中包含自动更新功能。
  • 精简 electron-builder 打包资源,移除冗余文件减小安装包体积。

🧪 测试体系完善

  • 统一所有测试入口为 npm test 单一命令,同步更新 CI 配置。
  • 新增 log-formatfile-viewer-virtualizationrpc-manager 等模块的测试覆盖。

🧹 代码清理

  • 删除过时的架构评审文档、实施计划、设计规格书等约 10,000 行历史文档。
  • 清理未使用的 Open Design skill 脚手架和临时图片资源。
  • 更新 .gitignore 忽略开发时产生的临时日志和 /tmp/ 目录。

English

🔒 Security Hardening

  • Added JSONL write-lock mechanism for AgentSession to prevent concurrent write corruption of session files.
  • Improved API error handling with unified error response format, preventing sensitive information leakage to the client.
  • Fixed Electron build config environment variable filtering to prevent server-side env vars from leaking to the renderer process.

📋 Enhanced Electron Logging

  • Added scope field to log format, enabling differentiation between main process, renderer process, and child process log sources for easier multi-source debugging.

⚡ Large File Viewer Performance

  • Added virtualization layer to FileViewer: only renders code lines within the visible viewport, dramatically reducing memory usage and lag when opening large files (>5000 lines).
  • Large files automatically switch to plain-text mode with line numbers, preventing syntax-highlighting from freezing the UI.

🔄 Auto-Update Support

  • Moved electron-updater from devDependencies to runtime dependencies, ensuring auto-update functionality is included in production builds.
  • Trimmed electron-builder packaging resources to reduce installer size.

🧪 Test Infrastructure

  • Unified all test entry points under a single npm test command, synchronized CI configuration accordingly.
  • Added test coverage for log-format, file-viewer-virtualization, rpc-manager, and other modules.

🧹 Housekeeping

  • Removed ~10,000 lines of obsolete architecture review docs, implementation plans, and design specs.
  • Cleaned up unused Open Design skill scaffolding and temporary image assets.
  • Updated .gitignore to exclude dev-time temp logs and /tmp/ directory.