Skip to main content
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 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. 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 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.
  • 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 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 and 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:

What the agent runs

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:
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:
Find the row named claude_restart_watch. It names what the last pass did. Right after a pass, the row reads:
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:
The pass also writes the receipt at ~/.fno/agents/claude-restart-revival.json. Read the file for the per-row verdicts:
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:

What the agent runs

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:
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:
Name the worker in place of <WORKER>. Recover a 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:
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: 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.

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