# `cli.watch_timed_out`

A `jadpo watch` command's `--timeout` passed before `jadpo dev` ran what it watches as often as it waited for.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

An agent starts `jadpo watch` in the background, triggers a flow, and
waits for the command to end. When the flow never reaches the code
watched, or `jadpo dev` isn't running, nothing matches. Ending with
an error, rather than with nothing, tells the agent the flow didn't run
that code, so it doesn't read an empty result as success.

## What it looks like

Nothing is running the app, so nothing in `app.jadpo` runs within the
timeout:


```sh
jadpo watch file app.jadpo --timeout 1ms
```

```text
jadpo watch, file app.jadpo, until stopped, for 1ms
Waiting for `jadpo dev` to run it; values are shown in full, on this machine
only.
error: No run of file `app.jadpo` in 1ms
  reason: `jadpo watch` sees what `jadpo dev` runs on this machine, and it ran nothing that matched before the timeout.
  next: Check `jadpo dev` is running, trigger the flow after starting the watch, or give a longer `--timeout` (agent)
  rule: cli.watch_timed_out
  help: https://jadpo.dev/docs/errors/cli.watch_timed_out
```

`(agent)` at the end of the `next:` line means your coding agent can make
the fix itself.

## How to fix it

**If `jadpo dev` isn't running**, start it, then start the watch before
triggering the flow:

```sh
jadpo dev
```

With `jadpo dev` serving the app, a watch started before the flow sees
each run of the code it names.

**If the flow doesn't reach the code**, watch the route it starts at, or
the domain, to see where it goes instead:

```sh
jadpo watch domain planning --once --timeout 30s
```

It now shows the first run of any of the domain's code, so you can see
which step the flow reached.

## Related

- [Watching code run: `jadpo watch`](/docs/watching-code-run-jadpo-watch.md)
- [The request timeline in `jadpo dev`](/docs/the-request-timeline-in-jadpo-dev.md)
