1

Steps to reproduce:
Open two Orion windows, and select the first window. Run the following AppleScript, intending to open a new tab in the front window.

tell application "Orion"
  tell the front window
    make new tab with properties {URL:"https://kagi.com"}
  end tell
end tell

The new tab is opened in the background window.

Listing the active windows with get every window where visible is true shows two windows, with the first listed being the first created, with a lower window id, and the one visibly at the front (and the intended target of the AppleScript).

Minimising the second window causes the tab to be correctly opened in the expected window.

Expected behavior:
The tab is opened in the front window. Safari behaves this way.

Orion, OS version; hardware type:
0.99.115.3-beta, macOS 12.3.1

    10 months later
    No one is typing