Open the macOS app's dashboard in its own window - #438
Merged
Merged
Conversation
The OpenResearch.app now hosts the dashboard in a native window (tao + wry WKWebView) instead of handing it to the user's browser. It adds a standard menu bar, save panels for downloads, a native window.confirm panel, and a Cmd+Q that flushes workspace state and shuts the server down cleanly. Pop-ups open in the system browser (http/https/mailto only). The app now prefers port 4792 so the window's localStorage survives relaunches. The Dock-click tab-focus script, its Apple-events entitlement, and the SSE client counter it relied on are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 24, 2026
# Conflicts: # Cargo.lock # ui/dist/assets/index-DLDRL7rV.js # ui/dist/assets/index-UAhw--Xc.js # ui/dist/assets/index-yT9oNk64.js # ui/dist/index.html
12 of 13 tasks
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First phase of the desktop app. The macOS
OpenResearch.appnow shows the dashboard in its own window instead of opening the user's browser. Windows and the Linux AppImage follow in separate PRs.What changes
http://127.0.0.1:<port>. The existing loopback and same-origin guards, SSE and WebSockets work unchanged.about:blankso the page'spagehideflush saves workspace state, then sends SIGTERM to its own process soorx upstops agents and exits through its normal shutdown. A 5s fallback forces the exit.window.openandtarget=_blanklink opens in the system browser. Onlyhttp,httpsandmailtolinks are passed on, so agent-written HTML can't launch other URL-scheme apps without a prompt. An injectedwindow.__ORX_DESKTOP__flag letsRemoteHostDialogopen the remote gateway in the browser once the session exists.window.confirm: wry's WKUIDelegate has no confirm panel, and without one WebKit answers every confirm with false. The app adds the method at runtime and shows anNSAlert.NSAppleEventsUsageDescription, andhas_live_dashboard_clients.Known gaps
terminate:, which skips thepagehideflush and the agent shutdown. That matches today's behaviour.Test plan
cargo fmt --check,cargo clippy --all-targets -D warnings,cargo build --locked,cargo test --locked(923 passed)ui/distrebuilt from source.appagainst an isolated data dir: the window opens after the dashboard loads, and WebKit connects to the serverORX_APP_UNIVERSAL=1) launches and loads the dashboard🤖 Generated with Claude Code