---
title: 'Find runs: the runs list, search and filters'
description: 'Find a recorded run in Studio by status, agent, text, tool, model, tokens, cost, tag or id: the runs list, its filters, full-text search, the ⌘K palette and the API behind them.'
url: https://weftgo.dev/docs/observe/studio/runs/
type: how-to
sources:
  - 'weft/CHANGELOG.md:49 (0.20.0: ⌘K finds sessions and traces by id prefix; compare N; own_usage / delegated_usage)'
  - 'weft/AGENTS.md:302, 305 (TraceQuery.IDPrefix, SessionQuery.IDPrefix: byte for byte)'
  - 'weft/studio/web/src/lib/delegation.ts:46-63 (CHILDREN_PAGE 100; moreChildren: +N more · open the list, + more · open the list)'
  - weft/studio/web/src/components/studio/runs-table.tsx:959 (the children read, limit CHILDREN_PAGE), 980-1009 (the more line links runsLink({parent}))
  - weft/studio/README.md:2999-3004 (the first 100 children, one level deeper, grandchildren read when opened, the more line)
  - weft/studio/README.md:2044-2093 (status words), 2094-2099 (the runs list), 2423-2460 (search and the palette), 2493-2498 (the URL keys of the runs list)
  - weft/studio/web/src/routes/index.tsx:3 (/ redirects to /runs)
  - weft/studio/web/src/routes/runs.index.tsx:98 (the page), 293-363 (follow), 366-425 (keys), 441-754 (toolbar, + filter, chips), 797-977 (empty states, load more)
  - weft/studio/web/src/lib/run-filters.ts:14-32 (RUN_STATUSES, STATUS_PICKS), 63-98 (since/until)
  - weft/studio/web/src/lib/status.ts:1-46 (the six words and their hints)
  - weft/studio/web/src/lib/error-kind.ts:341-458 (kind chip, problem badges)
  - weft/studio/web/src/lib/delegation.ts:110-116 (top-level only / with child runs)
  - weft/studio/web/src/lib/finder.ts:1-41 (the palette's finding rules, ID_PREFIX_MIN 4)
  - 'weft/studio/web/src/lib/keys.ts:159-212 (STUDIO_KEYMAP: the run page and runs list keys)'
  - weft/studio/web/src/components/studio/runs-table.tsx:590-637 (columns), 881-926 (the children chip)
  - 'weft/studio/search.go:14-146 (GET /api/search: parameters, min_cost and sort=cost over the first 2,000)'
  - weft/obsdb/search.go:14-40 (Searcher, SearchQuery)
  - 'weft/obsdb/problems.go:45-48 (Repaired: execute_tool spans carrying weft.tool.args_repaired true, reported since 0.20.0, U23.1), 176-177'
  - weft/studio/web/src/lib/title.ts:249-259 (runTitle's fallbacks)
  - weft/studio/web/src/lib/stopped-by.ts:85-89, 94-117 (the cancel cause beside a status word; the list's stop line)
  - 'weft/studio/web/src/lib/status.ts:8-27 (the parked details: awaiting only against a complete turn list), 64-87 (statusOf: awaiting a decision, pending · no resume recorded here, a resume, if any, is not linked yet, decided · resumed in tN, next turn tN (decided or dropped))'
  - weft/studio/web/src/lib/status.ts:73-207 (parked → <id>…, decided by a later turn the record does not link)
  - weft/studio/web/src/lib/error-kind.ts:68-87 (tool error kinds, first seen)
  - weft/studio/web/src/lib/run-filters.ts:305-310 (≥ $ local only under pricing)
  - weft/studio/web/src/components/studio/runs-table.tsx:288-351 (the token hover card), 811-823 (the session cell's ·t<turn>)
  - 'W11-tag3, v0.20.2: weft/studio/web/src/components/studio/runs-table.tsx:301-323 (the delegated tokens on their own line, each pair broken only at its dot), 746-750 (the run column 14, 16, 20 rem; 14 rem again from 1536 px); weft/studio/web/src/components/studio/dot-wrap.tsx:1-20; weft/studio/web/src/routes/runs.index.tsx:440-443, 589-600 (the refresh button outside the wrapping row); weft/CHANGELOG.md:14 (0.20.2)'
  - weft/obsdb/search.go:43-48 (a content-off run's error and tool names still match)
  - weft/studio/api.go:363-374 (problem fields; log_warn and log_error on the run document only)
  - weft/AGENTS.md:254-267 (runs filters, search, capability search, obsdb.Searcher backends)
  - weft/CHANGELOG.md:293 (children_count, ⑂ n, ?parent=), 298 (id_prefix, ⌘K exact match), 308 (palette substrings), 310 (one-line toolbar, + filter), 341 (stopped_by on the row), 343 (titles, not ids; weft runs PROMPT), 345 (error kinds and problem counters), 353 (one status vocabulary), 925 (search and filters as URL chips), 1017 (GET /api/search), 1032-1038 (obsdb.Searcher), 1040 (prompt_preview), 5398, 5462 (the first runs list)
  - 'observed: weft studio v0.17.0 over weft-arena''s offline seed — /runs, /runs?q=refund'
---

# Find runs: the runs list, search and filters

The runs list (`/runs`, the page Studio opens on) lists the recorded runs newest first, one row each. The heading counts the top-level runs. You narrow the list from the toolbar: a text search, an agent, a status, more filters behind **+ filter** (its button counts the ones set), the top-level toggle, and a **? keys** chip that lists the keys. Each filter is a removable chip and a key in the URL, so a filtered list is a link. To jump to one run by its id, press ⌘K (or Ctrl+K) and paste the id.

![weft Studio's runs list: each run's status, prompt and id, agent, steps, tokens, cost, start and duration, newest first, with a checkbox per row to pick runs to compare](https://weftgo.dev/docs/_astro/studio-runs.light.CFMu-KA1.webp)

*The runs list: status, the prompt as the title with the id under it, agent, steps, tokens, cost, start and duration.*

## The runs list

A row is one [run](https://weftgo.dev/docs/reference/glossary/#run). Its columns:

| Column | Shows |
|---|---|
| status | A dot and a [status word](#status-words) |
| run | The title, then the id (copyable) and the public id; under them what stopped the run, the error of a failed run, and [problem badges](#problem-counters) |
| agent | The agent's `weft.Name`; "unnamed agent" when it has none |
| session | The thread session the run is a turn of: its short id and turn (`s_01M567…RBQA ·t3`), linked to the session |
| model | `provider/model` |
| steps | Steps taken |
| tokens in / out | Input and output tokens; when the run reports them, a hover card splits out the cached, cache-write and reasoning tokens |
| cost | The run's own cost at read time, under the `pricing` capability ([See what a run cost](https://weftgo.dev/docs/observe/studio/cost/)) |
| started, duration | Relative start (absolute on hover), and the run's length; elapsed so far while it runs |

The title is the run's own prompt: the turn's question, cut to 200 runes in the API's `prompt_preview`. Without a prompt the title falls back to the agent (drawn "agent · (content not captured)" when the run was recorded with content off), else "(content not captured)", else the id. A run that ended other than by the model answering (a `StopWhen`, a park, a budget) says what stopped it under the title, from the row's `stopped_by`: "parked on an approval", "max steps reached", "usage limit reached". The list shows the word alone (its hover is the hint) and skips a run that succeeded on `final_answer`; [the stop chip](https://weftgo.dev/docs/observe/studio/run-page/#the-stop-chip) lists every word and the detail the run page adds.

The list is top-level only by default: a [child run](https://weftgo.dev/docs/reference/glossary/#child-run) is on its parent's page. Press **top-level only** to switch to **with child runs** (`?subagents=all`): the loaded rows are drawn as trees, each child under its parent. A run that started others carries a "⑂ n" chip (the failed ones counted in red); it opens that run's children under it, read through `?parent=<id>`. It draws the first 100 children, one level deeper; a grandchild is read when its own chip is opened. Past them a line links the full list at `/runs?parent=<id>`: `+N more · open the list` when the row counts more, or `+ more · open the list` when the read has a next page the count does not show. "⑂ ?" means the children could not be counted.

The refresh button at the end of the toolbar's first row reads the list again; the filters wrap among themselves, never the button onto a row of its own. A filter that matches nothing says "No runs match these filters." with **clear filters**; an empty database says how to record runs instead.

With an agent filter set, **follow** streams that agent's run frames from `/api/live?agent=` and updates the list as runs start and finish. **load more** reads the next page; the line beside it says "showing N of total".

Keys on the list: `/` focuses the search box, `j` and `k` (or ↓ ↑) move the selection, Enter opens the selected run, `?` lists every key. Clicking a row opens the run. On a narrow window the quieter columns fold away, in this order: session and model (below 1536 px), steps, tokens and cost, started and agent. From 1280 to 1800 px with the sidebar open every column stays in the frame: the status, tokens and cost wrap rather than widen the table, a token pair breaks only at its dot ("20 in ·" over "10 out"), and a run that delegated shows its subagents' tokens on a second line under its own. The run column is 14 rem wide, 16 rem from 1360 px and 20 rem from 1680 px, and 14 rem again from 1536 px, where the session and model columns join.

The same rows are `GET /api/runs` (top-level only; `all=1` adds every child run, `parent=<id>` lists one run's children), and `weft runs` prints them in a terminal with PROMPT and STOPPED BY columns ([The weft command](https://weftgo.dev/docs/observe/cli/)).

## Status words

One status vocabulary is shared by the runs list, the run header, a session's turns, the live table and the devtools panel. Four words are stored; `parked` and `cancelled` are read at request time, never stored.

| Word | Means |
|---|---|
| `running` | The recorder's heartbeat is fresh |
| `succeeded` | The run finished with a result |
| `failed` | The loop returned an error; a kind chip such as `[max_steps]` names it |
| `interrupted` | Stored as running, but nothing was heard for over 30 s: a crash or a kill |
| `parked` | Succeeded with calls pending at the [approval boundary](https://weftgo.dev/docs/reference/glossary/#approval-boundary), and no resume known |
| `cancelled` | Failed with error type `cancelled`: the run's context ended. Its cancel cause is in the hover. Beside the status word (the run header, the devtools panel) the stop chip reads the cause alone; the runs list's stop line reads `cancelled · <cause>` |

A parked run that was resumed reads `parked → t2`, a link to the turn that resumed it: the row's stored `resumed_by` (set when the resume passed [`weft.ResumeOf`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2#ResumeOf)), else a later turn of its thread session. With no turn number to name, the word carries the resuming run's id cut to 8 characters ("parked → 3f9a1c2b…"). A plain `Generate` resume without `ResumeOf` has no link, so its parked run keeps reading `parked`. The detail under a parked word says how sure it is:

| Detail | Shown when |
|---|---|
| `1 call awaiting a decision` | A session turn read against its session's whole turn list, where a resume could not be missed |
| `1 call pending · no resume recorded here` | Any other session turn: the page did not read every later turn |
| `1 call pending · a resume, if any, is not linked yet` | A plain `Generate` run, with no session to look in |
| `1 call decided · resumed in t2` | The stored `resumed_by` link names the resume |
| `1 call · next turn t2 (decided or dropped)` | Only a later turn of its session was found. After a `Branch`, a `Rollback` or an undecided `Send`, that turn is no resume: it decided the calls or dropped them |

Under the `parked` filter, a row the page reads as decided only because a later turn of its session followed it says "decided by a later turn the record does not link".

The status filter offers all six. `parked` lists the open parks only (pending calls, no run whose `resumed_from` names it), and `cancelled` the failed runs whose error type is cancelled; both are applied by the server, so paging and the total count the filtered set.

## Problem counters

A run row carries counters Studio derives at ingest from the run's spans, and the list badges a run only when it had a problem; a clean run draws nothing. Hover a badge for its words.

| Badge | Counter | Means |
|---|---|---|
| `↻2` | `attempts_retried` | Model attempts that failed and were retried |
| `⇄` | `fallbacks` | Model calls a fallback model answered |
| `✗3` | `tool_errors` | Tool calls that ended in an error (a `RETRY`, a denial or a cancellation is not counted) |
| `✋` | `denied` | Calls denied, or held at a park |
| `✂1` | `truncated` | Tool results cut by the result cap |
| `⚒` | `repaired` | Tool calls whose arguments a model middleware repaired (`mw.RepairJSON`, `Reporter.Repair`); since 0.20.0, before which the core reported none |
| `⚠1` | `tap_panics` | Observer panics the run contained |
| `E1`, `W2` | `log_error`, `log_warn` | App log lines at ERROR and WARN under the run (`≥` when the count hit the reader's cap); counted when the run itself is read, so they show on the run header, not in the list |

A failed run also gets a kind chip in brackets from its `error_type`, such as `[max_steps]`. The run header spells the same counters out beside the step count, with each tool error's kind in the order first seen ("3 tool errors: RATE_LIMITED ×1, timeout ×1, panic · handler ×1"). `/api/runs` and `/api/search` filter on `error_type=` and `stopped_by=` (exact, or a prefix ending in `:` such as `has_tool_call:`).

## Search

Type in the search box: every term must occur in the run's prompt, its answer (the last assistant text), its error, or the name of a tool it called, ignoring case. Terms are separated by spaces; a `"quoted phrase"` is one term. Search never reads the system prompt, a tool result or the tool catalog.

![The runs list searched for "refund": the matching runs, parked ones linked to the run that resumed them](https://weftgo.dev/docs/_astro/studio-search.light.5zzjd95v.webp)

*The runs list searched for refund.*

**+ filter** opens the other filters. Each one set is a chip; a chip Studio could not apply is drawn struck through with "not applied —".

| Filter | URL key | Matches |
|---|---|---|
| search box | `q` | Every term, as above |
| agent | `agent` | The agent's name, exact |
| status | `status` | One of the six words |
| tool | `tool` | A tool the run called, exact |
| model | `model` | The model name, exact |
| error contains | `error` | A substring of the error, ignoring case |
| since, until | `since`, `until` | The start: a day `YYYY-MM-DD` (UTC; `until` includes the day) or an RFC 3339 time with its zone |
| ≥ seconds | `min_duration` | Duration at least, applied to the loaded rows |
| ≥ tokens | `min_tokens` | Input + output tokens at least |
| ≥ $ | `min_cost` | Own + delegated cost at least, under `pricing`; an unpriced run never matches |
| + tag k=v | `tag` | A metadata pair; repeatable |
| session, public id | `session`, `public_id` | One conversation |
| experiments | `experiments` | any runs, experiments off, or experiments only |

Click the started, duration, tokens or cost column header to sort (`?sort=duration|tokens|cost`, longest or most first; newest first without it). A day that does not exist, or a time without a zone, stays in the URL as a "not applied" chip with a note, and is never sent.

### Where search runs

With a text, a search-only filter or a sort, the list reads `GET /api/search`; otherwise `GET /api/runs`. Search needs the `search` capability, which Studio lists when its database implements [`obsdb.Searcher`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2/obsdb#Searcher). Both first-party backends do: SQLite through an FTS5 trigram index kept on write, ClickHouse through case-insensitive substring scans. Without it, the box is off and says why; tool and text chips are not applied, and model, error, the date range and the minimums (≥ $ only under `pricing`) filter only the loaded rows, saying so.

`min_cost` and `sort=cost` are applied in Studio, since cost is computed at read time: it prices the first 2,000 runs of the match in the order asked. A larger match is cut there, and the page says the runs past it were neither priced nor listed (the API's `cost_sort_cap`). Duration is always filtered over the loaded rows; the API has no duration filter.

The same search from a terminal, against a `weft studio` with its dev token (`$TOKEN`):

```sh
curl -s -H "Authorization: Bearer $TOKEN" \
  'http://127.0.0.1:7331/api/search?q=refund&status=failed&min_tokens=1000&sort=tokens&limit=20'
```

It answers run rows (no snippet), `total`, `sort` and `next_offset` for the next page. `limit` is 50 by default, 500 at most.

### Find a run by id with ⌘K

⌘K (Ctrl+K) opens the palette on any page: runs, sessions, traces under `traces`, experiments under `playground`, and the pages. A pasted id is looked up, never fuzzy-matched:

- one word of 4 characters or more is an id prefix, looked up as a run (`GET /api/runs?id_prefix=…&all=1`, child runs included), as a session (`GET /api/sessions?id_prefix=…`) and as a trace (`GET /api/traces?id_prefix=…`), and also as a public id;
- `pub_…` is a public id at any length;
- `key=value` is a tag.

Their matches rank first under **Exact match**, and Enter opens the first. Every other item matches by contiguous substrings of its words, never a subsequence, so text that matches nothing opens nothing. `id_prefix` matches byte for byte on every route: no wildcard, no case folding ([`obsdb.SessionQuery.IDPrefix`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2/obsdb#SessionQuery), [`obsdb.TraceQuery.IDPrefix`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2/obsdb#TraceQuery), both backends).

The list also picks runs to compare: `x` (or a row's pick box) marks the selected run, and with two or more marked **compare N** opens them on the compare page, the first as the base ([Compare runs step by step](https://weftgo.dev/docs/observe/studio/compare/)). A row's own and delegated tokens read "3 in · 1 out" with "+9 in · 5 out" on a second line under it when it has subagent child runs. They are `own_usage` and `delegated_usage` on the run row, omitted with no Subagent child, while running, when a child read failed, or when a panel token cannot see a child.

## Best practices & gotchas

- **Give agents a name.** The agent filter, follow and the palette key on `weft.Name`; a nameless agent reads "unnamed agent" everywhere. (Source: `lib/format.ts` `UNNAMED_AGENT`; CHANGELOG.md:316)
- **Pass `weft.ResumeOf` when you resume a park.** Without it a plain `Generate` resume is not linked, and its parked run keeps reading `parked` in the list and the `parked` filter. (Source: `studio/README.md:2044-2081`)
- **Keep content on where you search.** A content-off run has no prompt or answer to match; only its error text and tool names can match, and its title falls back to its agent. (Source: `obsdb/search.go:43-48`; `lib/title.ts:244-254`)
- **Cost filters stop at 2,000 runs.** Narrow by agent or date first when `min_cost` or `sort=cost` reports the cap. (Source: `studio/search.go:55-80`)

## See also

- [Read a run in Studio](https://weftgo.dev/docs/observe/studio/run-page/)
- [Browse sessions and traces in Studio](https://weftgo.dev/docs/observe/studio/sessions-and-traces/)
- [Get around Studio: keyboard, panes and settings](https://weftgo.dev/docs/observe/studio/navigation/)
- [Studio HTTP API](https://weftgo.dev/docs/reference/studio-api/)
- [Studio pages, URL parameters and keyboard](https://weftgo.dev/docs/reference/studio-urls/)

Symbols used: [`obsdb.Searcher`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2/obsdb#Searcher) · [`obsdb.SearchQuery`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2/obsdb#SearchQuery) · [`obsdb.RunQuery`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2/obsdb#RunQuery) · [`weft.ResumeOf`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2#ResumeOf) · [`weft.Name`](https://pkg.go.dev/github.com/weftgo/weft@v0.20.2#Name)
