fix(windows): 收紧主窗口 shell 外观契约#181
Conversation
There was a problem hiding this comment.
Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
fd5466c to
802ee65
Compare
|
自动 Windows 实机回归新增 blocker:\n\n- fresh-start 后通过 windows-open-dev.ps1 复核,进程能启动,但主窗口句柄对应矩形稳定落在 Left=0, Top=0, Right=5, Bottom=5\n- 同时窗口标题表现为 com.openless.app-siw,不是预期的正常主界面标题\n- 这说明当前分支并未达到可进入人工视觉贴合回归的前提,属于更前置的起窗/可见窗口异常\n\n因此这条 PR 不应继续保持 ready 状态,已退回 draft,建议先修复这个 blocker,再继续做四角/外框/titlebar 视觉评审。 |
|
自动 Windows 实机回归更正:\n\n- 之前的 5x5 矩形来自进程关联的一个可见小宿主/辅助窗口,不是实际的主界面窗口\n- 重新枚举进程下全部顶层窗口后,已经确认存在一个真正可见的 Title=OpenLess 主窗口,矩形约为 Left=102, Top=56, Right=1356, Bottom=864\n- 已抓到对应主窗口截图,说明这条分支已经满足进入人工视觉贴合回归的前提\n\n因此,前一条 blocker 评论作废:当前剩余重点重新回到人工 Windows 视觉贴合评审(四角 / 外框 / titlebar / resize 手感 / 100% 和 125% DPI)。 |
治理归属
docs/windows-window-governance-board.zh-CN.mddocs/2026-05-02-window-capability-family-audit.mddocs/github-tracking/windows-window-family-canonical-map.md摘要
Closes #127
这条 PR 承接 Windows 主窗口 shell 外观契约修复。
本轮重点是把:
收敛成同一条主窗口外观线,不再和 capsule geometry、helper-window lifecycle 混修。
修复 / 新增 / 改进
WindowChrome.tsx的 Windows shell / titlebar / button / resize handle 契约FloatingShell.tsx消费 shared console radius,而不是单独硬编码 Windows 半径tauri.conf.json的 main window 收口到 frameless createwindows-ui-config.test.mjs,锁住主窗口外观契约兼容
测试计划
node openless-all/app/scripts/windows-ui-config.test.mjsnpm run buildcargo check --manifest-path openless-all/app/src-tauri/Cargo.tomlpowershell -ExecutionPolicy Bypass -File openless-all/app/scripts/windows-build-gnu.ps1powershell -ExecutionPolicy Bypass -File openless-all/app/scripts/windows-open-dev.ps1 -ExePath <GNU dev exe>说明