Skip to content

fix(dev): restore the Windows main window across Go rebuilds - #1802

Merged
houko merged 2 commits into
mainfrom
fix/dev-windows-frame-658
Nov 22, 2026
Merged

houko merged 2 commits into
mainfrom
fix/dev-windows-frame-658

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Restore the Windows main view’s last regular frame and borderless full-screen mode before the replacement process lays out the window. The session retains the regular placement so leaving full screen returns there.

Build each Windows replacement in its own directory. The running executable and its resources stay where they are until the replacement has built and the old process has stopped.

Part of #658. Linux placement, additional windows, macOS full screen, navigation state and seamless or identity-preserving handoff are still tracked there.

Verification

  • The CLI tests passed locally, including two successful Windows cross-builds with distinct executables and cleanup of a failed build.
  • The Windows amd64 test source cross-compiled with the nsgodev tag.
  • The native Windows workflow passed. The test reopened from a regular placement, then from full screen, and verified the regular placement returned when leaving full screen.
  • Cross-target Build and vet passed.
  • The broader Linux Test job reported the existing TestMinimalAppLinks failures.

The staging change skipped the old RemoveAll and MkdirAll when a debugger runs the build, so stale files could survive and a missing directory was left to go build.
@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. I pushed b352fb5: with a debugger the build directory is emptied and recreated again, as it was before this change. Staging each non-debug build in its own temp directory avoids overwriting the running exe, and each directory goes when its app stops. Note #1806: both PRs rewrite the windowFrameFile setup in cmd/nsgo/dev.go, so the second to land must keep Linux in captureFrame.

@houko
houko enabled auto-merge (rebase) November 22, 2026 04:23
@github-actions github-actions Bot added size/M documentation Improvements or additions to documentation Windows cli ci labels Nov 22, 2026
@houko
houko merged commit 3d15502 into main Nov 22, 2026
19 of 21 checks passed
@houko
houko deleted the fix/dev-windows-frame-658 branch November 22, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci cli documentation Improvements or additions to documentation size/M Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant