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

# Read the mux pane frame and set scrollback

> Read the machine, directory, and context fields on a mux pane frame, and set how much history each pane keeps.

The mux is the F\[no] terminal multiplexer. A mux server runs your panes, and the mux client is the window on your screen. Each pane wears a frame: a border whose two edges carry facts about that pane. The bottom edge names the machine and the directory the pane runs in. A narrow pane can drop fields, and an old server can send none. The frame also has a memory side: each pane keeps its last 10,000 lines of output by default. The mux calls this history the scrollback. Each kept line costs memory in every column of the pane.

After this page, you can name every field on a pane frame. You can also predict what a narrow pane drops, and set the history cap.

> **Note:** These features are recent. The 0.4.7 release and the 0.4.8rc1 and 0.4.8rc2 pre-releases do not include the machine and directory fields or the 10,000-line default. Check your version with `fno --version`.

## Before you start

Install F\[no] through the [quickstart](/docs/quickstart.md). Open the mux with `fno`, and create a workspace, as described in [Create a mux workspace and start a session](/docs/guides/mux-workspaces.md).

## What the frame shows

A pane of at least 20 columns and 4 rows wears a frame. A smaller pane keeps the plain divider with no fields.

![Two stacked mux panes. The top frame reads docs-mbp:\~/code/footnote on its bottom edge, and the bottom frame reads docs-mbp:\~/code/footnote/crates](https://mintcdn.com/fno/hpce4m4DqdmUn0dr/images/mx-pane-frame.png?fit=max\&auto=format\&n=hpce4m4DqdmUn0dr\&q=85\&s=4edbbf33fa1e2afac83712925423951a)

The pane's name sits in a tab at the top left. The other top fields sit at the top right: the observers count, then the status, then the model. On the bottom edge, the node and the branch sit at the left. The machine, the directory, and the context sit at the right. An agent session is a pane where a coding agent runs. The tables below mark the fields that only an agent session carries.

The top edge carries the session's facts:

| Field | What it shows |
| - | - |
| Name | The pane's name, set into the top border. A plain shell pane takes its folder's name. |
| Status | The session's status glyph and word from the sideline, the panel beside your panes, such as `● Work`. |
| Model | The model the session runs, such as `opus-5`. Agent sessions only. |
| Observers | A count such as `◉ 2`, shown while another window watches this pane. This field never drops. |

The bottom edge carries:

| Field | What it shows |
| - | - |
| Node | The id of the backlog node the session works, such as `node7`. Sessions with no node carry no value. Agent sessions only. |
| Branch | The git branch at the pane's directory, such as `main`. |
| Machine | The machine the pane runs on, such as `docs-mbp`. This is the short name of the machine that runs the mux server. |
| Directory | The pane's live directory, such as `~/code/footnote`. |
| Context | How much of the model's context window the session uses, such as `49%`. A harness that reports no window prints a token count instead, such as `98k`. Agent sessions only. |

The machine and the directory sit together on the bottom edge, joined by a colon: `docs-mbp:~/code/footnote`.

The directory field reads the shell's live directory, not the folder the pane started in. Type `cd` in the pane. The frame updates at the next layout change, such as after a pane opens, closes, or moves, or after the focus moves between panes. A focus move forces the update at once. The client abbreviates your home folder to `~`.

A plain shell pane shows the machine and the directory too. It carries no node, branch, context, or model field.

## What a narrow pane drops

While a pane wears a frame, the frame drops whole fields in a fixed order. It never cuts a field mid-word.

On the bottom edge, the context drops first, then the machine, then the directory, then the branch. The node name is last: it shortens to fit. On the top edge, the model drops first, then the status word, then the pane's name shortens. The observers count always stays.

To give a pane more width, resize it as described in [Set mux keys and resize splits](/docs/guides/mux-keys.md).

## How much history a pane keeps

Each pane keeps its last 10,000 lines by default. When a pane produces a new line past the cap, it drops its oldest line.

The cap is a memory decision, and the cost grows with the pane's width. A kept line costs every column of the pane, so a 200-column pane costs about 2.5 times an 80-column pane. At 80 columns, 1,000 kept lines cost about 2 MB per pane. In a measured run, 16 panes that each kept 100,000 lines held 3,207 MB in the mux server. At the 10,000-line default, the same panes held 339 MB. The numbers are medians of 30 samples on macOS, measured with the `mux_footprint` example described below.

The cap also bounds how far [`fno mux pane read --lines`](/docs/guides/run-a-fleet) reaches into a pane's history.

## Set the scrollback cap

`mux.scrollback_lines` is an integer. Its default is `10000`, and the smallest value is `1`. The config refuses smaller values. Set it in the `[mux]` block of your `config.toml`:

```toml ~/.fno/config.toml theme={"theme":{"light":"min-light","dark":"min-dark"}}
[mux]
scrollback_lines = 20000
```

The mux server reads the cap once at startup. A config change applies to the next server, not the running one. One command sets it:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config set mux.scrollback_lines 20000
```

The command prints the key, the value, and the file it wrote. It writes the `[mux]` block of your global `config.toml`, `~/.fno/config.toml`. Check the stored value at any time with `fno config get mux.scrollback_lines`. To edit the file by hand instead, write the same lines into it:

```toml ~/.fno/config.toml theme={"theme":{"light":"min-light","dark":"min-dark"}}
[mux]
scrollback_lines = 20000
```

Then restart the server:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno mux kill-server
```

The command ends the server and prints a receipt. A keeper is a helper process that keeps a pane's shell alive while no mux server runs. A pane that a keeper holds survives the restart, and the receipt names it:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
killed session "main" (graceful)
preserved: pane 1 child 21617 keeper 21616 (unnamed)
```

In the receipt, `graceful` means the server shut down on request. The `child` number is the pane's shell process, and the `keeper` number is the helper holding it open.

A pane without a live keeper makes the command refuse. The refusal names each such pane and offers `fno mux kill-server main --end-unkept` to end them deliberately. Ending a pane closes its shell.

Start the mux again with `fno`. The new server adopts the kept panes again and reads the new cap. A kept pane keeps its scrollback history across the restart.

You can also set the `FNO_MUX_SCROLLBACK_LINES` environment variable before you start `fno`, for example `export FNO_MUX_SCROLLBACK_LINES=20000`. It overrides the config key for the server that start spawns. A value of `0` or less in the environment keeps the default.

## Measure pane memory

The `mux_footprint` example measures what panes cost in memory on your machine. It needs a source checkout of F\[no]:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
cargo run --release -p fno --example mux_footprint -- --panes 16 --lines 1000
```

It starts a private mux server and fills each pane with the named number of lines. It prints one line per owner group: the mux server, the keepers, and the shells. The medians vary by machine:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
panes=1 lines=1000 size=80x24 scrollback=default metric=phys_footprint samples=26
group=server pids=1 median_mb=9.9
group=keepers pids=1 median_mb=1.6
group=shells pids=1 median_mb=1.5
```

On macOS it reads the physical footprint. Other systems read resident memory. `--scrollback N` sets the cap for the measured server, so you can compare caps directly.

## No machine or directory on the bottom edge

The bottom edge shows `node · branch`, but no `docs-mbp:~/...` span, after you update F\[no].

A mux server from your old build is still running. An old server does not fill these fields. The client cannot invent them.

**What to do:**

1. Restart the mux server as described in [Set the scrollback cap](#set-the-scrollback-cap). The new server fills the fields.
2. Check the bottom edge again after the mux opens.

## Next steps

* [Set mux keys and resize splits](/docs/guides/mux-keys.md): pane size decides which fields the frame keeps.
* [Run a fleet](/docs/guides/run-a-fleet.md): fill panes with agent sessions whose frames carry status, model, and context.


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