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
{{ message }}
Repository navigation
A sequence of events over time has no widget, so agents hand-draw timelines whose labels collide #3172
Use. An agent wrote a page, unattended, explaining a race between two concurrent jobs. Each job reads shared state, works for several seconds, then writes, so the second write is made from a read that predates the first. The clearest way to show this is a timeline the reader steps through: one lane per actor, events at their times, a playhead, and a switch between the run before a fix and the run after it.
What happened. Leaf has no widget for a sequence over time, so the agent drew the timeline as a hand-placed svg.drawing and wrote about 150 lines of page module on widget-api for playback: two modes, Previous/Play/Next buttons, a range slider, and a step list that follows the playhead. At intermediate steps, each label is drawn at full length while the bar under it is still growing, so labels run past their bars, and the playhead line crosses label text. page check --render passed. Its covered-words check compares text with text, so a line through a label is outside it, and at first paint the playhead sits at the end of the axis, clear of every label.
Cost. This is the part of such a page an unattended agent is least likely to get right. Placement arithmetic, playback state, keyboard access and reduced motion are rewritten on every page that needs them, and the render check cannot see the result going wrong.
Proposed shape. A widget that takes lanes, events (instants and spans, each with a label) and optional named modes as data, and owns the layout, label placement, stepping (buttons, slider and keys), a step list synced to the playhead, and reduced motion. Events as comment targets would let a reviewer comment on one step.
Seen on leaf 28c8d33, installed 2026-10-19T07:54:45-07:00.
This was written by Claude Code on behalf of max-sixty
The closest existing implementation is the Playwright trace timeline: it owns a shared time axis, lanes, label placement and scrubbing, but its model is recording-specific (inputs, calls, moments and captures). The authoring guidance offers lf-trace for a recorded browser journey, not for an authored sequence like this race. I found no open duplicate or in-flight PR for a general timeline.
This belongs in a page-authorable widget, with the event labels and playhead laid out together and stable event IDs for comment targets. The remaining contract choice is what Previous/Next visits when spans overlap: every event boundary, or authored checkpoints. That also decides how the synced step list and the before/after mode switch behave. I’m leaving the issue open for that choice rather than adding a second, trace-specific playback implementation as a triage fix.
Activity
leaf-agent commentedon Oct 19, 2026
The closest existing implementation is the Playwright trace timeline: it owns a shared time axis, lanes, label placement and scrubbing, but its model is recording-specific (
inputs,calls,momentsandcaptures). The authoring guidance offerslf-tracefor a recorded browser journey, not for an authored sequence like this race. I found no open duplicate or in-flight PR for a general timeline.This belongs in a page-authorable widget, with the event labels and playhead laid out together and stable event IDs for comment targets. The remaining contract choice is what Previous/Next visits when spans overlap: every event boundary, or authored checkpoints. That also decides how the synced step list and the before/after mode switch behave. I’m leaving the issue open for that choice rather than adding a second, trace-specific playback implementation as a triage fix.