Skip to content

Get around Studio: keyboard, panes and settings

View as Markdown

Studio is one page shell: a sidebar of pages on the left, a header with where you are and a Search ⌘K button, and the page under it. Press ⌘K (Ctrl+K) anywhere to find a run, session, trace or experiment by id or text, or to jump to a page or run a command. Press ? for every keyboard shortcut. Shortcuts other than ⌘K fire only on a bare key press outside a text box. Settings in the sidebar shows what this Studio serves and holds this browser’s preferences: the token, theme, density and pricing edits.

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 compareweft 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
The shell around the runs list: the sidebar, the header with Search ⌘K, and the page.

The sidebar lists the pages this Studio serves:

EntryShown when
Runsalways (Find runs)
Sessionsalways (Browse sessions and traces)
Tracesthe traces capability is listed
Livealways (Watch runs live)
Agentsa manifest is configured, or the playground is on
Playgroundthe playground capability is listed
Experimentsthe playground capability is listed and the token is not a panel token
Settingsalways

Behind the token wall (heading “Sign in to this Studio”) Traces, Agents, Playground and Experiments stay listed, disabled, with “needs the token”, so the sidebar keeps its shape once the token is in. The sidebar collapses to icons with the toggle in the header, or with ⌘B (Ctrl+B) on any page.

The header names the place (runs › <run id> on a run page), shows “link copied” after a copy, and holds Search ⌘K. The sidebar’s footer has the theme and density toggles, a keyboard-help button, and the weft and Studio versions with the database kind. The first tab stop on every page is “Skip to content”, which lands on the page’s content (on the runs list, past its filters).

A run, session, experiment or trace id the database does not hold, or an unknown page, reads “No run <id> in this Studio” with the way back (“back to runs”); a run’s also offers search for it, the palette with the id typed in.

⌘K (Ctrl+K) toggles the palette on any page. Its input reads “Search runs, sessions, traces, experiments… or a command”. Its groups:

GroupHolds
Exact matchThe runs an id prefix, a public id or a key=value tag names; Enter opens the first
RunsSearch hits for the text, then recent runs; All runs matching ”…” opens the runs list searched. “Runs (by id: this Studio cannot search)” without the search capability
SessionsRecent sessions, by title, first prompt, id, public id or agent
TracesRecent traces, under the traces capability
ExperimentsSaved experiments, under the playground
Go toRuns, Sessions, Traces, Live, Agents, Playground, Settings (each where its page is shown)
StudioCopy link to this page (y), Cycle theme, Compact density or Comfortable density, Reset pane layout, Keyboard help
Studio's command palette with a run id's first four characters typed: the Exact match group lists the run with its prompt, short id and agentStudio's command palette with a run id's first four characters typed: the Exact match group lists the run with its prompt, short id and agent
The palette with a run id's first four characters typed: the Exact match group lists that run.

Text that matches nothing reads “Nothing matches.” A pasted id is looked up, never fuzzy-matched: one word of 4 characters or more is looked up both as an id prefix and as a public id, pub_… is a public id at any length, and key=value is a tag. Find a run by id with ⌘K has the rules.

Every binding, as ? lists it (a blank Where means any page):

KeysActionWhere
⌘Kcommand palette: find a run, session, trace or experiment; jump to a page
/filter the runs listruns
j knext / previous item of the list in focus: runs, turns, waterfall rows
enteropen the selected runruns
xpick the selected run to compare (two or more: compare N)runs
s w q rthe story · waterfall · request · raw view (q: the story’s Request pane at the selected step; again: the view before it)run
lthe logs viewrun
oopen it elsewhere: the panel’s run in Studio, Studio’s in your apprun
tthe waterfall’s scale: time · order · graphrun
↑ ↓ ← →move / fold in the waterfall (tree focused)run
spaceplay / pause the playbackrun
[ ]previous / next step (the playback stops at tool events too)run
, .one event back / forwardrun
{ }previous / next turn of the run’s sessionrun
njump to step: the story’s scrubber (←→ home end on it; a number + enter in its box)run
home endfirst event / the end — live while running (bar focused)run
g rgo to runs
g ago to agents
ycopy a link to this page as it stands
?this list

Since 0.20.0 the devtools panel binds the same keys to the same meaning where both have one: j k, [ ], s w q r, o and ?; the panel’s / also filters its raw view’s tree (Panel keyboard).

Except ⌘K, a shortcut fires only on a bare key press outside a text box: with Ctrl, ⌘ or Alt held the key goes to the browser, so Ctrl+R reloads the page instead of switching to the raw view. ⌘K (Ctrl+K) is the exception: it needs the modifier and works inside a text box too. g starts a chord: the next key within 1.5 s picks the page, and no page sees that key, so the run page’s r does not fire. The same table is the Keyboard section of Settings.

y (or Copy link to this page) copies the page’s URL as it stands: every bit of page state is in the query, so a run page with its view, step and selection reopens the same way. The copied link never carries a fragment, a token, a live-stream signature, a panel scope string or prompt text: the keys token, access_token, sig, weft_scope, input, instructions, edits and lab are removed. The header says “link copied”, or “copy failed — the browser refused the clipboard”.

Every page is a deep link that survives a reload: runs/<id>, sessions/<id>, traces/<id>, compare?a=&b=, settings?price=. Studio pages, URL parameters and keyboard lists every page and key. From a run page, open in app opens the page of your app the run came from, when the app’s handler is wrapped in scope.Header (Read a run in Studio).

/settings (the sidebar’s Settings, or the palette’s) is one section per topic, with an index beside them on a wide window and above them on a phone. Served sections are read from /api/meta, /api/settings/pricing and /api/runtimes; a section whose data your token may not read shows the hidden badge, and one whose capability is off says why.

SectionShows
Connect an appHow an app, a page and a coding agent reach this Studio by its own URL: the lines every empty list page shows too (0.20.0)
StudioThe endpoint and API base, the title, the weft, Studio and panel versions, the pid, interrupted after (30000 ms of silence), whether OTLP ingest is open, ingest health (records an app’s destination dropped), and how app logs reach a run
TokenThis browser’s token, masked: show, copy, clear, or paste another and switch. Its identity (the server’s dev token, or a read or playground panel token), whether the API is walled, and the weft mcp --url <this Studio> command
DatabaseThe kind, path and size
Retentionoff, or the retention and the runs it sweeps (Keep and delete recorded runs)
PricingThe effective pricing table, editable in this browser and downloadable as pricing.json (See what a run cost)
CapabilitiesEvery capability on, and each one off with the reason
RuntimesA summary of the linked runtimes and a link to the Runtimes page (The Runtimes section)
Content policyHow Studio stores content (as received), and the latest run’s content mark with its note and fix
AppearanceTheme and density
KeyboardThe bindings above
ConceptsEvery term of the words Studio uses, each with its short entry (0.20.0)

A link can land on one part of the page. /settings#settings-<section> scrolls to a section, such as #settings-pricing or #settings-connect, where the panel’s empty list sends a first run. #concepts is the Concepts list, and #concept-<term> one term in it, where a term’s hint’s more › goes (0.20.0). The page scrolls once it has drawn; the section index scrolls without writing a fragment.

Only the token, the appearance and layout preferences, pricing edits and playground drafts belong to this browser, with the dismissed first-run card; everything else is the server’s. The token stays in localStorage (or, for a tab opened through a panel hand-off, in that tab’s sessionStorage) and travels only in the Authorization header, never in a URL. Studio never writes a file, so applying pricing edits means downloading the file and restarting Studio with it.

What Studio keeps in this browser, by name, so you can clear it:

WhereKeyHolds
localStoragestudio.tokenThe pasted token
sessionStoragestudio.tab-tokenA panel hand-off’s token, this tab only
localStoragethemesystem, light or dark
localStoragestudio.densitycompact; absent is comfortable
localStoragestudio.panes.<split>One split’s pane sizes
localStoragestudio.trace.layoutThe run page’s layout: split or stack; absent is automatic
localStoragestudio.pricing.edits:<source>:<path>:<dated>Your pricing edits to one served table
localStoragestudio.first-rundismissed once you close the runs list’s first-run card (0.20.0); without storage it is dismissed for that page view only
IndexedDBdatabase weft-studio, store draftsPlayground drafts (?exp=)
cookiesidebar_state (path=/, 7 days)true or false, written on every sidebar toggle; Studio never reads it back

When storage is unreadable or refuses a write, the setting lasts this page only.

Since 0.19.0 the Runtimes section is a summary with a link; each runtime, its agents and its breakpoints live on the Runtimes page, /runtimes. Re-read every 5 s, the section says:

  • <n> connected (holding a command stream now);
  • a count of the runtimes by state, connected, restored or gone;
  • the manifest check in numbers: manifest: checked <n> of <m> · stale <k> (…) · differs <d>;
  • what /api/meta’s debug_scope lets Studio act on;
  • open Runtimes — each runtime, its agents, what Studio may do, its breakpoints.

With the runtimes capability off, it keeps the count and the manifest check and says why the capability is off. The runtime-wide breakpoints editor that lived here before 0.19.0 is on each runtime’s card on /runtimes (Breakpoints).

Since 0.20.0 Studio and the devtools panel use one vocabulary, held in one place (lib/glossary.ts). Each concept has a tooltip, a short entry and a link to these docs, drawn as a focusable word on the tables’ headers, the run header and the replay drawer. The ? dialogs have a concepts tab beside the keys, and Settings’ Concepts lists every term. The words:

WordMeans
sessiona weft/thread conversation (weft/thread names the Go package)
turnone run of a session; a public id’s sessionless runs, a page of runs and the fallback are runs
child runa weft.Subagent’s run; a thread/pool child is a pool session
gapswhat the API calls holes
playbackthe event bar that steps through a recorded run
replayre-executing a run from a step, never the playback
Write towhere a replay writes: nowhere (ephemeral) or a new session (fork)
✎ Replay…the drawer button, named ✎ Experiment before 0.20.0
your token’s accesswhat a refusal names, not its scope

Tokens read 60 in · 30 out, cost $0.0012 own · $0.0040 delegated, on both surfaces; time to first token is “first token” (TTFT only in hovers). A replay’s row reads ↻ replay of t3 · step 1, a fork’s ⑃ fork of s_…#e_…. Each status, kind, diff and hole has one colour per theme on both. Every list page’s empty state says how to connect an app to this Studio by its own URL, and the runs list carries a first-run card you can dismiss. Weft’s own build fails on a retired word on screen (make studio-check runs studio/web/scripts/vocab-audit.ts), so these words hold on both surfaces. The keyboard is one keymap too (Keyboard).

The theme is auto (the system’s), light or dark. The sidebar’s toggle and the palette’s Cycle theme step through auto, light and dark; Settings › Appearance picks one. The choice is stored in localStorage["theme"] as system, light or dark; no value also reads as system. It is applied by an inline script before the first paint, so a page never flashes the wrong theme. Studio serves its own fonts (Geist and Geist Mono), so the UI needs no network. In both themes every label drawn as text, the faint eyebrows included, is at least 4.5:1 against the surface it sits on, decoration has its own fainter token, and an error returned as data reads mustard, never red (#875c04 light, #e3b341 dark), as the devtools panel’s warn colour does.

Four splits resize: the trace page’s span tree beside the selected span, a run step’s story beside its open Request pane (from 1024 px wide; one size for every card), the playground’s config column beside its runs column, and the Live page’s running runs beside a peeked run’s story. Drag the handle, or focus it with Tab and use the arrow keys, Home and End. A double click restores both panes’ defaults. Each pane keeps a minimum size, and resizing never remounts what is in the panes, so a half-typed draft survives. Sizes are a per-device preference, never part of the URL: localStorage["studio.panes.<split>"] (trace-detail, story-request, playground, live-peek). Reset pane layout in ⌘K forgets them all.

The run page’s run tree sits beside its drawer or above it. The layout button at the right of the run tree’s flow strip (on a run with no flow strip, such as a derived run, at the end of the view’s header row; none while the derived note stands in for the waterfall) cycles three states: automatic (“side by side when the page is wide enough”), always side by side, and stacked. The choice is kept in localStorage["studio.trace.layout"] as split or stack; automatic removes the key.

Density is comfortable (the default) or compact: the toggle beside the theme toggle, “Compact density” / “Comfortable density” in ⌘K, or Settings › Appearance. It is stored as localStorage["studio.density"] and set before paint as data-density on <html>; compact scales the theme’s spacing and type sizes, so every page follows. At phone width (640 px or less) the splits stack and the page scrolls as one, with no horizontal scroll.

Studio raises toasts in the bottom-right corner, once per event. A toast never takes focus or a key, names ids, tools and counts but never a token or a prompt, and acts only when you click its action. Among them:

ToastWhen
replay run <id> finished · <status>A playground variant or a replay settled; open goes to the run. Before 0.20.0 it read experiment <run> finished · <status>
experiment <id> finished · 2 succeeded, 1 failed, 1 not run · <cost>A matrix’s last cell settled: one toast for the matrix, each count only when above zero (no runs when all are), the cost only under pricing when every cell’s cost is known
run <id> parked at <tool>A run this page follows parked; open, and approve for one parked call of a runtime-started run when the playground is on and your token may act
runtime <name> connected / disconnectedA runtime’s connection flipped, read from GET /api/runtimes (every 5 s while a surface needs it, else backing off to 60 s; never while the tab is hidden)
approve on run <id> refused: <reason>A toast’s approve was refused; the park is no longer pending — it was decided elsewhere when another surface decided it first
cancel sent to run <id>'s runtime · cancelling…A cancel from the Live page was sent (info)
run <id> cancelledThe cancelled run ended with status cancelled (success)
run <id> cancelled · ended failedThe cancelled run ended with status failed rather than cancelled; Studio still counts the cancel as taken (success)
run <id> ended <status>The run ended another way, succeeded for instance, so the cancel did not take (info). <status> is — when the end carried none
cancel on run <id> refused: <reason>Studio refused the cancel (error)
live updates stopped after 6 reconnectsThe live stream gave up; retry restarts it
link copied / copy failedA copied link
  • Click into the page before using a key. Shortcuts other than ⌘K do not fire while a text box has focus; click outside it first. (Source: lib/keys.ts:1-24)
  • Share links, not screenshots. A copied link holds the page’s whole state and never a token; the reader needs their own token for the Studio. (Source: lib/links.ts:814-915)
  • Pricing edits are local. Another browser, or the API, still sees the server’s table until you restart Studio with the downloaded file. (Source: routes/settings.tsx:1-11; studio/README.md:2413-2420)
  • In setup A, Studio’s browser storage is your app’s. Embedded with studio.Handler, Studio runs on your app’s origin. The studio.token entry and the other keys above sit beside your app’s own storage, readable by its scripts. The sidebar_state cookie is set at path=/, so it rides your app’s requests too. (Source: lib/api.ts:749, 777; components/ui/sidebar.tsx:28-29, 85-86)
  • A runtime that drops and returns within one poll is not toasted. On a quiet page the toast can be a minute late. (Source: studio/README.md:2623-2627)