Repository navigation
desktop app build surface #107
Replies: 1 comment
Desktop surface: the options and how to chooseAgreed priority: invest first in excellent interaction design and reliable behavior, then let measured gaps determine the rendering technology. That agreement is a design priority, not a decision to migrate the shell. Where Exo is todayThe current macOS app is a Swift/AppKit shell with WKWebView hosting the shared web UI and a local Python core. It is not a fully native-controls interface. Swift itself supports Windows and Linux, but AppKit and WebKit's macOS APIs do not port unchanged. The shared UI and portable core can be reused; process lifecycle, webview bridges, permissions, native dependencies, packaging and updates still need platform-specific work. Host choices
No framework migration has been chosen. An agent app needs restricted IPC, message validation and appropriate isolation whichever host is used. Electron's context isolation, sandboxing and untrusted-content guidance are relevant; native-shell bridges also need careful boundaries. Electron security, WKScriptMessageHandler. Interface design and an experimentNative controls can improve text input, selection, IME behavior, keyboard conventions and baseline accessibility; custom controls still require assistive-technology testing. A web UI is well suited to streaming chat, Markdown and code, rich artifacts, custom visualizations and shared-client iteration. Native menus, file pickers, dialogs and notifications can be exposed through a restricted bridge without replacing every view. Apple accessibility fundamentals. My recommendation is a feature-driven hybrid: prototype one valuable flow, such as the composer, against the current experience and compare equivalent keyboard, VoiceOver, IME, streaming, long-history, scrolling, startup and memory behavior. There is no categorical performance or accessibility winner. If rapid delivery across all three desktop OSes is the priority, evaluate Electron seriously alongside thin native hosts; keep the current Mac shell working and the engine protocol independent while running a bounded Windows/Linux or alternative-host comparison. Prior Swift work should inform the decision, not constrain it. Distribution and referencesSwift does not require the Mac App Store. Direct distribution with Developer ID signing and notarization is possible; notarization is distinct from App Review. The Mac App Store requires sandboxing and review, so agent access to files, processes and tools needs careful validation. Helpers may be possible; rejection should not be assumed. Direct distribution still needs production planning for hardened runtime, signing and updates. No signing, store submission or distribution decision has been made. Apple distribution guidance, notarization. Hermes Desktop is a useful example: its official source describes an Electron host, React interface, shared agent core and narrow preload bridge, plus platform integrations. Cross-platform engineering economics are a plausible reason to consider that design, but not a documented statement of its team's original decision. Backend transport details should be checked against the current implementation as documentation evolves. OpenCode Desktop is another Electron reference. Exo's landed #103 translates one process-lifecycle pattern into Swift; it does not copy Electron code or replace the shell. |
Uh oh!
There was an error while loading. Please reload this page.
Opening discussions here on which build surface to use for the Exo desktop app.
Considered and discussed thus far:
Web ui inside native shell (current)
Fully native app
Electron based app
Statement on this from GPT-Forge that I agree with:
All reactions