Skip to content

feat(dev): restore the macOS main window frame after rebuilding - #1648

Merged
houko merged 1 commit into
nsgo-dev:mainfrom
houko:feat/dev-window-frame-658
Nov 21, 2026
Merged

houko merged 1 commit into
nsgo-dev:mainfrom
houko:feat/dev-window-frame-658

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Restore the last regular position and size of the macOS main view's window and secondary windows opened with desktop.WindowOptions.Key during a native dev session.
  • Apply the saved frames before the engine lays out the windows. Each stable key uses its own writer, retained across close and reopen within the same process.
  • Keep frame files in the dev session's temporary directory. AppKit still centers children over their parent when they open without an explicit or saved frame.

Refs #658. Windows and Linux placement, unkeyed secondary windows, full-screen state, seamless window handoff, and navigation restoration remain tracked there.

Verification

  • In a real macOS nsgo dev -target native session, moved and resized the main window and two keyed windows. After a Go edit, the process changed and the keyed windows opened in reverse order. The first reported frame for each of the three windows matched its saved position and size.
  • On the rebase with the merged child-window changes, passed all five focused AppKit regressions, both core window regressions, both engine attachment regressions, and the macOS arm64 and x64 checks.
  • The preceding verification also passed all 48 engine tests and the NSGo skill test. The earlier main-window probe verified default placement for a fresh session and a release build.
  • git diff --check origin/main...HEAD passed.

@github-actions github-actions Bot added size/M enhancement New feature or request documentation Improvements or additions to documentation macOS cli conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/dev-window-frame-658 branch 2 times, most recently from 4f3ac3d to 0b6a8b2 Compare November 21, 2026 16:19
@github-actions github-actions Bot added the core label Nov 21, 2026
@houko
houko force-pushed the feat/dev-window-frame-658 branch from 0b6a8b2 to d8d0500 Compare November 21, 2026 16:40
@github-actions github-actions Bot added conflict Conflicts with the base branch; resolve it first and removed conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/dev-window-frame-658 branch from d8d0500 to 41469e6 Compare November 21, 2026 19:00
@houko
houko force-pushed the feat/dev-window-frame-658 branch from 41469e6 to cc64c8a Compare November 21, 2026 19:09
@houko
houko merged commit d91d7a7 into nsgo-dev:main Nov 21, 2026
3 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli conflict Conflicts with the base branch; resolve it first core documentation Improvements or additions to documentation enhancement New feature or request macOS size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant