Repository navigation
Conversation
koeria
force-pushed
the
fix/issue-3074
branch
from
November 12, 2026 18:39
edcadd4 to
8f79992
Compare
This branch has not been deployed
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.
问题(#3074)
Windows 重启 Codex 时,停止后复核在调试端口仍有监听者时一次性
ensure!直接失败:既不等本实例正在退出的暂态监听者,也不记录监听者身份,导致「旧窗口已关闭但不再启动新实例」,只能手动结束残留进程。与 #3010(停止前入口/进程身份不匹配,PR #3048)不同,这里明确走到了停止后的端口复核,是一个独立缺陷;核实 main 与 v2.6.4/v2.6.7 均未修复。修复
ensure_debug_port_released:停止后复核改为在RESTART_STOP_WAIT_TIMEOUT_MS内有限轮询,暂态监听者(例如同实例正在退出的残留进程)退出后继续;超时仍占用才失败,不放宽进程归属保护,也不停止未知归属的监听者。windows_integration::loopback_listener_summaries,消息明确显示「旧窗口已关闭,未启动新实例」及可执行的恢复操作。测试
cargo test -p codex-plus-core --lib watcher::windows_main_stop35 passed(含新增 3 项)。loopback_listener_summaries走OpenProcess/QueryFullProcessImageNameW)本地沙盒无法执行,依赖 CI 的 Windows 任务覆盖;沙盒内存/网络受限,本次仅跑目标模块单测。