fix(desktop): restore off-screen main window - #2203
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60a1d14e60
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
已推送 |
|
The requested window recovery change is implemented in 3f94c94:
Could you please re-review this update? |
3f94c94 to
27bfa3f
Compare
|
Rebased onto the latest main and pushed as 27bfa3f. The window recovery fix still passes the targeted display tests (23/23) and lint checks. The implementation restores persisted off-screen bounds at startup, avoids clamping intermediate moves, and debounces recovery after moving completes. Please re-review. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 27bfa3f54e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: MarkXian <mark-xian@foxmail.com>
27bfa3f to
2050465
Compare
|
已修复 P2 review 并推送 2050465:只有保存的窗口 bounds 与当前显示器 bounds 有实际交集时才使用 getDisplayMatching;完全属于已断开显示器的 bounds 会回退到主显示器。新增 rectanglesOverlap 测试。验证:stage-tamagotchi 全量 366 passed、1 skipped,ESLint 通过。typecheck/build 仍受基线已有的 eventa/better-fetch 类型冲突和 audio 缺少 toWavFromPCM16 导出阻塞。请重新 review。 |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2050465044
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
补充处理了最新 review:resize-only 拖动只触发 Electron 的 resize 事件,之前只在 move 后恢复边界,可能让窗口继续越过工作区。现在 resize 与 move 共用 250ms trailing debounce,窗口调整结束后都会执行边界恢复。 提交: 验证:display tests 25/25、stage-tamagotchi lint 通过;typecheck 仍被基线的 @moeru/eventa 重复版本、缺失 toWavFromPCM16 和 @better-fetch/fetch 阻塞。 |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Rebased/synced this branch onto the latest main and pushed 3e3d6df. There were no merge conflicts.\n\nCurrent local validation after the sync:\n- pnpm install --frozen-lockfile\n- pnpm -F @proj-airi/stage-tamagotchi exec vitest run src/main/windows/shared/display.test.ts (25 passed)\n- pnpm -F @proj-airi/stage-tamagotchi run lint\n- pnpm -F @proj-airi/stage-tamagotchi exec vitest run (357 passed, 1 skipped)\n- pnpm -F @proj-airi/stage-tamagotchi run typecheck\n\nThe latest resize/move recovery changes are preserved after the main sync. Please re-review when convenient. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e3d6df2e1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea63c22203
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Synced this branch with the latest main and pushed merge commit 9fef14c. There were no merge conflicts; the PR diff remains scoped to the main-window bounds recovery files.\n\nLocal validation after the sync:\n- pnpm -F @proj-airi/stage-tamagotchi exec vitest run src/main/windows/shared/display.test.ts (25 passed)\n- pnpm -F @proj-airi/stage-tamagotchi run lint\n- git diff --check origin/main...HEAD |
|
Addressed the latest regression-test traceability feedback in
Validation:
Please re-review when convenient. |
|
All current review conversations are now resolved. The latest head is |
…ndow-bounds-2181 # Conflicts: # apps/stage-tamagotchi/src/main/windows/main/index.ts # apps/stage-tamagotchi/src/main/windows/shared/display.ts
|
Synced this branch with current Conflict resolution:
Local validation:
I attempted |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
⏳ Approval required for deploying to Cloudflare Workers (Preview) for stage-web.
Hey, maintainers, kindly take some time to review and approve this deployment when you are available. Thank you! 🙏 |
|
Updated the branch with the latest upstream/main to clear the BEHIND state.\n\nLocal validation:\n- pnpm run typecheck\n- pnpm exec vitest run apps/stage-tamagotchi/src/main/windows/shared/display.test.ts\n- pnpm run lint\n- git diff --check\n\nNote: two earlier parallel pnpm commands failed during dependency linking with ENOTEMPTY because they were started concurrently; rerunning the checks serially after install completed passed. |
|
All requested follow-ups are present on the current branch: recovery is scheduled after both move and resize events, the 250 ms workaround has the required NOTICE/source/removal condition, and the display regressions include the ROOT CAUSE block plus Issue #2181 name/link traceability. I resolved the addressed threads; could you please re-review when convenient? |
Summary
Validation
corepack pnpm --filter @proj-airi/stage-tamagotchi exec vitest runcorepack pnpm --filter @proj-airi/stage-tamagotchi exec eslint src/main/windows/main/index.ts src/main/windows/shared/display.ts src/main/windows/shared/display.test.tscorepack pnpm --filter @proj-airi/stage-tamagotchi run typecheckcorepack pnpm --filter @proj-airi/stage-tamagotchi run buildFixes #2181