Skip to content

fix: prevent concurrent launches of the same installer suggestion - #9

Merged
forgottenlab merged 1 commit into
mainfrom
codex/i1-atomic-install-claim
Nov 21, 2026
Merged

forgottenlab merged 1 commit into
mainfrom
codex/i1-atomic-install-claim

Conversation

@forgottenlab

@forgottenlab forgottenlab commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

修改内容

  • 为安装建议增加原子执行权领取及唯一 claim_id。
  • 完善 claimed、launching、launched、launch_failed、launch_unknown 状态转换。
  • 防止旧记录和并发执行者覆盖当前执行状态。
  • 保留原有安装路径与执行安全约束。

验证

  • I1 专项测试:7 项通过。
  • 相关回归测试:71 项通过。
  • 所有测试均使用隔离状态和模拟进程,未执行真实安装器。

安全边界

不承诺跨崩溃严格 exactly-once;不自动重试启动结果未知的安装器。

English Summary

PathPilot now claims each installer suggestion atomically before launch and prevents stale or competing attempts from overwriting the current launch state. Seven focused tests and 71 related regression tests passed with isolated state and simulated processes. The checks did not run real installers. An unknown launch outcome is not retried automatically, and exactly-once execution across crashes is not guaranteed.

@forgottenlab
forgottenlab merged commit bb8c838 into main Nov 21, 2026
8 checks passed
@forgottenlab
forgottenlab deleted the codex/i1-atomic-install-claim branch November 21, 2026 03:34
@forgottenlab forgottenlab changed the title 防止并发重复启动同一安装建议 fix: prevent concurrent launches of the same installer suggestion Nov 21, 2026
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