fix(windows): recover injector after Codex reopens - #231
Conversation
|
维护者 current-main 复核(main@6f789be / v1.5.12):#200 的恢复缺口仍在,PR 保持开放。当前 watcher 在原 Browser identity 关闭后退出,tray 没有针对“新端点已验证、旧 watcher 已停止”的 reconciliation monitor; 请基于 current main 重放,复用当前 Browser ownership、process start time、state schema 与 tray localization,避免与正常 start/pause/restore 竞态。合入前需要 PowerShell 5.1/7 全套、Setup compile,以及真实 Codex 完全关闭后重开并再切换主题的 Windows smoke。 |
|
维护者复核(当前 current Windows watcher 按设计在原 Browser ID 关闭后退出; 请基于 current main 只移植 recovery context、 |
0331b6c to
5e34285
Compare
|
已按这条复核意见基于 current 本次只移植 reopen recovery 所需边界:
验证结果:
真实 Store Codex 完全关闭 → 重开 → 再切换主题的 smoke 仍未冒充完成:当前开发/验证本身运行在 Codex Desktop 内,关闭它会终止本任务。PR 描述已明确保留这项独立人工验收。 |
Summary / 摘要
main(v1.5.14).-RecoverExistingstartup mode. It rechecks the operation lock, pause marker, state schema, watcher liveness, Store package ownership, port and Browser identity; it never launches or restarts Codex.en-US/zh-CNrecovery copy and dedicated PowerShell 5.1/7 regressions.Safety / 安全边界
Recovery is inert when any of these is true:
OpenAI.CodexStore package.-RecoverExistingrejects restart/prompt flags and cannot enter the Codex launch or restart paths.Verification / 验证
Passed on Windows:
powershell.exe -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -File .\windows\tests\run-tests.ps1pwsh.exe -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -File .\windows\tests\run-tests.ps1powershell.exe -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -File .\windows\tests\installer-static.tests.ps1pwsh.exe -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -File .\windows\tests\installer-static.tests.ps1node --test windows/tests/*.test.mjs(27 tests)CodexDreamSkin-Setup-v1.5.14.exe, 24,486,926 bytes, SHA-2561868AB09E50143644B9C7640E95AEEA9F0E4D27389919A9E51C968C6CF650E69git diff --checkThe true Store Codex full-close/reopen/theme-switch smoke is still pending. It was not claimed from this development session because closing Codex would terminate the active Codex task hosting the test run.
Fixes #200