Skip to content

Clamp desktop window sizing to the active display work area #2036

Closed

Description

@integry

Parent runtime epic: #1952
Discovered during runtime propagation review on #2030 (F2).

Implement the native window contract already required by packaged smoke validation.

Requirements:

  • Before BrowserWindow construction, obtain the active/target display work area through Electron's main-process screen API.
  • Clamp the preferred initial 1280x820 dimensions to the available work-area width/height.
  • Clamp the configured 880x620 minimums when the work area itself is smaller, so BrowserWindow constraints cannot force the initial window beyond the display.
  • Keep normal-display preferred/minimum behavior, persisted bounds policy (if any), titlebar/security/webPreferences, smoke authorization, and all unrelated runtime behavior unchanged.
  • Centralize or cross-check preferred/minimum sizing constants so runtime and packaged-smoke validation cannot drift.
  • Add focused unit tests for normal, exactly bounded, narrow, short, and both-dimensions-smaller work areas.
  • Add an actual packaged reduced-display/native smoke exercise that verifies the constructed BrowserWindow bounds, not only the assertion helper. Keep it deterministic and harmless on Linux/macOS/Windows CI.
  • Preserve multi-display correctness by choosing the display relevant to initial window creation, with a deterministic primary-display fallback.

Run desktop typecheck/tests, packaged smoke tests on supported platforms, package audit, and diff-check. Do not merge to main; target 1952-epic-electron-runtime-app.

Activity

  1. propr-dev commented on Aug 31, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2036/gpt-5.6-sol-clamp-desktop-window-sizi-20260831-2347-ql3
    • Base Branch: 1952-epic-electron-runtime-app
    • Worktree: issue-2036-20260831-2347-gpt-5.6-sol-ql3

    🔍 Track Task Execution

  2. added a commit that references this issue on Aug 31, 2026
  3. integry commented on Sep 4, 2026

    @integry
    OwnerAuthor

    Implemented by #2039, merged into 1952-epic-electron-runtime-app (4775600). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions