Skip to content

fix(dev): 将 Windows 源码运行拆为 Lite 专用入口 - #1661

Draft
2233admin wants to merge 3 commits into
TraderAlice:devfrom
2233admin:split/1640-lite-source-run
Draft

2233admin wants to merge 3 commits into
TraderAlice:devfrom
2233admin:split/1640-lite-source-run

Conversation

@2233admin

Copy link
Copy Markdown
Contributor

做了什么

  • 从原 UTA 未确认写入的消费端处理与 Windows 源运行辅助 #1640 中独立提取 Windows 源码运行入口:scripts/windows-source-dev.ps1、行为测试、运行文档与 changelog。即使继承 Pro 配置,源码运行仍限定 Lite。
  • 修复相邻 checkout 进程误判、任务切换失败时使用旧备份回滚、含空格路径的启动参数。此 PR 不含 UTA 写入确认或 PTY 变更。

为什么

原 #1640 混有 UTA 写入确认、PTY 与源码运行,无法用同一组证据判定所有变更。此拆分仅解决本地 Windows 源码运行的可靠性和 Lite 边界;关联 #1640,但不关闭或替代其中其他议题。

怎么验证的

命令/场景 结果 范围与限制
pnpm exec vitest run scripts/windows-source-dev.spec.ts 3/3 通过,最终候选提交上复验 默认 Status、目录边界、失败回滚
pnpm test:system:guardian 通过 本地 Guardian 启动/接管系统场景
pnpm test:changed 先前候选上 50 文件/974 项通过;与资金读取组合后的集成提交上 38 文件/952 项通过 不是完整套件
含空格路径下实际执行 Run API 版本与 UI /portfolio 可访问 没有执行真实 Switch 或发布
git merge-tree --write-tree HEAD origin/dev 与当前 dev 无冲突 dev 后续已前进 6 个提交

完整 pnpm test 在先前候选上仍有与本切片无关的 headless 超时、Windows /w 断言及过滤安装缺 Electron builder;不声称全量绿。规则要求的 cargo test --workspace --no-fail-fast 运行后因本仓无 Cargo.toml 退出 101。

怎么回退

若合入后需回退,revert 本 PR 的合并提交;若用户曾执行 Switch,须另外按执行前保存的任务 XML 恢复 Windows 计划任务,代码回退不会自动撤销宿主机任务变更。当前候选未在真实任务上执行 Switch。

@vercel

vercel Bot commented Sep 29, 2026

Copy link
Copy Markdown

@2233admin is attempting to deploy a commit to the luokerenx4's Team Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant