fix: stabilize Windows Codex launch#1351
Open
wanxiaoT wants to merge 1 commit into
Open
Conversation
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.
概述
这个 PR 修复 Windows 上 Codex++ 拉起 CodexDesktop 时的启动/注入稳定性问题,尤其是 packaged app 复用已有 Codex 实例时,新命令行参数可能被忽略导致的 debug/inspector port 不稳定问题。
修改内容
app-server-manager-signals-*和app-server-manager-hooks-*资源。背景
在 Windows packaged app activation 场景下,如果系统里已经有 CodexDesktop 实例,Windows 可能会复用已有实例,并忽略新传入的命令行参数。
原逻辑在端口占用时会选择随机空闲端口,但已有 Codex 实例不会切换到这个新端口,导致 Codex++ 后续注入/本地化逻辑可能等待一个 Codex 永远不会打开的端口,从而表现为启动后间歇性卡顿或等待。
测试
已验证: