pub struct HelperView {
pub run: Option<String>,
pub label: String,
pub phase: RunPhase,
pub background: bool,
pub step: Option<Step>,
pub steps: Vec<usize>,
pub reason: Option<String>,
pub stopped_by_owner: bool,
pub out_of_usage: Option<OutOfUsage>,
pub took: Option<String>,
pub since_request: Option<SinceRequest>,
}Expand description
One helper as every card shows it: the runtime’s record of it.
Fields§
§run: Option<String>The run it is the record of (its run id), when the sender knows
it: a card keeps one entry per run, found by this id, so two runs
under one name never share a line (live 2026-11-14: a “Finished …
Took 42s” line stood under the WordPress helper’s name while that
helper still ran). None: found by its name.
label: StringThe name the owner reads for it.
phase: RunPhase§background: boolIt works in the background, past the turn that started it.
step: Option<Step>Its latest step while it runs.
steps: Vec<usize>The plan steps (zero-based) it was started to do, as the spawn call
named them: the typed link a later run for the same step supersedes
it by (superseded_runs).
reason: Option<String>Once it failed or stopped, why, in plain words from its run record (the same sentence its result carries). Never from its reply.
stopped_by_owner: boolIt stopped because the owner stopped it: its header says so plainly (“Stopped by you”), never as a failure or an error. Set only from its run record’s typed end.
out_of_usage: Option<OutOfUsage>It stopped because its coding agent’s account ran out of usage (the agent’s own typed answer): until when, where the agent said.
took: Option<String>Once it ended, how long it took and when, as the runtime measured it and already worded for the owner (“Took 21s (2:21:16 PM to 2:21:37 PM ET).”). Never worked out from anything a model wrote.
since_request: Option<SinceRequest>Once it ended, how long after the owner’s request that started it, as the runtime measured it: what “how long did it take” means to the owner, request to finish.
Implementations§
Source§impl HelperView
impl HelperView
Sourcepub fn running(label: &str, background: bool, step: Option<Step>) -> Self
pub fn running(label: &str, background: bool, step: Option<Step>) -> Self
A helper that is running with step.
Sourcepub fn headline(&self) -> &'static str
pub fn headline(&self) -> &'static str
Its header on a card: how it stands, from its typed record. A run the owner stopped reads “Stopped by you” whether it ran in the background or not.
Sourcepub fn of_run(self, run: Option<&str>) -> Self
pub fn of_run(self, run: Option<&str>) -> Self
The same record, of run run (its id), when known.
Sourcepub fn same_helper(&self, other: &HelperView) -> bool
pub fn same_helper(&self, other: &HelperView) -> bool
Whether other is a record of the same helper: the same run when
both name theirs, else the same name.