diff --git a/src/components/control/DaemonStatusBanner.tsx b/src/components/control/DaemonStatusBanner.tsx index 1ba43d60d..03760fcb5 100644 --- a/src/components/control/DaemonStatusBanner.tsx +++ b/src/components/control/DaemonStatusBanner.tsx @@ -2,8 +2,9 @@ import { useState } from "react"; import { X, Radio, WifiOff } from "lucide-react"; +import Link from "next/link"; import { timeAgo } from "@/lib/dates"; -import { APP_SLUG } from "@/config/brand"; +import { APP_NAME, APP_SLUG } from "@/config/brand"; type Props = { daemonNeverSeen: boolean; @@ -33,26 +34,59 @@ export function DaemonStatusBanner({ daemonNeverSeen, daemonOffline, daemonLastP
- {daemonNeverSeen ? "Local daemon not connected" : "Local daemon offline"} + {daemonNeverSeen ? `Finish setup to dispatch agents` : "Local daemon offline"} {!daemonNeverSeen && lastSeen && ( last seen {lastSeen} )}
-

- {daemonNeverSeen - ? "Commands are queued and will run once the daemon connects. Start it on your local machine:" - : "Commands will queue until the daemon reconnects. Restart it on your local machine:"} -

- - - APP_DAEMON_TOKEN=<your-token> ./scripts/{APP_SLUG}-daemon.sh - - -

- The token is the value of APP_DAEMON_TOKEN (or legacy COCKPIT_DAEMON_TOKEN) in your local .env.local. -

+ {daemonNeverSeen ? ( + // First-time setup. A new web user discovers the local-runtime + // requirement here for the first time — the docs path was + // previously a single "start the daemon" command with no mention + // of the three prerequisites (daemon binary, Zellij, ≥1 agent + // CLI). Spell them out so the user can install before hitting + // the wall on first dispatch. + <> +

+ {APP_NAME} dispatches agents from your machine. Three pieces are needed: +

+
    +
  1. + Install Zellij — the terminal multiplexer the daemon injects prompts into. +
  2. +
  3. + Install at least one agent CLI you want to dispatch (Claude Code, Codex, Gemini, or openclaw) and confirm it's on your $PATH. +
  4. +
  5. + Mint a daemon token in{" "} + Settings → Agent tokens + {" "}and run: +
  6. +
+ + APP_DAEMON_TOKEN=<your-token> ./scripts/{APP_SLUG}-daemon.sh + +

+ Until the daemon connects, dispatches are queued and will fire once it pings in. +

+ + ) : ( + // Returning user with a dropped daemon — they already have the + // prerequisites; surface only the restart command. + <> +

+ Commands will queue until the daemon reconnects. Restart it on your local machine: +

+ + APP_DAEMON_TOKEN=<your-token> ./scripts/{APP_SLUG}-daemon.sh + +

+ The token is the value of APP_DAEMON_TOKEN (or legacy COCKPIT_DAEMON_TOKEN) in your local .env.local. +

+ + )}