[PR #13701] fix(desktop): focus window after update/relaunch #14779

Closed
opened 2026-02-16 18:19:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13701

State: closed
Merged: Yes


Summary

When the app relaunches after an update, the window would remain hidden in the Dock instead of being focused and brought to the foreground.

Changes

Ensures set_focus() is called in MainWindow::create:

  1. After building a new window
  2. When returning an existing window (early return path), also calls unminimize()

Testing

  • Updated the app via the built-in updater
  • Confirmed the window now comes to the foreground automatically

Fixes #13700

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13701 **State:** closed **Merged:** Yes --- ## Summary When the app relaunches after an update, the window would remain hidden in the Dock instead of being focused and brought to the foreground. ## Changes Ensures `set_focus()` is called in `MainWindow::create`: 1. After building a new window 2. When returning an existing window (early return path), also calls `unminimize()` ## Testing - Updated the app via the built-in updater - Confirmed the window now comes to the foreground automatically Fixes #13700
yindo added the pull-request label 2026-02-16 18:19:32 -05:00
yindo closed this issue 2026-02-16 18:19:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14779