> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Recover workers after a Claude restart

> What F[no] does when the Claude daemon restarts, how you check it, and how you revive a row the pass failed.

> After a Claude Code update restarts the Claude daemon, F\[no] revives your stalled thread workers within two minutes. The pass tells you which rows it revived and which rows it did not revive.

When Claude Code auto-updates, its background daemon restarts. The new daemon adopts your running workers, but each worker's recorded job identity moves: new process ids and new start times. Your F\[no] registry rows then read as stalled: each row points at a job that no longer exists, and the workers stop taking turns.

The F\[no] daemon watches for that restart. It notices the change and revives each stalled Claude thread worker through the same revival that [manual recovery](/docs/guides/recover-a-worker.md) runs by hand. You do nothing. This page tells you what happens, how to check the revival, and what to do about a row the pass did not revive.

This page covers Claude thread workers only. The pass does not read pane workers or other harnesses. Recover those by hand with [Recover a worker](/docs/guides/recover-a-worker.md).

These are the nouns this page uses:

* A worker is one agent session on one task. Your registry holds one row per worker.
* A thread worker runs as a background session. [Run a fleet](/docs/guides/run-a-fleet.md) compares the lanes.
* Stalled means a row points at a job that no longer exists.
* The Claude daemon is the background process that a Claude Code update restarts.
* The F\[no] daemon runs the fleet's scheduled jobs, including this watch.
* The roster is the Claude daemon's own list of its running jobs.
* The pass is the revival run that follows one stamp change.
* A lead is the worker that spawned another worker and reads its failure mail.
* A node is one backlog item that a worker drives.
* The mux is the F\[no] terminal multiplexer. A pane worker runs in one of its panes.
* Boot revival is the pass that runs after a machine reboot.
* The receipt is the JSON file that the watch writes after each pass.

## Before you start

* Install F\[no] through the [quickstart](/docs/quickstart.md).
* Run F\[no] 0.4.8rc2 or later. That release and every release after it carry the watch. Earlier releases, including 0.4.7 and 0.4.8rc1, do not. Check your version with `fno --version`. It prints the version after the name, for example `fno 0.4.5`.
* The F\[no] daemon runs on the machine. If no daemon runs, an `fno agents` command starts the daemon, and it keeps running.
* Your workers run on the Claude harness as thread workers. [Harnesses](/docs/reference/harnesses.md) explains the substrates.

## What F\[no] does by default

Every 120 seconds, the daemon reads one stamp from the Claude daemon's roster. The stamp holds three values: the supervisor process id, its start time, and the highest worker version in the roster. Any change in the three is one restart.

On the change, the daemon runs one revival pass. Each stalled row returns to the thread substrate with its own session id, its transcript, and its files. Lead rows revive first, so their teams re-seat under them. The pass writes its result to the receipt. A revived worker whose node has an open PR also gets a wake message with that PR's number, address, and CI verdict.

A machine reboot runs boot revival's pass. While boot revival's hold stands, the restart pass skips. The same rows never see two passes.

A held or failed row misses the two-minute window. [Holds and skips](#holds-and-skips) and [Revive a failed row](#revive-a-failed-row) cover both.

## Check the revival

> **Note:** The output blocks in this page come from a sandbox run of release 0.4.8rc2. The session listing row is live output, with the name and the session id masked.

Within two minutes of the restart, look at your rows:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
List my fleet's session rows and point out the ones that stalled around the Claude restart. Say which are reachable again.
```

### What the agent runs

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents session list
```

Your stalled rows read `reachable` again, with the same session ids and the same worktrees as before. The listing prints one JSON object per worker. This is one row of the listing, with the name and the session id masked:

```json theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  "name": "<WORKER>",
  "harness": "claude",
  "substrate": "thread",
  "harness_session_id": "<SESSION_ID>",
  "progress": "advancing",
  "reachability": "reachable",
  "liveness": "alive",
  "status": "writing",
  "node": null
}
```

The `reachability` value returns to `reachable`, and the `harness_session_id` matches the session you had before the restart.

Then read the watch's row in the loop table. The loop table is the output of `fno agents loop control table`, one row per scheduled job of the daemon:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents loop control table
```

Find the row named `claude_restart_watch`. It names what the last pass did. Right after a pass, the row reads:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
claude_restart_watch ok        5s ago acted=0 via=daemon daemon restart revived 2 worker(s)
```

The row count after `revived` is the number of rows the pass attempted, revived or failed. The line lasts until the next tick, two minutes later. Between passes, the row returns to steady state:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
claude_restart_watch ok       114s ago acted=0 via=daemon daemon incarnation unchanged
```

The pass also writes the receipt at `~/.fno/agents/claude-restart-revival.json`. Read the file for the per-row verdicts:

```json theme={"theme":{"light":"min-light","dark":"min-dark"}}
{"daemon":{"supervisor_pid":11872,"proc_start":1794346014844936,"version":null},"at_unix":1794349535,"rows":[{"name":"doc-lead","outcome":"failed","reason":"claude --bg --resume aaaaaaaa-doc-lead --name doc-lead exited 1"},{"name":"doc-worker","outcome":"failed","reason":"claude --bg --resume bbbbbbbb-doc-work --name doc-worker exited 1"}],"done":true}
```

Each row carries an `outcome` of `revived` or `failed`, and a `reason`. A failed row's reason says why the revival failed. A revived row's reason is the command that revived it. A missing file means the watch has not run a pass yet: no stamp change since the daemon started.

## Revive a failed row

A row that fails its revival mails the lead that spawned it. The mail comes from `fno/claude-restart`, and it names the reason, the command that revives the row, and the command that releases its stale claim. Read your lead's mail:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Read my lead mailbox and show me any mail from fno/claude-restart. Quote each row it names and the reason.
```

### What the agent runs

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents mail unread --name <LEAD>
```

Name the lead that spawned the failed worker in place of `<LEAD>`. The command prints the message as one JSON object, and the message names its recipient in the `to` field. This one comes from a sandbox run of release 0.4.8rc2, unmasked:

```json theme={"theme":{"light":"min-light","dark":"min-dark"}}
[{"id": "fmail-cd66281c1fbc", "thread": "fmail-cd66281c1fbc", "from": "fno/claude-restart", "to": "doc-lead", "kind": "send", "ts": "2026-11-10T22:25:35Z", "in_reply_to": null, "body": "claude daemon restart revival could not bring back doc-worker (node none).\nreason: claude --bg --resume bbbbbbbb-doc-work --name doc-worker exited 1\nre-spawn: fno agents session resume doc-worker"}]
```

The first line of the body names the row and its node. The `reason` line says why the revival failed. The `re-spawn` line revives the row by hand:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents session resume <WORKER>
```

Name the worker in place of `<WORKER>`. [Recover a worker](/docs/guides/recover-a-worker.md#resume-a-stopped-worker) explains what resume keeps and what it prints. The messages stay unread until your agent acks them, so a second read shows them again.

When the row drives a node, the mail also carries a `stale claim to release` line. When you continue the work, run the `re-spawn` line. When you abandon the work, run the claim line instead. Then the board stops counting a ghost driver.

### Holds and skips

Two conditions hold a row back, and both land in the loop table with a reason.

Your project's autonomy mode can hold an unattended restart. The default mode is `balanced`. The `balanced` and `yolo` modes allow the pass. The `ask` mode holds it unless its `allow` list names `restart`. An `ask` project that wants the pass names `restart` in the block:

```toml theme={"theme":{"light":"min-light","dark":"min-dark"}}
[autonomy]
mode = "ask"
allow = ["restart"]
```

The block lives in your project's `.fno/config.toml`, or in `~/.fno/config.toml` for every project. A held row reads `failed` in the receipt, with the reason `autonomy.mode holds unattended restart`, and its lead gets the mail.

Right after a machine reboot, boot revival's hold can still stand. The restart pass then skips with `boot revival's hold is still standing`. The next stamp change runs a fresh pass.

The pass runs once per stamp change. It does not retry a held row at the next tick.

## How it works

The pass revives a row on provable staleness alone. The evidence comes from the Claude daemon's own roster, the list of its running jobs:

| Evidence | What it means | What the pass does |
| - | - | - |
| The row's session is absent from a readable roster | The new daemon dropped the row. | Revive. |
| The listed job's pid answers nothing | The worker process is gone. | Revive. |
| Both sides recorded a start time, and they differ | The listed job is a later copy of the row's job: the takeover signature. | Revive. |
| The roster is unreadable, or a pid or start time is missing | The evidence is unknown. | Leave the row alone. |

Unknown evidence never fires a revival, so a half-read roster cannot revive a live worker.

The pass considers only rows that expect a live backend. The row uses the Claude harness and the thread substrate, with no mux pane. Its status is not a terminal stop, and its node's work is not closed. A row that is already spawning or restarting stays alone, and a done node's worker stays down.

The stamp itself is the Claude daemon's identity: supervisor pid, supervisor start time, and the highest worker version in its roster. The daemon compares one stamp against the last and acts once per change.

## Limitations

### Only Claude thread rows revive

The pass reads Claude thread rows only. A pane worker is not a thread row, so the pass never revives it. Other harnesses carry their own restart behavior. Recover both by hand with [Recover a worker](/docs/guides/recover-a-worker.md).

### A wake message needs an open PR

The wake message carries the node's PR number, its address, and the PR's CI verdict. A worker whose node has no open PR gets no wake message. The revival itself does not depend on it.

### The first observation records only

The daemon's first stamp read after it starts records the stamp and runs no pass. A restart that happened before the daemon started is boot revival's job, not the watch's.

## Next steps

* [Recover a worker](/docs/guides/recover-a-worker.md): inspect, attach to, resume, stop, or remove a worker by hand.
* [Message agents](/docs/guides/message-agents.md): send a follow-up after a worker resumes.
* [Troubleshooting](/docs/troubleshooting.md): fix a refused start, a stopped target, or red CI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.