You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(autoresearch): report and render the metric's unit with every dashboard value
The report protocol gains a structured unit: line (e.g. kB, ms, %) and
the name: guidance drops "with units", so the dashboard title stays a
clean label while every value carries the unit. The first report with a
unit sets run.metricUnit (first-wins, persisted, like the name); units
longer than 16 chars are ignored as prose, and unitless metrics render
bare as before.
Rendered via a shared withMetricUnit helper (space-separated, % hugs the
number) on: the Best/Last/Target stat cards, the chart's y-axis extremes,
target label and point tooltips, and the iteration table's Value and
delta columns. Continuation prompts include the unit in the history block
too, keeping the agent grounded in the units it reports.
Tests: 136 autoresearch core tests (unit parsing, too-long-unit guard,
first-unit-wins adoption, unit in history prompts, protocol example);
full core/ui/app suites green.
Generated-By: PostHog Code
Task-Id: 41d083af-f0ef-49c1-bce2-9d4a34046981
0 commit comments