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

# Keeping flows current

> How merges update flows automatically, what a stale flow means, when to re-map or re-check a flow, and why a Free workspace pauses merge updates.

Flowmaps keeps each mapped flow in step with the default branch. Every merge or direct push to that branch updates the flows it changed, and moves the line numbers of the ones it didn't. You don't need to re-map after each change; re-map and re-check are there for when you want to refresh a flow yourself.

## Merges update flows automatically

When a pull request merges into a repo's default branch, or someone pushes to it directly, Flowmaps works through the new commits in order:

* **Flows the change touches** get a new version at the merge commit. Flowmaps reads what changed in the code those flows cite and updates the affected steps and endings. If the pull request had a [preview](https://docs.flowmaps.ai/pull-requests/previews.md), the merge reuses the flows the preview already worked out.
* **Flows the change doesn't touch** are carried to the merge commit: every cited line range is moved through the diff, so its line numbers stay right, with no credits used.
* **Endpoints the change removes** keep their last flow, marked **endpoint removed**.

Each touched flow gets an entry in its [history](https://docs.flowmaps.ai/flows/history.md) naming the pull request (or "Direct push") and what changed. The [Changes](https://docs.flowmaps.ai/pull-requests/merges.md) page lists every merged pull request and push with the flows it updated.

## What stale means

A flow is **stale** when the commit it was mapped at isn't the head of the default branch. The flow page shows **Behind the branch head** and the Flows list shows **Behind main** (or your branch's name).

A flow is usually behind only briefly, while a merge is being processed. It can stay behind when:

* The last merge's update **ran out of credits**. The flow shows **Out of date** and says "This flow didn't update for the last merge: out of credits". The merge waits, and the flow updates by itself once credits reset or you add credits.
* Someone **cancelled a merge's run**. The flows it hadn't updated get its changes with the next merge that touches them, or a re-map.
* The repo is **past your plan's repo count** after a downgrade. Its flows stay readable, but its merges wait until you upgrade, and its row on **Repos** says "Not updating" and why.
* The workspace is on the **Free plan and paused**, below.

A stale flow's line numbers still belong to its own commit, which the flow names under **Mapped**. Before trusting a line number on a newer branch, compare with `git diff <commit> -- <path>`. Coding agents get the same advice from the MCP tools; see [MCP tools](https://docs.flowmaps.ai/agents/tools.md#stale-flows-and-line-numbers).

## Re-map

A re-map maps flows again at the head of the default branch. Use it to bring a stale flow up to date, or after a change that didn't reach Flowmaps through a merge.

* **A whole repo:** choose **Re-map** on the repo's row on **Repos**.
* **Some flows:** on **Flows**, tick the flows and choose **Re-map** in the selection bar. The dialog says how many flows will be mapped again and in which repos.
* **On new models:** an admin can choose **Re-map with these models** in a repo's **Settings** tab. It shows how many flows aren't yet traced on the current models and the estimate in credits. See [Repo settings](https://docs.flowmaps.ai/account/repo-settings.md).

A re-map uses credits. Anyone in the workspace can re-map; re-mapping with new models is for owners and admins. A flow whose code hasn't changed since it was mapped is recorded as "No code change, so behaviour can't have changed".

## Re-check

A re-check verifies a stored flow again without tracing it afresh. Flowmaps checks each step against the lines it cites, at the commit the flow was mapped at, on the repo's current models, and fixes the steps that no longer hold. It's useful after you change the models a repo uses, or when you want a second check of a flow before relying on it.

**1. Open the flow's menu**

On the flow page, choose **…** (More about this flow) at the end of the view tabs.

**2. Choose Re-check steps**

A note says "Re-checking N steps. The flow stays as it is until the check finishes."

**3. Read the result**

When it's done the note reads "Re-checked: N of M steps verified, K inferred." If any steps changed, it says how many, with a link to show the first one. If it couldn't finish, the flow is unchanged and you can choose **Try again**.

Re-check is for account owners and admins, and it uses credits. It can't check a flow a merge has carried past the commit it was mapped at: the menu still shows **Re-check steps**, but Flowmaps refuses with "A merge carried this flow past the commit it was mapped at; re-map it to check it there". Re-map that flow instead.

## Free plan: merge updates pause after 30 days

On the Free plan, merge updates pause when nobody in the account has opened Flowmaps for 30 days. Your flows stay as they are, and the next visit by anyone in the account restarts the updates, which then catch up on the merges since. Paid plans don't pause.

## Next steps

> [card] [Flow history](https://docs.flowmaps.ai/flows/history.md)
>
> Every version of a flow and the PR that made it.

> [card] [What happens when a PR merges](https://docs.flowmaps.ai/pull-requests/merges.md)
>
> Merges, previews carried into them, and the Changes page.


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