Skip to content

Read a run in the panel

View as Markdown

Open a turn in the panel and it shows four tabs, named as Studio’s run page names its views. story reads the turn step by step, each step opening with a verdict and what it sent, replied and ran. request shows one step’s request: prompt, messages, tool catalog and parameters. waterfall draws the run’s spans over time; before 0.20.0 it was the timeline tab. raw is the run’s JSON as a tree. Anything the recording does not hold is a badge, never an empty pane. ⤢ opens the same turn and step in Studio.

Pick a turn with j / k, a step with [ / ] (or J / K), and a tab with ← / →, or press s, w, q or r for the story, waterfall, request or raw tab:

The weft devtools panel docked on the right of an app page, its Story tab showing a step's tool calls and their errorsThe weft devtools panel docked on the right of an app page, its Story tab showing a step's tool calls and their errors
A turn's story in the panel docked on the right: a step's tool calls and their errors.
TabWhat it shows
storyThe turn’s steps in order. Each step card opens with the step read (below), then its request line, tool calls and results, steers and child runs. A parked turn ends with its approvals; a running one streams its current step
requestOne step’s request, as the model received it (below)
waterfallThe run tree on a time axis in ms from the run’s first span, the axis naming its two ends (0 ms and the last); a run without spans places its steps and tool calls by event order instead
raw{doc, events, transcript, spans} as a JSON tree, plus requests once the panel has read them

The tab bar is a role="tablist": ← / → and Home / End move and select, with one tab stop. The open tab is remembered as tab in localStorage["weft.devtools"], never in a URL. The story tab’s DOM is kept while you look at another tab, so what you opened there stays open.

A child run expands inline in the story at any depth. It is read only when opened, shows the child’s request line, and has an “open in Studio” hand-off. Past two levels the indent stops and the row says depth N. A child’s final words that are its call’s result are drawn once, on the call.

Since 0.18.0 the story draws the turn’s loop in one line, above the prompt: loop ◆ ⇄, then one chip per tool the model called, then the end chip, then graph ⤢. A turn that ran no step draws no line.

loop ◆ ⇄ track ×2 ✗ refund ×1 ⏸ → parked on an approval graph ⤢
  • A tool chip is the tool’s name, × its call count, then a mark for each kind of trouble it had: ✗ failed, ↻ retried, ✋ denied, ⏸ parked, with a count when more than one. A tool that was parked or denied is drawn in the parked colour, one that failed in the error colour. A click selects the step of that tool’s first call, as a step card does.
  • The end chip says how the turn ended, → then the stopped-by words (→ the model answered, → max steps reached), else → failed, → ended or → running. A click selects the last step.
  • graph ⤢ opens Studio’s loop graph for the run in a new tab, at the selected step: runs/<id>?scale=graph&step=<n>. It is a hand-off link, like the step links below.

The line counts the same calls, marks and end as Studio’s graph for the same run. parity.test.ts holds the two to it.

The waterfall draws the same rows as Studio’s run page, one level deep: the same keys, labels, kinds and tones. Each kind has a glyph:

GlyphRow
▣the run
↻a step
◆a model call
◇an attempt
⚙a tool call
↳a child run
○another span

Each row shows its extent (12.0s, 586µs) with its offset as the title, indented by depth, the critical path marked under the bar. A row no span covers yet reads “spans not reported yet”, or carries a not_recorded badge. A run with neither spans nor steps yet draws only “nothing to place yet: no spans and no steps”. Spans it cannot place are counted above the rows: “2 spans not placed: unreadable times, or an end before the start”. A child run is one row labelled by its agent, whose ⤢ opens Studio’s run page at it (?sel=r:<child>), where it expands. Step rows are buttons on one tab stop: ↑ / ↓ move, and a click, Enter or Space selects that step in the story. The run row is not a control.

The devtools panel's waterfall tab: the run, its steps, model calls and tool calls on a time axis, the 300 ms shipping_quote bar the longestThe devtools panel's waterfall tab: the run, its steps, model calls and tool calls on a time axis, the 300 ms shipping_quote bar the longest
The waterfall: the run, its steps, model calls and tool calls over a time axis.

The raw tab is a lazy JSON tree. Only open nodes are built: a small document opens whole, a large one shows its top 150 rows, a container shows 200 children then … +N more, and a string over 2,048 characters shows its head then … +N bytes, a button that shows it whole. A 10 MB transcript costs only what you open.

  • ▸ / ▾ on each node, or → / ←, open and close it.
  • The filter box (/) matches keys and values, case-insensitively, 100 ms after the last keystroke. It opens the path to the first 200 matches and says n matches.
  • ⧉ copies one node’s JSON, copy all the whole document, and the toolbar says copied. Where the clipboard is refused, it says the clipboard refused: select and copy below and shows the text selected for you to copy.
  • download saves the document as <run id>.json.

The story’s selected step opens answer first, with the same words as Studio’s run-page drawer. With no step selected, it opens on the step the run failed at, else step 0, so a succeeded or running turn reads its first step’s answer too.

verdict tool_calls · 120 in · 30 out · 1 ms
sent 3 messages · 2 tools offered
replied called track({"order_id":"4411"})
tools ran 1 ran
then → step 1
LineWhat it says
verdictWhat stopped the step (tool_calls, stop, an error), its tokens, latency and first token
sentHow many messages and tools the model was sent; — no request record for this step when none is readable
repliedThe model’s text, or the calls it made
tools ranHow the step’s calls ended: 1 ran, 1 awaiting a decision, none — the model called no tool, 0 ran · 1 running
thenWhat came next: → step 1, ■ the model answered at step 0, ■ parked on an approval at step 0, running…

Each step’s request is one line by default (its attempts, changed marks and badges) and opens on a click to the prompt, the catalog and any non-default parameter. Two links hand off to Studio’s run page at the step’s row:

  • 📄 ⤢ on the step’s head opens its app logs (?sel=s<n>&tab=logs). It is drawn only with Studio’s logs capability and no token or the dev token (the route itself refuses a read-scoped panel token).
  • Raw OTel ⤢ opens the step’s raw spans (?sel=s<n>&tab=raw).

Neither link carries a token. Under any token but a read-scoped panel token, these and every other [data-weft-handoff] link open through the hand-off.

The request tab is Studio’s request view, one step at a time. Pick the step with the tab’s step 0, step 1 buttons, with [ / ] or J / K, or by clicking a step card in the story. ⤢ carries the same step.

BlockWhat it shows
HeaderThe model, the attempt line, and chips: changed by PrepareStep, prompt changed at this step, overridden by experiment, catalog changed at this step
AttemptsA picker, when the step retried
systemThe system prompt (12 lines, then “show all N lines”, and “show less” to fold it) and its hash. A diff against the previous step when the prompt changed. At step 0 the diff is against the agent’s registered instructions when the panel can read /api/manifest (setup A or the dev token). It is captioned “diff vs weft.json’s instructions — not verified for this run” when the manifest’s agent is matched by name, not by the run’s manifest hash. “too large to diff” past 2,000 differing lines a side. When step 0’s prompt differs from the agent’s instructions (or the run is an experiment) and the manifest cannot be read, it says “no manifest readable here: no diff vs the registered instructions”
messagesCount and size (3 messages · 216 B), the last three inline, the rest in a JSON tree
toolsEach tool by name; it expands to its description, policy chips and schema. “no tools offered” when the step offered none
paramstemperature, top_p, max_tokens, stop, seed; adapter default when unset
tool choice, thinkingAs sent, or adapter default
Child runA child run’s request (its step 0), read on demand: “read its turn”
CompactionThe step’s compaction marker, when one applies
The panel's Request tab for step 0 of a turn: the system prompt, the one user message, the three tools offered, the sampling params, tool choice and thinkingThe panel's Request tab for step 0 of a turn: the system prompt, the one user message, the three tools offered, the sampling params, tool choice and thinking
The request tab at step 0: the system prompt, the one message sent, the three tools offered, and every param at its adapter default.

A step whose request record carries the provider’s wire bodies gets a wire ↗ link to Studio’s Wire tab for that step; the panel never draws the bodies itself. Every absent block is a badge with its reason. A read-scoped panel token sees request: hidden by your token's access and nothing else. The panel does not ask for the record or the manifest, so no prompt byte reaches the page. The manifest is read once per endpoint and token, asked again 30 s after a failed read, and asked once more when it does not list the run’s manifest hash, as after a redeploy under weft dev. / on this tab focuses an open tree’s filter, else the turn list’s.

The turn list shows the conversation’s turns, newest first, each with its status, prompt, steps, tokens, cost and duration (… while the turn runs). Above it are a text filter, a status picker and a “has error” checkbox on its label’s line:

  • The text matches the run id, the error and each loaded row’s prompt.
  • The statuses are running, succeeded, failed, interrupted, parked, parked → (decided) and cancelled.

While it narrows, the list says n of m turns. The filter applies to the rows already loaded and is never stored. With older pages unread, it says n of m loaded · the filter applies to the loaded turns, and loads nothing by itself.

With a public id scoped, the list pages by itself. When you scroll to its end it reads the next 50 older turns through the runs route’s before= / before_id= cursor, with no cap, saying loading older turns… and finally all n turns loaded. Where the list is a dropdown, older turns load with the older turns ↓ button instead. That is under 640 px of panel width, which includes the default float and a left or right dock. A refresh keeps the pages already read and adds new turns at the top.

Without a public id, the list is capped and does not page. That is the fallback (rung 5), and a ;session=, flow or run scope whose public id the panel does not know. It reads /api/runs?limit=10, the newest 10 top-level runs. When older runs exist, its end says the newest 10 runs — older ones are in Studio (⤢) instead of older turns ↓. A session in such a scope narrows within those 10 runs only.

A long run’s events are read page by page to the end, even after the run has finished. Every read carries the token in the Authorization header, never in the URL.

Every badge marks something the recording does not hold, from one table shared with Studio’s run page. A badge is a <span class="weft-badge" data-hole="…">: its text is the label, its title the reason and — fix: …, and the same words are in its accessible text for screen readers.

data-holeLabelMeans
truncatedtruncatedA destination’s size cap, or the tool-result cap, cut this content
strippedcontent not captured by this appThe destination stripped content, or the agent captured none
redactedredactedA Redact hook rewrote this content. weft’s pipeline never emits it; only another writer’s records do
max_tokensmax_tokensThe step hit the output token limit; on a tool call, the call never ran
interruptedinterruptedThe run stopped reporting: no finish and nothing heard for over 30 s
gapgapA record the run counts is missing; also a finished step no request record names
not_recordednot recordedThe weft that wrote the run kept no such record; nothing was lost
derivedderivedComputed by the reader from stock OTel spans, not stored as emitted
hiddenhidden by your token’s accessA read-scoped panel token may not read this
compactedcompactedThe model saw a compacted view of the transcript

Badges sit on the turn’s header, on each step card, on the tool call whose result was cut, on compaction markers and on each request line. Studio’s run page uses the same words (Badges for what was not recorded).

A turn derived from stock OTel GenAI spans has no transcript, so its story hands off (“2 steps · open in Studio ⤢”), its request tab reads request: derived, and the replay verbs are drawn disabled.

The footer’s content line speaks only on evidence: content on · 2 events shortened (24.6 KiB cut), content on, content off · otel.NoContent(), or content off · captured none (weft.Content(false), or no destination takes content). When nothing marks the content, it says nothing.

The panel reads a turn’s events 500 at a time, at most 20 pages: 10,000 events. On a longer turn the story says “a long run: the first 10000 events are shown — the whole story is in Studio (⤢)”, and the footer’s content line ends ”· first 10000 events”.

Turn rows carry chips read from the run row, each titled with where it came from:

ChipRead fromMeans
scripted · 0 tokensthe run’s model is weft/runtime/scriptedThe playground’s scripted engine replayed recorded turns. Plain scripted when its usage is not zero
⑃ fork of s_…#e_…weft.session.forked_fromA thread fork’s run: the session and entry it forked from
↻ replay of t3 · step 1weft.forked_fromA playground replay of turn 3 from step 1, named so since 0.19.0 (it read experiment of t3); experiment alone with only weft.experiment.id

A replay’s row also has a ↖ t3 step 2 button beside its chip that selects its source turn and step. When the source turn is not listed, it is a ⤢ link instead. Other chips use the runs table’s words. They name what ended the turn, a failed run’s error kind and its problem counts. settling shows while a finished run’s last records may still arrive (up to 30 s).

With Studio’s pricing capability, each turn row shows its cost beside its tokens, in the run page’s words: $0.0029, and its child runs’ as a second figure, $0.0029 + $0.0011 delegated. An unknown figure is — with the reason as its title: openai/x has no price, or running: usage arrives at run end. The header sums the loaded turns, own plus delegated:

  • ≥ $x · k of n turns priced when some are unknown, the reasons in its title. The sum is the priced turns’, by the same rule as Studio’s cost_partial: a turn whose delegated part alone is unknown adds nothing.
  • ≥ $0 · k of n turns priced when the priced turns are $0, and — when none is priced. A scripted turn reads $0 · scripted.
  • While older turns are not loaded, the figure starts ≥, unless every loaded turn is a known $0: then it reads $0 · k of n turns priced, with no ≥. Its title adds the N loaded turns only — load older turns for more.
  • One unpriced line such as 2 turns unpriced: no row for demo/support, which links to Studio’s pricing settings prefilled for that model. Without pricing, the panel draws no figure. See what a run cost explains the figures.

In a narrow dock the header’s tokens, cost and unpriced count give way to the title as one group: each shows whole or not at all, never cut mid-figure.

A Studio that stops answering after the panel started (a turn-list read with no answer, or a 401 or 403) gets a line under the dock’s header, in the start-up words: Studio not reachable at … · retry, or the token it wants. The turn list stays, dimmed. The live lane reads the list again with a bounded backoff, and a read that lands clears the line. Past those retries the panel reads /api/meta once a minute while the dock is open and the page visible. It comes back by itself; a 401 or 403 stops that, and retry starts over. This line is new in 0.20.0. When the panel does not connect covers the same words at start-up.

⤢ in the header, or o (g s too), opens the turn in Studio in a new tab: at the step you picked (with [ / ], a click or select()), else the run’s page with no step:

http://127.0.0.1:8080/studio/runs/s_01M5…-t2?step=0&view=story

Beside it, session ⤢ opens the session’s page when the panel knows the conversation’s session. Otherwise, with a public id, conversation ⤢ opens the conversation’s page: every run of that public id. Every tool call, child run badge, session and trace in the panel is also a link. save as test opens runs/<id>?save=test, where Studio’s run page downloads the turn as a wefttest replay; it is not drawn under a read-scoped token. No link carries a token. Under any token but a read-scoped panel token, ⤢ goes through GET /api/panel-handoff. A playground panel token opens Studio holding a short read token for the conversation. Since 0.20.0 the dev or server token opens it signed in, the token in the link’s fragment (Secure the devtools panel).

A few parts are drawn only on Studio’s run page: the story’s end card (”■ max steps reached at step 9”), a loop’s “repeats step K” chip, the tool failure pill and the concurrency chip. weft’s parity.test.ts holds the panel and the run page to the same badges, chips, run-tree rows, step reads and cost words for the same run.

  • Load older turns before filtering for one. The filter reads only loaded rows; in the narrow layouts older turns load by the older turns ↓ button. (Source: studio/README.md:570-592; panel/element.ts:3246, 3160)
  • Scope a public id to see more than 10 runs. Without one, the list is the newest 10 runs and never pages; a session’s older turns are not reached. Add the public id to the scope, or open Studio from ⤢. (Source: panel/state.ts:127-128, 1164-1168; panel/element.ts:2971-2993)
  • Read a badge’s title. The badge names the hole; its title carries the reason and the fix, such as raise the destination's cap. (Source: studio/README.md:628-641; lib/honesty.ts:112-179)
  • Use the dev token to see logs from the panel, on a local page only. 📄 ⤢ is not drawn under any panel token; a page you ship never carries the dev token. (Source: studio/web/src/panel/element.ts:5966, studio/logs.go:119-125)
  • Mint a playground token for a page that needs the request tab, knowing it can also act. A read token sees hidden by your token's access for every prompt and catalog; a playground token reads them but can also replay, decide and steer in that conversation. (Source: studio/README.md:594-597; lib/honesty.ts:92-97)