Skip to content

[2036 by GPT-5.6 Sol] Clamp desktop window sizing to the active display work area - #2039

Merged
integry merged 1 commit into
1952-epic-electron-runtime-appfrom
2036/gpt-5.6-sol-clamp-desktop-window-sizi-20260831-2347-ql3
Sep 1, 2026
Merged

integry merged 1 commit into
1952-epic-electron-runtime-appfrom
2036/gpt-5.6-sol-clamp-desktop-window-sizi-20260831-2347-ql3

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2036

Branch: 2036/gpt-5.6-sol-clamp-desktop-window-sizi-20260831-2347-ql3
Commits: ✅ Changes committed (79dfe9e)


AI Processing Completed

Execution Details:

Summary:
Implemented issue #2036.

  • BrowserWindow sizing now clamps preferred and minimum dimensions to the cursor-relevant display, with deterministic primary-display fallback.
  • Initial windows are centered within the selected display work area.
  • Runtime and smoke validation share window-sizing.json.
  • Added the five requested sizing scenarios plus multi-display tests.
  • Packaged smoke now constructs an actual hidden 800×560 native window and verifies its bounds, position, and clamped minimums. Windows installed-app evidence requires this exercise.

Validation passed:

  • Desktop/UI typecheck
  • Desktop tests: 169 passed, 6 platform-specific skipped
  • Fresh Linux package build
  • Packaged executable/fuse inspection
  • Runtime and packaging audits: 0 vulnerabilities
  • Diff-check

The full GUI smoke launch could not run locally because the container lacks a display/Xvfb and its package index cannot provide Xvfb; the packaged inspection succeeded.

Detailed Logs:

  • Conversation: 83 messages
  • Session: 01a05a39-b479-7a90-b9d1-843b5608352d

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2036-2026-08-31T23-58-26-428Z-conversation.json
  • output: /tmp/claude-logs/issue-2036-2026-08-31T23-58-26-428Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #2036.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…ive display

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Aug 31, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry integry removed the AI label Sep 1, 2026
@propr-dev

propr-dev Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR correctly centralizes desktop sizing, selects the cursor-relevant display, clamps preferred and minimum dimensions, centers the window, and adds native packaged-smoke coverage. It is ready to merge once the pending checks complete successfully.

✅ Correct clamping behavior — window-options.ts keeps both initial and minimum dimensions within the selected work area, including undersized displays.

✅ Deterministic display selection — Cursor lookup failures and unusable active-display work areas fall back to the validated primary display.

✅ Meaningful native verification — The packaged smoke creates a real reduced-size BrowserWindow and verifies its native bounds, position, and minimum constraints.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Cover invalid active displays

Add a unit test where getDisplayNearestPoint() returns an unusable work area and confirm that selectInitialWindowWorkArea() returns the primary area. The implementation already handles this correctly; the test would preserve that distinct fallback path.

S2: 🟢 Validate the sizing manifest

Consider validating that values imported from window-sizing.json are positive integers. The current committed values are valid and downstream work-area validation prevents immediate problems, so this is optional protection against future configuration mistakes.

Score

The changed behavior is internally consistent, well tested at unit and native-smoke levels, and has no verified merge blocker. The remaining uncertainty is limited to the currently pending CI checks.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 52s
  • Tokens: 50,019 (47,364 in / 2,655 out)
  • Cost: $0.27

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry
integry merged commit 4775600 into 1952-epic-electron-runtime-app Sep 1, 2026
30 of 31 checks passed
@integry
integry deleted the 2036/gpt-5.6-sol-clamp-desktop-window-sizi-20260831-2347-ql3 branch September 1, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant