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

# Troubleshoot F[no]

> Fix a missing command, a missing workflow, a refused launch, a refused tool call, a stopped target and red CI, and find more help.

Start with the symptom that you can see. Save the exact command, exit code and error before you change any configuration.

| What you see | Go to |
| - | - |
| `command not found` for fno | [The shell cannot find fno](#the-shell-cannot-find-fno) |
| The harness cannot find `fno:target` | [The harness cannot find fno:target](#the-harness-cannot-find-fnotarget) |
| `Workspace not trusted` | [A worker launch is refused](#a-worker-launch-is-refused) |
| Another refusal from a worker launch | [A worker launch is refused](#a-worker-launch-is-refused) |
| A tool call shows `[fno <guard>]` | [Read an F\[no\] hook refusal](/docs/guides/hook-refusals) |
| A target ended, and it has no PR | [A target stopped before its PR](#a-target-stopped-before-its-pr) |
| `fno do pr status` reads `red` | [CI is red](#ci-is-red) |
| The PR exists, and the target continues | [The PR is open but the run keeps going](#the-pr-is-open-but-the-run-keeps-going) |
| A worker is quiet | [Recover a worker](/docs/guides/recover-a-worker.md) |
| A mux row reads `stale` or `wedged`, or the prune sweep skips a session | [A mux server is stuck](#a-mux-server-is-stuck) |

## The shell cannot find fno

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
command not found
```

The shell cannot find the program. The plugin files can still be installed.

**What to do:**

1. Open a new terminal.
2. Read the installer's message about the tool directory. Check that this directory is on your PATH.
3. Run `fno --version` again. If it still fails, keep the installer output and follow the [installation checks](/docs/install.md#check-your-installation).

## The harness cannot find fno:target

The CLI and the harness plugin are separate parts. A working `fno --version` does not prove that the harness found its workflows.

**What to do:**

1. Start a new harness session after you install the plugin.
2. Check the [prompt form](/docs/reference/harnesses.md#workflow-prompts) for your harness. Each harness has its own form.
3. If you installed with `FNO_NO_WIRE`, run `fno do wizard` in a terminal to finish the plugin setup. Read its proposed actions before you accept them. In an agent session with no terminal prompt, run `fno config setup run --yes` instead.

## A worker launch is refused

A correct command can fail a capacity, account, repository or lane check. The refusal names the check. A launch refusal exits with a nonzero code. This example is from Claude Code and exits with code 2:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Workspace not trusted. Run claude in . once and accept the trust prompt, then retry. (trust read from <HOME>/.claude.json)
```

Your harness has not trusted this directory yet. A new worktree counts as a new directory.

**What to do:**

1. Do what the refusal says. For the example above, run `claude` in that directory once and accept the prompt.
2. To use a directory that the harness already trusts, add `--cwd <PATH>` to the launch.
3. For any other refusal, check that the harness is installed and authenticated, and that the lane [exists for that harness](/docs/reference/harnesses.md#workflow-prompts).
4. Follow the repair that the refusal names. Do not retry a refusal that you do not understand.

A denial of a tool call whose text starts with `[fno` is a hook refusal, not a launch refusal. See [read an F\[no\] hook refusal](/docs/guides/hook-refusals).

## A target stopped before its PR

A target can end with no PR. It can reach its budget cap. It can see no change in the head, PR state, CI and reviews across several checks. It can hold on an open question. It can stop at push because Git has no credentials. You can also cancel it.

**What to do:**

1. Read why it ended. Run `fno agents session peek <WORKER> --lines 10`. If you ran the target in your own session, read the end of that session.
2. If the reason names `git HTTPS has no credentials (fetch exit 4)`, run `gh auth setup-git`. Then continue at step 4.
3. If the target holds on a question, answer the question. [Answer from chat](/docs/guides/answer-from-chat.md) shows how.
4. If the session has stopped, run `fno agents session resume <WORKER>`.
5. Continue the target. In the same worktree, type `/fno:target resume` at the harness prompt. Use the [form for your harness](/docs/reference/harnesses.md#workflow-prompts).
6. To end the target instead, type `/fno:target cancel`.

Do not start a second target on the same node. The first one owns the node, its branch and its worktree.

## CI is red

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno do pr logs <PR>
```

This saves the log of the failing job to `.fno/last-ci.log` and prints its last 40 lines. The exit code is `1` for red. A check that is not a GitHub Actions job has no log, and the command says so.

**What to do:**

1. Read the failure. Fix it in the same worktree, and commit.
2. To see the kind of failure and a mechanical fix, run `fno do pr heal <PR>`. Without `--apply`, it prints `dry run: nothing was changed, nothing was pushed`.
3. Push with `fno do pr push`. If a run is in flight and the push refuses, add `--force-ci-cancel`.
4. Run `fno do pr status <PR>` again.

If the failing check is `fno/review-coverage`, the failure is not in your code. `heal` prints this:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno/review-coverage  review-gate  escalate  not a CI failure; run the review, then `fno do pr status <n>`
```

Run the [review](/docs/guides/review-and-ship.md#check-review) on the current head.

## The PR is open but the run keeps going

An open PR is one part of delivery. CI, the review or the head commit can still be unfinished.

**What to do:**

1. Run `fno do pr status <PR>`, and read its blockers. [Review and ship](/docs/guides/review-and-ship.md#read-the-verdict) explains each part.
2. Compare the head commit with the commit that the review covered.
3. Read the open findings and the configured review rounds.
4. Use [How completion works](/docs/concepts/completion.md) to separate missing evidence from a failed check.

## A mux server is stuck

A mux server can die under a running client, or hold its socket and stop answering. Reading never kills a live server. Only `fno mux kill-server` ends one. Run `fno mux ls`. A stuck server prints one of these rows:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
main: stale (`fno mux kill-server main` removes the dead socket)
main: wedged (holds the socket but not accepting - `fno mux kill-server main` recovers it)
main: alive (unqueryable - `fno mux kill-server main` recovers it)
main: probe failed (<ERROR>)
```

A `fno mux workspace prune` sweep names the same cause for every session it skips:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
skipped unreachable session(s): main (stale: fno mux kill-server main)
```

The row names the cause, and the cause decides the fix:

| Cause | What it means | What to do |
| - | - | - |
| `stale` | The socket file stays, and no listener holds it. | Run the command the row prints. |
| `wedged`, `unqueryable` | The server holds or answers the socket, and no sweep can prune it. | Run the command the row prints. |
| `probe failed` | The check failed on your side, before it reached a server. | Fix the named error. The row names no kill command. |

**What to do:**

1. Run the command the row prints, with the row's name: `fno mux kill-server main`. The command refuses while live unkept panes exist, because ending that server also ends those panes.
2. The killed server stays dead. Start the mux again with `fno mux`. That restart is the recovery the row names.
3. Run `fno mux ls` again. The stuck row is gone.

> **Note:** F\[no] 0.4.8rc2 and later name the cause and the command. The 0.4.7 release and the 0.4.8rc1 pre-release print a bare name and no command. The fix command is the same on those builds. These rows ride 0.4.8rc2 itself, earlier than the behaviors the other pages note.

For a server whose build is older than your client, see [Restart an older mux server](/docs/guides/mux-remote-sessions.md#restart-an-older-mux-server).

## Get more help

Collect these facts first, and remove credentials and tokens from them:

* the output of `fno --version`
* the repository, and the worktree path
* the worker name and the full session ID
* the exact command, its exit code and its error
* the last lines of `fno agents session peek <WORKER>`

Then open an issue at [github.com/fnodotdev/fno/issues](https://github.com/fnodotdev/fno/issues).

> **Warning:** Do not open a public issue for a security problem. Report it through a [private security advisory](https://github.com/fnodotdev/fno/security/advisories).

## Next steps

* [Install and verify](/docs/install.md): confirm that the CLI and the plugin are available.
* [Recover a worker](/docs/guides/recover-a-worker.md): inspect a stopped or quiet worker and keep its work.


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