修复:优化小窗口布局并修复 macOS 重启功能#1515
Draft
JackySunHN wants to merge 2 commits into
Draft
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.
修改内容
问题原因
管理工具原来的页面布局在窗口高度变小时会裁剪内容,导致页面底部无法查看或操作。
macOS 的重启命令虽然会调用停止 Codex 和启动器的方法,但对应的非 Windows 实现原来是空函数。因此再次调用
open时,macOS 只会激活已经运行的 Codex 窗口,并不会真正重启应用。此外,原来的
pgrep -x ChatGPT在 macOS 上不能稳定识别 Codex 桌面主进程。本次改为读取ps的ucomm字段并精确匹配,避免误选 Codex 渲染器、后台服务、Chrome 扩展或命令行进程。影响
验证情况
npm run vite:buildcargo test -p codex-plus-corecargo check -p codex-plus-launcher -p codex-plus-manager