--- name: Desktop 技术栈变更 description: Desktop 模块从 PySide6/Qt 迁移到 PyWebView + Svelte 的决策记录 type: project originSessionId: 74c25b75-4539-4e2e-befc-145f81f71d59 --- # Desktop 技术栈变更 (2026-04-05) **评估结果**: `specs/001-desktop-web-evaluation/spec.md` **变更原因**: Claude 对 Web 前端代码生成准确率(~85-95%)远高于 PySide6(~60-70%),Desktop 模块尚未编码(0%),是切换最佳时机。 **新架构**: Svelte SPA 前端 ←→ pywebview JS Bridge ←→ Python 后端 **关键规则**: Bridge API 返回 JSON 字符串 / 剪贴板通过 pyperclip / 敏感操作在 Python 端