Skip to content
flow

FeaturesTask Manager

Task Manager

See what every Flow terminal is running and what it costs in CPU, memory, energy, disk and network, then jump to a pane or kill a process.

View as Markdown
On this page

The Task Manager is an Activity Monitor for your Flow terminals. It lists every terminal Flow holds, grouped by session, with the processes running in each and what they use. Use it to find the pane whose build is pinning a core, the agent that is eating memory, or a stuck process you want to kill.

Open the Task Manager

  • Click Task Manager in the sidebar's Tools band. Its row shows small CPU and memory sparklines for the last minute, even while the page is closed.
  • Run Go to Task Manager from the command palette (⇧⌘P). It has no default shortcut; bind one in Settings › Keyboard as keyboard.go_to_tasks.
  • From a terminal: flow-cli page tasks.

What it lists

Every terminal Flow holds:

  • each tab of every session group in the sidebar;
  • the flyover's tabs, under Flyover;
  • the terminals of CLI tool pages that are still running their command, under Tools;
  • the Flow agent's terminal, under Flow agent.

The list is a tree of three levels:

  • A session row per group: its sidebar title, the project and pane count, and the totals of its panes. Click it to open or close it.
  • A pane row per terminal: the foreground process's name (the shell itself when the pane is idle), the pane's size, its pid and its figures. A pane's figures add up everything its shell runs, not just the shell, so a pane running cargo build shows the build's CPU. If the pane has processes, a caret opens them.
  • A process row for each process in the pane: the shell first, then everything under it, each with its name, its command line and its own figures.

Processes outside Flow's terminals do not appear. A figure that can't be read shows -.

The figures refresh every 2 seconds. Collection keeps running in the background on every page, so the chart's history is already there when you open the Task Manager.

Metrics and columns

The header's segmented control picks a metric: CPU, Memory, Energy, Disk or Network. Each shows six columns: Name, PID, the metric's headline (with a bar, and the default sort) and three of its own.

MetricHeadlineOther columns
CPUCPU (%CPU as ps reports it)CPU time, Threads, Age
MemoryMemory (physical footprint)RSS, FDs, Scrollback
EnergyImpactWakeups (per second), Avg impact, Age
DiskDisk I/O (read plus written per second)Read, Written (per second), FDs
NetworkNetwork (received plus sent per second)Received, Sent (per second), Sockets
  • Impact is an estimate in the spirit of Activity Monitor, not a measurement: the CPU rate, plus wakeups per second divided by 10, plus disk and network bytes per second divided by 1 MiB. It shows - until there are two samples to compare.
  • Avg impact is the same score over the process's whole life, so it is available at once.
  • Scrollback is how much the pane's scrollback holds. FDs and Sockets count open file descriptors and sockets.
  • Network figures are sampled at most every 10 seconds, and only while the page is showing. A process that the sample doesn't cover shows -, and the Network chart has gaps for the time the page was closed.

To work with the columns:

  • Click a column header to sort by it; click again to flip the order. Name and PID start ascending, figures start descending.
  • Drag the edge of a header cell to resize the column.
  • Right-click the header to show or hide columns. Name never hides.
  • On a narrow page columns hide in steps: the metric's last column first, then PID, then its other columns. Name and the headline always stay.

Filter

Click the Filter panes field and type. A session whose sidebar title or project matches shows whole. Otherwise a session shows only its matching panes, and a pane matches on its process name, the name of any process under it, or any of their pids. Matching is a case-insensitive substring. With no match the list says "No panes match …". ↩ or Esc leaves the field.

Actions

  • Select a pane or process row by clicking it.
  • Go to pane: hover a pane or process row and click its Go to pane button, or double-click the row. Flow shows the terminal where it lives (its group and tab on the Sessions page, the flyover, a tool page or the Flow agent's window) and confirms with "Jumped to PROCESS in SESSION".
  • Kill: hover a row and click Kill. The row asks "Kill NAME (PID)?" with Cancel and Kill; only the Kill button kills. On a pane row it targets the pane's foreground process (the shell when the pane is idle); on a process row, that process. Flow sends SIGTERM and shows "Killed NAME (PID)" or the error. Esc or Cancel dismisses the question, and so do selecting another row, changing the metric or filter, or leaving the page.
  • Live / Paused: the header's Live toggle stops and restarts collection. Paused, the rows, the chart and the sidebar sparklines freeze. Flow always starts in Live.
  • Expand / collapse all: the header's chevron button closes every session and pane while any session is open, and opens every session when none is.

The chart

Under the table, a chart shows the current metric by session over the last one to five minutes (the window grows with the history Flow has collected). Pick Lines (one line per session) or Stacked (one bar per sample, sessions stacked bottom-up) with the control in its caption. Each session keeps the same colour in its row's dot, the chart and the legend.

Click a legend chip to highlight its session (the other sessions fade) and click it again to show all sessions. Clicking a session in the plot highlights it too, and scrolls the list to its row.

The footer totals every listed pane (panes, CPU, RSS, FDs and scrollback) and, at the right, Flow's own pid, CPU and memory.

Settings

KeyTypeDefaultEffect
tasks.chart_viewstringlineslines or stacked.
tasks.hidden_columnsJSON objectnone hiddenHidden columns per metric, for example {"cpu": ["threads"]}.
tasks.column_widthsJSON objectthe built-in widthsColumn widths you dragged, by column name, for example {"title": 260}.

Flow writes these when you change the chart view, hide a column or resize one. The metric, sort, filter and Live state are not saved.

From the command line

sh
flow-cli read tasks                  # every pane with its figures (add --json for the session tree)
flow-cli tasks-focus memory          # cpu, memory, energy, disk or network
flow-cli tasks-chart-view stacked    # lines or stacked
flow-cli tasks-select KEY            # highlight a session; keys are in read tasks --json under groups
flow-cli tasks-kill PID              # raises the same Kill question in the app; it does not kill by itself

See flow-cli for the rest of the CLI.

Limits

  • Only Flow's own terminals and their processes are listed.
  • Kill sends SIGTERM only. A process that ignores it keeps running.
  • Energy figures are estimates.
  • Rates (Impact, wakeups, disk and network) need two samples, so they read - right after launch or after a pause.
Sources

Written from these files in the Flow app repo

  • src/tasks.rs
  • src/tasks_ui.rs
  • src/pages.rs
  • src/cli_tools.rs
  • src/bin/flow-cli.rs