Repository navigation
Desktop 一键准备本机环境、Windows 无控制台任务和 Gemini 连接 - #1435
Merged
Merged
Conversation
…behavior on Windows CI
…ss metadata edits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么需要这次修改
桌面版原先把本机环境、OpenAI Tunnel、Cloudflare 入口和首次授权拆成多组动作,保存配置、服务启动和真正可用的状态也容易混在一起。实机测试还发现旧环境迁移、Windows 子进程黑框及重开后活动显示的问题。本 PR 将普通用户路径收敛为一次准备本机环境,再分别接入 ChatGPT 和 Gemini;二者共用一套 Desktop Server 与 Runner。
用户路径及行为
setup_busy等待最多 5 秒;standalone 的 lease/control 预算和 Windows 条件分支保持原样,文件/权限错误立即归入独立类别。取得锁后仍连续核对配置、代次、owner 与数据库状态,取消后没有后台重试。Windows
围绕
7ef8601的三段 Windows 实机监测合计 35 分钟、165,399 次采样,未观察到新增可见控制台窗口。同轮检查七种语言,验证正常 Server/Runner 启动及关闭重开 GUI 后保持单实例。该版本的 Runner 重启暴露旧 worker 尚未退出就创建新实例的竞态;修复等待已证明归属的 host/worker 内核句柄,并核对 Scheduler 实例退出。另修复 ordinary DOS 与
\\?\\扩展路径表示导致的实际程序身份误判;仍保留 SID、参数、工作目录、任务定义和进程归属检查。54 项路径 fixture 和 15 项生命周期 fixture 通过。无控制台启动覆盖 GUI 用户任务宿主及 Git/SSH/CLI 子进程;新的活动查询也沿用既有 CREATE_NO_WINDOW。干净
5c4acefe已由官方 helper 生成 NSIS 包,在 MSI 正常安装并经桌面快捷方式打开,四个安装后程序与实际包逐一一致。该阶段 22,100 次采样中新增可见控制台为 0。用户随后通知 MSI 即将关机,因此该包 Runtime Start、Server/Runner Restart、Gemini 转发/Discovery 和关闭重开均未执行;9f 及后续提交没有在 MSI 安装。后续 CI 或实现审查不替代这些实机验收。实机验收
最终干净源码 aa0b3ad 已用官方 helper 在 mini 构建并安装。GUI、CLI、Server、Runner 四程序版本和 SHA-256 均与实际 DMG 一致,strict signature 检查通过;build time
1795369641。DMG SHA-256:044535f1141530c8166126a2d428dc1c0234e3716c469d608e040cbdaf1f321b。/usr/bin/printf desktop-shared-runtime-ok;两边实际返回同一 Server PID 20203、相同 Runner client/instance 和干净 aa0 版本;独立的原生后台收据将这些身份对应到唯一的 Desktop Server/Runner 20203 / 20210。网页调用和后台身份核对分别留证。wc_sess_LhuFbVo8341Rg1zj的独立执行记录明确为 completed/succeeded、退出码 0、107 ms。ChatGPT 的数字退出码未保留,报告仅记录实际 marker 与工具 success。完整最新证据:aa0-browser-e2e.json。报告所在后续提交仅增加验收材料,实际测试二进制仍对应 aa0。
版本与证据边界
验证及材料
已知边界
Quick Tunnel 的地址在重建时可能改变,Gemini 需要更新自定义应用地址并重新授权;正常只退出/重开桌面 GUI 已验证不会重建背景入口。需要固定地址的 Named Tunnel 保留支持,但本轮未做真实 Named 账号联测。当前安装包使用既有本机开发签名,不是已公证的正式发布;本 PR 没有合并、打 tag 或发布。