docs: clarify mac gateway launch behavior
This commit is contained in:
@@ -9,8 +9,9 @@ read_when:
|
|||||||
# Gateway on macOS (external launchd)
|
# Gateway on macOS (external launchd)
|
||||||
|
|
||||||
Clawdbot.app no longer bundles Node/Bun or the Gateway runtime. The macOS app
|
Clawdbot.app no longer bundles Node/Bun or the Gateway runtime. The macOS app
|
||||||
expects an **external** `clawdbot` CLI install and manages a per‑user launchd
|
expects an **external** `clawdbot` CLI install, does not spawn the Gateway as a
|
||||||
service to keep the Gateway running.
|
child process, and manages a per‑user launchd service to keep the Gateway
|
||||||
|
running (or attaches to an existing local Gateway if one is already running).
|
||||||
|
|
||||||
## Install the CLI (required for local mode)
|
## Install the CLI (required for local mode)
|
||||||
|
|
||||||
@@ -38,6 +39,8 @@ Manager:
|
|||||||
Behavior:
|
Behavior:
|
||||||
- “Clawdbot Active” enables/disables the LaunchAgent.
|
- “Clawdbot Active” enables/disables the LaunchAgent.
|
||||||
- App quit does **not** stop the gateway (launchd keeps it alive).
|
- App quit does **not** stop the gateway (launchd keeps it alive).
|
||||||
|
- If a Gateway is already running on the configured port, the app attaches to
|
||||||
|
it instead of starting a new one.
|
||||||
|
|
||||||
Logging:
|
Logging:
|
||||||
- launchd stdout/err: `/tmp/clawdbot/clawdbot-gateway.log`
|
- launchd stdout/err: `/tmp/clawdbot/clawdbot-gateway.log`
|
||||||
|
|||||||
@@ -5,9 +5,11 @@ read_when:
|
|||||||
---
|
---
|
||||||
# Gateway lifecycle on macOS
|
# Gateway lifecycle on macOS
|
||||||
|
|
||||||
The macOS app **manages the Gateway via launchd** by default. The launchd job
|
The macOS app **manages the Gateway via launchd** by default and does not spawn
|
||||||
uses the external `clawdbot` CLI (no embedded runtime). This gives you reliable
|
the Gateway as a child process. It first tries to attach to an already‑running
|
||||||
auto‑start at login and restart on crashes.
|
Gateway on the configured port; if none is reachable, it enables the launchd
|
||||||
|
service via the external `clawdbot` CLI (no embedded runtime). This gives you
|
||||||
|
reliable auto‑start at login and restart on crashes.
|
||||||
|
|
||||||
Child‑process mode (Gateway spawned directly by the app) is **not in use** today.
|
Child‑process mode (Gateway spawned directly by the app) is **not in use** today.
|
||||||
If you need tighter coupling to the UI, run the Gateway manually in a terminal.
|
If you need tighter coupling to the UI, run the Gateway manually in a terminal.
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ read_when:
|
|||||||
# Clawdbot macOS Companion (menu bar + gateway broker)
|
# Clawdbot macOS Companion (menu bar + gateway broker)
|
||||||
|
|
||||||
The macOS app is the **menu‑bar companion** for Clawdbot. It owns permissions,
|
The macOS app is the **menu‑bar companion** for Clawdbot. It owns permissions,
|
||||||
manages the Gateway locally, and exposes macOS capabilities to the agent as a
|
manages/attaches to the Gateway locally (launchd or manual), and exposes macOS
|
||||||
node.
|
capabilities to the agent as a node.
|
||||||
|
|
||||||
## What it does
|
## What it does
|
||||||
|
|
||||||
@@ -26,11 +26,11 @@ Planned:
|
|||||||
|
|
||||||
## Local vs remote mode
|
## Local vs remote mode
|
||||||
|
|
||||||
- **Local** (default): the app ensures a local Gateway is running via launchd.
|
- **Local** (default): the app attaches to a running local Gateway if present;
|
||||||
|
otherwise it enables the launchd service via `clawdbot daemon`.
|
||||||
- **Remote**: the app connects to a Gateway over SSH/Tailscale and never starts
|
- **Remote**: the app connects to a Gateway over SSH/Tailscale and never starts
|
||||||
a local process.
|
a local process.
|
||||||
- **Attach‑only** (debug): the app connects to an already‑running local Gateway
|
The app does not spawn the Gateway as a child process.
|
||||||
and never spawns its own.
|
|
||||||
|
|
||||||
## Launchd control
|
## Launchd control
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user