Monitor TUI
Live terminal dashboard for configuration, run browsing, and analysis output.
pmoke monitor (or bare pmoke) opens a live terminal dashboard. It runs the
same workflow commands you would run by hand and surfaces their output; it
never edits configuration files and never touches hardware beyond what the
selected command itself does.
If you start the monitor with --run-dir, refreshing or running a workflow
command keeps using that directory. Selecting a different run in RUNS
only changes the preview. If you explicitly start the monitor with --force,
it passes that flag to every workflow command in the session, allowing
commands to overwrite existing artifacts.
Layout
- Header: status (
RUNNABLEwhen the configuration loads,BLOCKEDwhen it carries diagnostics), the active run label, and a minutes:seconds timer. - Context bar: working directory and configuration path. With
REPORTSfocused,VIEWidentifies the recorded run being inspected, not a command to execute. WORKFLOW: the command list with aDETAILdescription of the selected row./filters,Enterruns the selected command.RUNS: the S2 run browser (see below).INSPECTOR:SUMMARY,CONFIG,DIAGNOSTICS,ARTIFACTS, andREPORTStabs for the selected workflow entry or the pinned run preview.ACTIVITY: live command output withLIVE,PAUSED, andHISTORYstates. When you browse history, progress and completion of the live command do not change the record or selection you are reading. If that record ages out of the ten-command history, the pane returns to live output. While output is paused, the text you scrolled to stays in view when timestamps appear. Enlarging the pane enough to show the tail does not resume following it. Field names are shown in full when there is room; long values wrap.- Footer: shows what a key does in the current pane and mode. On narrow terminals, lower-priority hints are omitted rather than cut in half.
Focus
Four panes share one focus ring in spatial order: workflow, runs, inspector, activity.
| Keys | Effect |
|---|---|
1 / 2 / 3 / 4 outside the inspector | Focus workflow / inspector / activity / runs |
b | Focus runs, including from the inspector |
Tab / Shift-Tab (l / h, Right / Left) | Focus next / previous pane |
i | Cycle inspector tabs (focuses the inspector) |
1-5 while the inspector is focused | Select inspector tab directly (5 = REPORTS) |
Keys
In normal navigation (not while typing a filter or viewing help):
| Keys | Effect |
|---|---|
? | Toggle help overlay (q or Esc closes it) |
q | Quit; while a command runs, arms a confirmation instead (q again quits, Esc stays) |
/ | Filter runs if the runs pane is focused; otherwise filter workflow commands |
Enter | In workflow or inspector, run the selected workflow command or toggle its group. In runs, preview the selected run; in activity, copy the selection. |
[ / ] | In runs, move the selection; elsewhere, browse older / newer command output |
r | Refresh configuration and files |
Ctrl+C | Interrupt the running command |
End | Scroll to the bottom of the displayed output. It does not leave history. |
Esc | Close dialog, clear search/selection, then leave the panel (never cancels a run) |
In workflow, runs, and activity, j/k move the selection and g/G go
to the first/last entry. In the inspector, j/k scroll a scrollable tab;
g/G move to the first/last workflow row instead. PageUp/PageDown
and Ctrl+U/Ctrl+D scroll the inspector or activity. In activity, v
starts a selection, K/J extend it, and y copies it.
When typing a filter, ?, q, and digits are text. Enter keeps the filter
without running a command, Backspace erases a character, and Esc clears a
filter (runs first if both lists are filtered). Moving focus to another pane
keeps the filter but ends text entry. Matching workflow groups start expanded;
opening or closing one does not change the unfiltered list.
Run browser
RUNS lists sibling run directories next to the current one: the scan root
is the parent of the run directory, falling back to the configuration file's
parent and then the startup directory. Scanning is read-only and budgeted
(at most 512 directories, depth 3, 200 entries, 64 KiB per manifest); a
partial list is marked TRUNC rather than silently short. / filters by
name, path, status, or stage, and Enter pins the selected run as a
read-only inspector preview. Empty states read no run dirs under scan root
and no runs match the filter. Refresh keeps the same run selected by path if
it still matches, even if a new run appears above it. With an explicit
--run-dir, you can keep reading that report even if the configuration
temporarily fails to load.
Reports inspector
The S3 REPORTS tab answers "what happened inside the selected run"
without running anything: press 5 while the inspector is focused (i
cycles through it like every other tab, j/k scroll the combined
table). The top rows name the selected run, then a Stages section reads
the run's per-stage lifecycle status from its run.toml manifest, and a
Reports section summarizes the standalone lane reports
(calibrate-report.json, noise diagnostics.json, compare-report.json,
m6-evaluation-report.json) plus the calibration.json artifact and the
analysis/manifest.toml publication state. Every probe is a bounded
read-only file read: missing, oversized, or unparsable files degrade to an
explicit not found / unreadable marker instead of failing the render.
With this tab focused, use b to reach the runs browser; 4 opens ARTIFACTS.
For example, VIEW run-alpha (read-only) with [Enter] Run show means you
are reading run-alpha, but pressing Enter runs show with the current
configuration. Opening or scrolling the report does not run that command.
Safety and environment
- Quitting while a command runs needs a second
q; the footer shows[q] Stop + quitand[Esc] Staywhile armed. HereEscdismisses only the confirmation; it keeps your filter and selection and does not stop the command. - In help,
q,?, orEscjust closes the overlay.Ctrl+Ccan request a stop even in help or filter input; it also closes help if it is open. PMOKE_MOUSE=off(also0,no,false,disabled) disables mouse capture; otherwise click, drag, and wheel work.PMOKE_MOTION=full|reduced|offcalms live animation while a command runs.- Display truncation is cell-based, so wide characters never overflow their panel; the interface itself stays English-only.