---
title: Desktop apps
description: "Build a private UI for an Executor app and open it in its own desktop window. On macOS and Windows, install it with a launcher."
---

You can install a deployed Executor app whose active version serves a UI you can
open. It runs in its own window backed by your local Executor, Executor Cloud,
or a self-hosted server with app pages enabled, and gets an app launcher on
macOS and Windows. Executor stores connected service credentials on the server
and uses them when your app's tools run. Write the UI to call those tools
through `apps/client`, and keep service credentials out of browser code.

## What you need

- **The Executor 2 desktop beta** for macOS or Windows. It connects to Executor
  Cloud, a self-hosted server, or a local Executor on your computer.
  [Download the desktop installer.](https://executor.sh/#install)
- **An agent connected to the same Executor** over MCP, such as Claude Code,
  Codex or Cursor, to write and deploy the app. See
  [Add an MCP client](/mcp-clients). You can also deploy from a shell with the
  [command line](/run/cli).
- **Any external accounts your app calls.** Link them on the deployed app's
  **Accounts** tab; see [Connect an account](/connect-an-account).

## From nothing to an installed desktop app

1. **Install and open the Executor 2 desktop beta**

    Download the current **Executor 2** desktop beta at
    [executor.sh/#install](https://executor.sh/#install) and open Executor. If
    you see **Welcome to Executor**, choose **Sign in** to connect to Executor
    Cloud (`https://app.executor.sh`) through your browser, or **Run locally**
    to run Executor on this computer. For a [self-hosted](/run/self-host)
    server, open **Customize**, enter its dashboard URL and choose **Sign in to
    this server**.

2. **Connect your agent to the same server and team**

    In the dashboard for that server and team, open **Connect an agent** (hosted
    or self-host) or **Connect** (local) and follow the client setup shown
    there. When authorizing a hosted connection, pick the same team and **All
    apps** using an account with permission to manage apps, then restart your
    agent or start a new session. See [Add an MCP client](/mcp-clients).

3. **Build and deploy an app with a UI**

    Ask your agent to build and deploy an app with `ui/index.html` and return
    its name and dashboard link (use the prompt below). If the app uses external
    services, link them on its **Accounts** tab before testing those features.

4. **Install it from the Executor desktop dashboard**

    In the Executor desktop dashboard for the same server and team, open
    **Apps**, select the deployed app, click **Install as app** in its header,
    and confirm **Install**.

5. **Open it**

    Click **Open app** on the dashboard page, or open its launcher from
    `~/Applications/Executor Apps/` on macOS or **Executor Apps** in the Windows
    Start menu.

## Prompt for your agent

Paste this into an agent connected to Executor (or one with web access that can
walk you through connecting first):

```text
Help me build and deploy a desktop app with Executor (https://executor.sh).

1. Ask what I want the app to do and start with the smallest useful version.
2. If you are not connected to my Executor MCP endpoint yet, help me connect you
   first (https://executor.sh/docs/mcp-clients). On Cloud or self-host, make
   sure I pick the same team as my desktop app and grant "All apps" with an
   account that can manage apps, then wait until Executor's tools are available.
3. Use the MCP `skills` tool to read the Executor app's `executor` and
   `app-authoring` skills, including `app-authoring`'s `ui.md` and `deploy.md`.
4. Confirm which Executor server and team my desktop is using. Discover the
   Executor app's tool signatures. On Cloud or self-host, call `context.get` and
   use the approved organization for framework and app-management calls; local
   calls omit the organization. Call `framework.release` on that host and pin
   the exact returned version as `dependencies.apps` in `package.json`. Do not
   use `apps@latest`.
5. For a React UI, include `react` and `react-dom` in `package.json` and create
   `index.ts`, `ui/index.html` and a module entry such as `ui/main.tsx`. Add a
   self-contained `ui/icon.svg` and a `ui/menubar.html` popover (with its own
   entry) if they fit the app. Use `desktop` from `apps/client` and hooks from
   `apps/react` for desktop features, guarding imperative calls with
   `desktop.available` so the page still works in a browser tab.
6. Create and deploy the app with Executor's `appManagement` tools, sending the
   complete file list including `package.json`. If the app needs external
   service accounts, guide me to link them on its Accounts tab rather than
   asking for keys in chat.
7. Verify the rendered UI in an authenticated session if you have one; if you
   can only check the deploy or page URL, say so. Give me the app's name and
   dashboard link and tell me to open the same team in Executor desktop, select
   the app under Apps, click "Install as app", confirm "Install", and click
   "Open app".
```

## What an installable app contains

Every Executor app has `package.json` and `index.ts`. Deploy `ui/index.html` to
give it a private web page; once that page is available, you can install the app
from the Executor desktop dashboard. `ui/icon.svg` and `ui/menubar.html` are
optional.

<FileTree>

- package.json
- index.ts
- ui/
  - index.html
  - main.tsx
  - icon.svg
  - menubar.html
  - menubar.tsx

</FileTree>

- **`package.json`**: pins the exact `apps` version the host runs, plus `react`
  and `react-dom` for React UIs. Read the version from the host with
  `framework.release` over MCP or `executor apps framework` in a shell. Never
  use `apps@latest`.
- **`index.ts`**: the app's server source, with a default `defineApp` export
  from `apps`. See [Author an app](/author-an-app).
- **`ui/index.html` and `ui/main.tsx`**: the main page opened in the app's
  window. React is the only supported app UI framework. Tailwind CSS v4 is built
  in: import a stylesheet starting with `@import "tailwindcss";` from
  `ui/main.tsx`, with no Tailwind dependency or config file needed.
- **`ui/icon.svg`** (optional): supplies the launcher and menu-bar or tray icon
  where available, and the window icon outside macOS. Served at
  `/_executor/icon.svg`; Executor draws a monogram when it cannot use an app
  icon. The build checks `ui/icon.svg` strictly and fails the deploy if it
  violates any rule:
  - At most 64 KiB (65,536 bytes).
  - One well-formed XML `<svg xmlns="http://www.w3.org/2000/svg">` root element.
  - No `<!DOCTYPE>` or `<!ENTITY>` declarations, and no processing instructions
    such as `<?xml-stylesheet?>`.
  - No `<script>` or `<foreignObject>` elements, and no attributes whose names
    start with `on`.
  - Every `href` or `xlink:href` must start with `#` after trimming whitespace,
    referencing an element in the icon such as `href="#shape"`.
- **`ui/menubar.html`** (optional): a menu-bar popover page, served at
  `/_executor/menubar`. It requires `ui/index.html` (deploying `ui/menubar.html`
  alone fails the build). Give it its own module entry such as `ui/menubar.tsx`,
  and share code with the main page by importing the same modules. Size the
  popover with `<meta name="executor:menubar">` in `<head>` (default 320×400;
  width clamped 200–640, height clamped 120–720).

`ui/icon.svg` and `ui/menubar.html` do not change what the main page renders in
a browser tab; Executor uses them for the installed desktop icon and menu-bar
popover.

### Minimal complete example

This app exposes one query tool, renders a React page that reads it, includes a
valid icon, and adds a menu-bar popover. Replace `<version>` with the exact
version returned by `framework.release` or `executor apps framework`.

<CodeGroup>

```json package.json
{
  "name": "status-board",
  "private": true,
  "type": "module",
  "dependencies": {
    "apps": "<version>",
    "react": "^19.2.0",
    "react-dom": "^19.2.0"
  }
}
```

```ts index.ts
import { defineApp, object, query, router, string } from "apps";

export const status = query(
  { description: "Read the current status", input: object({}), output: string() },
  async () => "All systems normal",
);

export default defineApp({}, { tools: router({ status }) });
```

```html ui/index.html
<!doctype html>
<html>
  <head>
    <title>Status Board</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>
```

```tsx ui/main.tsx
import React from "react";
import { createRoot } from "react-dom/client";
import { string } from "apps";
import { createAppClient, queryReference } from "apps/client";
import { useAppQuery } from "apps/react";
import type { status } from "../index.ts";

const client = createAppClient();
const statusAtom = client.queryAtom(queryReference<typeof status>("status"), {}, string());

function App() {
  const { data, pending, error } = useAppQuery(statusAtom);
  return (
    <main>
      <h1>Status Board</h1>
      <p role="status">{error ?? (pending ? "Loading…" : data)}</p>
    </main>
  );
}

createRoot(document.getElementById("root")!).render(<App />);
```

```svg ui/icon.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
  <circle cx="8" cy="8" r="7" fill="#111111" />
</svg>
```

```html ui/menubar.html
<!doctype html>
<html>
  <head>
    <title>Status Board</title>
    <meta name="executor:menubar" content="width=320, height=240" />
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./menubar.tsx"></script>
  </body>
</html>
```

```tsx ui/menubar.tsx
import React from "react";
import { createRoot } from "react-dom/client";
import { string } from "apps";
import { createAppClient, queryReference } from "apps/client";
import { useAppQuery } from "apps/react";
import type { status } from "../index.ts";

const client = createAppClient();
const statusAtom = client.queryAtom(queryReference<typeof status>("status"), {}, string());

function MenuBar() {
  const { data, pending, error } = useAppQuery(statusAtom);
  return <main>{error ?? (pending ? "Loading…" : data)}</main>;
}

createRoot(document.getElementById("root")!).render(<MenuBar />);
```

</CodeGroup>

Import server operation **types only** (`import type { status } from "../index.ts"`)
from browser code. Deploy via `appManagement` over MCP (see
[Author an app](/author-an-app#deploying)), or install the
[Executor CLI](/run/cli) separately, connect it to the same server and team,
save the seven files under `./status-board`, and run:

```bash
executor apps create --name "Status Board" --files ./status-board
executor apps deploy --app <app-id> --files ./status-board
```

On hosted servers, `appUi.location` returns
`{ status: "ready", url, name, icon, menuBar }` when the app page is available;
`icon` and `menuBar` describe the active version.

After installing **Status Board** and opening it, confirm the window shows
**All systems normal**. When Executor asks about a menu-bar or tray item, allow
it, then click the icon to verify the popover shows the same status.

## Desktop abilities and permissions

`desktop` from `apps/client` and the hooks in `apps/react` give an installed app
access to desktop features inside its windows and menu-bar popover. In a browser
tab, `desktop.available` is `false`, `desktop.permission()` and
`desktop.requestPermission()` resolve `"unavailable"`, and other promise-based
methods reject with `DesktopUnavailable`. `desktop.window.onBlur()` and
`onFocus()` return cleanup functions and listen only inside an installed app
window. Guard imperative desktop actions with `desktop.available` in shared UI
code.

### How permissions work

New installs start with no grants. Executor prompts when a supported action
needs a permission whose state is `"prompt"`. Some capabilities (`startAtLogin`
and `notifications`) require an explicit request. Choices persist on this
computer across app versions at the same origin and clear if the app moves to a
new origin.

- `desktop.permission(name)` reads `"granted"`, `"denied"`, `"prompt"` or
  `"unavailable"` without asking.
- `desktop.requestPermission(name)` asks while the state is `"prompt"` and
  resolves the resulting state (including `"denied"` if refused).
- `useDesktopPermission(name)` from `apps/react` returns `undefined` until the
  first read and refreshes when its window gains focus.

Change supported permissions later in three places:

- The app window's **\<App name\> → Permissions** menu (which also lists
  **Shortcuts in use** while shortcuts are registered).
- The menu-bar or tray icon's **Permissions** context menu, when the app has a
  tray item.
- The **Desktop** section of the app's **Settings** page in the Executor desktop
  dashboard, choosing **Allow**, **Don't allow** or **Ask next time** (choosing
  **Allow** opens a confirmation dialog).

| Permission | Settings label | What it allows |
| --- | --- | --- |
| `menuBar` | Menu bar | Show the `ui/menubar.html` popover and set the title beside the icon (macOS) or tray tooltip (Windows). |
| `shortcuts` | Keyboard shortcuts | Register global shortcuts that work while another app is in front. |
| `floating` | Float above other windows | Keep an app window in front of other windows. |
| `startAtLogin` | Start at login | Open the app with its main window hidden when you log in. |
| `microphone` | Microphone | Record from your microphone via `getUserMedia({ audio: true })`. |
| `camera` | Camera | Record from your camera via `getUserMedia({ video: true })`. |
| `systemAudio` | System audio | Capture computer audio via `desktop.audio.system()`. |
| `clipboardRead` | Read clipboard | Read copied text via `navigator.clipboard.readText()`. |
| `notifications` | Notifications | Show system notifications via `Notification`. |

Known desktop errors are exported from `apps/client` for `instanceof` checks:
`DesktopUnavailable`, `DesktopPermissionDenied` (`.permission`), `ShortcutTaken`
(`.accelerator`), `DesktopInvalidInput` (`.message`), and `SystemAudioBlocked`.
Handle other rejections too, such as browser media errors.

### Menu bar

When an installed app with `ui/menubar.html` opens, Executor asks about
`menuBar` if the decision is still pending. Once allowed, Executor adds a
menu-bar item (macOS) or notification-area icon (Windows) that toggles the
popover. While a tray item is active, closing the main window keeps the app
running hidden.

`desktop.menuBar.setTitle(text)` takes a single-line string up to 24 UTF-16 code
units (`desktopMenuBarTitleMaxLength`) with no control or Unicode format
characters, or `null` to restore the app's name. On macOS it appears beside the
icon; on Windows it sets the tray tooltip. With valid input, an app without
`ui/menubar.html` rejects with `DesktopUnavailable`.

Call this helper with a nonnegative safe integer from either installed page of
an app that includes `ui/menubar.html`:

```tsx
import { desktop, DesktopPermissionDenied } from "apps/client";

export async function showUnread(count: number) {
  if (!desktop.available || !Number.isSafeInteger(count) || count < 0) return;
  try {
    await desktop.menuBar.setTitle(count > 0 ? `${count} unread` : null);
  } catch (error) {
    if (!(error instanceof DesktopPermissionDenied)) throw error;
  }
}
```

### Global shortcuts

`desktop.shortcuts.register(accelerator, handler)` registers a global shortcut
and resolves an async cleanup function (`await` it to remove the shortcut).
Write modifiers followed by one key using letters, digits and `+` (up to 64
characters), including a modifier such as `CommandOrControl`, `Control`,
`Command`, `Alt`, `AltGr` or `Super`; `Shift` alone is not enough except with
`F13`–`F24`, media keys or volume keys (which also work alone). Each app can
hold at most 8 global shortcuts.

In React, `useDesktopShortcut(accelerator, handler)` from `apps/react` holds the
shortcut while mounted, does nothing outside the desktop, and returns the
registration error or `undefined`:

```tsx
import { DesktopPermissionDenied, ShortcutTaken } from "apps/client";
import { useDesktopShortcut } from "apps/react";

export function SearchShortcut({ onOpen }: { onOpen: () => void }) {
  const failure = useDesktopShortcut("CommandOrControl+Shift+K", onOpen);
  if (failure instanceof ShortcutTaken) {
    return <p>The shortcut {failure.accelerator} is already in use.</p>;
  }
  if (failure instanceof DesktopPermissionDenied) {
    return <p>Keyboard shortcuts are turned off for this app.</p>;
  }
  return null;
}
```

### Keep on top and window controls

`desktop.window.setFloating(true)` keeps the app's main window above other
windows and requires the `floating` permission; `setFloating(false)` clears it
without prompting. `show()`, `hide()`, `focus()` and `toggle()` act on the
calling window: `focus()` shows and raises it, and `toggle()` hides it when
visible and focused or shows and focuses it otherwise. `onBlur(handler)` and
`onFocus(handler)` return stop functions (`useDesktopWindowEvent("blur" | "focus", handler)`
in React).

Render `QuickPanel` once in the main window's React entry (the shortcut and blur
handlers act on the window that rendered it):

```tsx
import { useState } from "react";
import { desktop, DesktopPermissionDenied } from "apps/client";
import { useDesktopShortcut, useDesktopWindowEvent } from "apps/react";

export function QuickPanel() {
  const [message, setMessage] = useState("");
  const shortcutError = useDesktopShortcut("CommandOrControl+Shift+Space", () => {
    void desktop.window.toggle().catch(() => setMessage("Could not open or hide the app."));
  });
  useDesktopWindowEvent("blur", () => {
    void desktop.window.hide().catch(() => setMessage("Could not hide the app."));
  });

  async function pinWindow() {
    try {
      await desktop.window.setFloating(true);
      setMessage("");
    } catch (error) {
      setMessage(
        error instanceof DesktopPermissionDenied
          ? "Allow floating windows in the app's permissions."
          : "Could not keep the app on top.",
      );
    }
  }

  if (!desktop.available) return null;
  return (
    <>
      <button type="button" onClick={() => void pinWindow()}>
        Keep on top
      </button>
      <p role="status">
        {message || (shortcutError === undefined ? "" : "Could not register the global shortcut.")}
      </p>
    </>
  );
}
```

`desktop.window.open(path, options?)` opens an extra window on the app's origin,
or focuses an existing extra window opened with the same path and query. Paths
must start with one `/` (at most 2,048 characters, no literal whitespace, `\` or
`#`), and your UI must handle the route (unserved dotted paths other than
`/index.html` return 404). Up to 8 extra windows (`desktopMaximumWindows`) can
be open at once; optional initial `width` and `height` are integer pixels from
200 to 4096 (default 800×600). Pass `floating: true` when opening a new extra
window to float it (requires `floating`). Extra windows share the app's
permissions and close when it quits.

### Notifications

Notifications use the standard web `Notification` API behind the `notifications`
permission. Request permission from a user action with
`Notification.requestPermission()` (or
`desktop.requestPermission("notifications")`) before constructing a
`Notification`. Clicking an installed app's notification focuses the main window
and, if `{ data: { path } }` is provided (following the same path rules as
`desktop.window.open`), navigates it there.

Implement a `/reports` route in your UI that reads the `task` query parameter,
and pass a short task ID so the path stays within 2,048 characters:

```tsx
export async function notifyReady(taskId: string) {
  const permission =
    Notification.permission === "granted"
      ? "granted"
      : await Notification.requestPermission();
  if (permission !== "granted") return;

  new Notification("Report ready", {
    body: "Open the latest summary.",
    data: { path: `/reports?task=${encodeURIComponent(taskId)}` },
  });
}
```

### Badges, login start, media, clipboard and downloads

- **Badges**: `desktop.badge.set(count)` accepts a whole number from 0 to 99,999
  or `null` (`0` and `null` clear it, no permission prompt). Windows draws on
  the app's taskbar button (`99+` above 99). macOS shows the sum across running
  apps on Executor's Dock icon, and Linux sets that same combined count on
  Executor's launcher icon where the desktop environment supports it.
  `useDesktopBadge(count)` from `apps/react` sets the badge while mounted and
  clears it on unmount.
- **Start at login**: call `desktop.requestPermission("startAtLogin")`. When
  permitted by the OS, Executor starts without showing the dashboard and opens
  allowed apps with their main windows hidden once their server is reachable and
  signed in. Register global shortcuts on startup with their own permission.
  macOS may prompt you to enable Executor in **System Settings › General › Login
  Items**.
- **Microphone, camera and system audio**: `navigator.mediaDevices.getUserMedia`
  uses `microphone` and `camera`; on macOS, OS access for Executor is also
  required. `desktop.audio.system()` works on Windows and macOS 13 or later,
  asks for `systemAudio`, and returns an audio-only `MediaStream` when capture
  succeeds (stop its tracks when done). If macOS blocks capture, it rejects with
  `SystemAudioBlocked`; choose **Open System Settings** in Executor's prompt,
  enable screen and system-audio recording for Executor, and retry. Revoking
  `microphone`, `camera` or `systemAudio` reloads the app's windows, ending any
  active recording.
- **Clipboard**: `navigator.clipboard.readText()` requires `clipboardRead`;
  writing to the clipboard needs no permission.
- **Downloads**: `<a download>` and blob downloads ask where to save, starting
  in Downloads.

## Cloud, self-hosted, and browser install

### Multiple servers and accounts

One Executor desktop installation can hold your local Executor alongside any
number of teams on Executor Cloud and self-hosted servers. Click the account
button at the bottom left of the desktop dashboard to switch accounts. When only
local Executor is set up, choose **Sign in to Executor Cloud** or **Self-hosted
server…** directly in the menu. Once multiple accounts are configured, open
**Add account** to add another server or team (or **Run locally** if local mode
is off).

Each team on a hosted server is a separate account with its own browser sign-in,
session and installed apps. Windows for hosted apps show `App — Team` in their
title bar. For self-hosted Executor, ask your administrator to set up
[serving app web pages](/run/self-host#serving-app-web-pages)
(`EXECUTOR_APP_UI_BASE_URL`, wildcard DNS, TLS and proxy routing for an HTTPS
dashboard). Self-host derives the app base automatically only when its dashboard
hostname is `localhost` or `127.0.0.1`, and the desktop requires the app and
dashboard to use the same protocol.

### Installing from a browser dashboard

On an app page with an available UI in a desktop browser on macOS or Windows,
clicking **Install as app** opens a dialog with desktop download buttons and,
when a valid install link can be built, **Open in Executor** and **Nothing
opened? Update Executor**. Handoff requires an `https://` dashboard, or
`http://` on a loopback host (`localhost`, `*.localhost`, `127.0.0.0/8` or
`[::1]`). Its `executor://install?server=<encoded-dashboard-origin>&app=<app-id>`
link includes `&org=<organization-id>` for hosted teams.

Click **Open in Executor** to hand off to the Executor desktop app:

- For a hosted app, sign in through your browser if prompted and pick the team
  named in Executor's prompt (choosing a different team will not complete the
  install). Existing accounts stay signed in.
- For a local app, start Executor in local mode on this computer and reopen the
  link if prompted.
- For a new install, confirm **Install** in the native dialog and Executor opens
  the app. If it is already installed, the link opens it directly.

## Opening, launchers, and uninstalling

### Launchers

Installing an app creates a launcher on macOS and Windows:

- **macOS**: an `.app` launcher bundle in `~/Applications/Executor Apps/`.
- **Windows**: a Start menu shortcut under **Executor Apps**
  (`%APPDATA%\Microsoft\Windows\Start Menu\Programs\Executor Apps`) with the
  app's icon and taskbar button.

Opening a launcher asks Executor to open the installed app and starts Executor
if needed. If the server is unreachable or your hosted sign-in has ended, the
app opens a recovery screen.

### App links

Installed apps also respond to `executor://app/<server>/<app>` and
`executor://app/<server>/<app>/<path>?<query>`, where `<server>` is the local
server ID or `<server-id>.<organization-id>` for a hosted team, `<app>` is the
app ID, and `<path>?<query>` follows the same path rules as
`desktop.window.open`. Links with a `#` fragment, explicit port or embedded
credentials are refused.

### Uninstalling

You can uninstall a desktop app from the desktop dashboard (**Uninstall**), from
the app's window menu (**\<App name\> → Remove \<App name\>…**, then **Remove**),
or from the **\<App name\> is no longer available** recovery screen
(**Uninstall**). Uninstalling closes the app, clears its saved desktop
permissions on this computer, and removes Executor's managed launcher (moved to
the Trash on macOS, deleted on Windows). The app, its source and its data stay
on the server.

In the desktop account menu, **Sign out of \<team\>** closes that team's windows
and keeps its installed apps (opening one asks you to sign in again). **Remove
from this computer…** also uninstalls that team's apps and clears its saved
account data and permissions on this computer. Both actions attempt to revoke
this computer's desktop sign-in on the server; your team's apps and data stay on
the server.

## Limits and troubleshooting

### Platform differences

- **macOS and Windows**: Desktop builds target Apple silicon and Intel Macs and
  x64 Windows, with launchers, browser handoff, and `systemAudio` capture (macOS
  13 or later on macOS).
- **Linux**: Desktop builds include x64 and arm64 AppImages. You can install and
  open apps inside the Executor desktop dashboard, with `startAtLogin` via
  `$XDG_CONFIG_HOME/autostart` (`~/.config/autostart` by default) on desktops
  that support XDG autostart. Tray and notification display depend on the
  desktop environment. There are no individual Linux app launchers, no browser
  **Open in Executor** handoff, and no `systemAudio` capture.
- **Phones and tablets**: The Executor desktop app is for desktop computers; on
  phones and tablets (including iPad), the browser dialog notes that it is for
  Mac and Windows.

### Security and navigation boundaries

- Top-level navigation inside an installed app stays on the app's origin or its
  server's app sign-in page. An external `http://` or `https://` link (without
  embedded credentials) can open in your system browser only within 5 seconds of
  a user gesture, consumed on the first attempt.
- Installed app windows run sandboxed with no Node integration, and Executor
  exposes the desktop bridge directly only to the top-level page on the app's
  own origin.
- If an app renderer crashes, Executor clears its shortcuts, floating state and
  custom menu-bar title, reloads an app window or closes a crashed popover until
  you open it again, and ends the app after four crashes across its windows
  within 60 seconds.

### Troubleshooting

- **Install as app does not appear**: Check that the app has a successful active
  deploy with `ui/index.html`, that you have access to it, and that its page is
  ready. If you see **Open app** and **Uninstall** in the desktop dashboard, it
  is already installed. On hosted servers, `appUi.location` reports
  `unavailable` (`no_ui` or `no_app_domain`), `pending` while the app domain is
  being prepared, or `failed` when domain setup needs attention; click **Check
  again** if offered.
- **Open in Executor is missing or does nothing**: Use a desktop browser on
  macOS or Windows over `https://` (or `http://` on loopback). If the button is
  shown and nothing opens, install or update
  [Executor desktop](https://executor.sh/#install).
- **Can't reach \<host\>**: Check that the server is running and reachable. For
  a stopped local server, click **Start** on the local Executor recovery page or
  run `executor service start` if you have the CLI, then click **Retry** in any
  app recovery window.
- **Sign in again to open \<App\>**: Click **Sign in again** in the app window,
  or **Sign in** beside the team in the desktop account menu.
- **\<App\> is no longer available**: The app was deleted on the server, you no
  longer have access to it, or its active version no longer has a UI. Click
  **Uninstall** to remove it from this computer.
- **Deploy fails on `ui/icon.svg`**: Remove any `<!DOCTYPE>`, `<script>`,
  `<foreignObject>`, `on*` attribute, XML processing instruction, or `href` /
  `xlink:href` that does not start with `#`, and keep the file at or under
  64 KiB.
- **Global shortcut fails with `ShortcutTaken`**: Check **Permissions →
  Shortcuts in use** for a registration by your own app, or pick a different key
  combination if another app holds it.
- **`desktop.audio.system()` fails with `SystemAudioBlocked` on macOS**: Choose
  **Open System Settings** in Executor's prompt, enable screen and system-audio
  recording for Executor, and retry.
