# offline

The machine is not connected: it is off or asleep, or cmdop is not running on it, or its
link ended before it answered (then the call may have run there). Only its owner can
bring it back; do not retry until `machines_list` shows it online. Sent by the server,
never by a machine.

**In short:** Over MCP the tool result is an error with the text `offline: <message>`, and a second line `details: …` when there are details. Over HTTP the answer is `{"error": {"code": "offline", "message": "…"}}`.

## What to do

Stop and tell the user which machine is offline and when it was last seen (`details.last_seen`, unix seconds; with no machine named, `details.machines` lists every known one). Only its owner can bring it back: wake the computer, or start cmdop on it. Do not retry until `machines_list` shows it online.

When `details.during_call` is `true`, the link ended while the call ran: the call may have run on the machine. Check its result there (`fs_stat`, `journal_search`) before running it again.

`details.reason` is `stale` when the machine is still connected but has not been heard from for more than 50 seconds (asleep, frozen or cut off), and `no_link` when it is not connected at all. The answer to both is the same: tell the user, and wait for `machines_list` to show it `online`.
