- ds
- Agent
- Session row
Session row
A List row with title, workspace, relative time and state, and a 28px dense form for sidebars.
Show code
<ul class="list sm" aria-label="Sessions">
<li id="retry-queue">
<a class="li sess" href="#retry-queue" aria-current="page" data-state="running">
<span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 19h8"/><path d="m4 17 6-6-6-6"/></svg></span>
<span class="li-main"><b>Retry queue fix</b><span class="mono">~/work/checkout</span></span>
<span class="sess-side">
<span class="sess-state">Running</span>
<time class="sess-time" datetime="2026-10-21T02:37:00Z" title="21 Oct 2026, 02:37 UTC">4 min ago</time>
</span>
</a>
</li>
<li id="webhook-replay">
<a class="li sess" href="#webhook-replay" data-state="error">
<span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg></span>
<span class="li-main"><b>Webhook replay</b><span class="mono">~/work/event-relay</span></span>
<span class="sess-side">
<span class="sess-state">Error</span>
<time class="sess-time" datetime="2026-10-21T02:23:00Z" title="21 Oct 2026, 02:23 UTC">18 min ago</time>
</span>
</a>
</li>
<li id="docs-index">
<a class="li sess" href="#docs-index">
<span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg></span>
<span class="li-main"><b>Index the docs</b><span class="mono">~/work/fin1te.com</span></span>
<span class="sess-side">
<span class="sess-state">Idle</span>
<time class="sess-time" datetime="2026-10-21T00:40:00Z" title="21 Oct 2026, 00:40 UTC">2 h ago</time>
</span>
</a>
</li>
</ul>A session row is a line in the list people scan to find their work. It carries four facts: the title, the workspace, the state and the last activity. The state is a word and a dot, and the selected row also takes the accent wash and a left rule.
This extends List. Use .list.sm for the frame and the density, and put .li.sess on each row. The title and workspace use the existing .li-main, and the icon uses .li-ico. Nothing in List was renamed.
Running, idle, disabled
Show code
<ul class="list sm" aria-label="Sessions">
<li>
<button class="li sess" type="button" data-state="running" aria-busy="true">
<span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg></span>
<span class="li-main"><b>Nightly cost report</b><span class="mono">~/work/cloud</span></span>
<span class="sess-side">
<span class="sess-state">Starting</span>
<time class="sess-time" datetime="2026-10-21T02:41:00Z">just now</time>
</span>
</button>
</li>
<li>
<button class="li sess" type="button" disabled>
<span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg></span>
<span class="li-main"><b>Archived: Q3 migration</b><span class="mono">~/work/warehouse</span></span>
<span class="sess-side">
<span class="sess-state">Archived</span>
<time class="sess-time" datetime="2026-09-28T18:10:00Z">28 Sep</time>
</span>
</button>
</li>
</ul>data-state="running" turns the icon and the state word accent, and pulses the dot while the session works. data-state="error" turns them red and tints the row. A row with no state is idle. A button row can be disabled when the session cannot be opened, and a starting row sets aria-busy="true".
Dense, for a sidebar
Code
<div style="max-width:15rem">
<p class="li-head">Today<small>4</small></p>
<ul class="list dense" aria-label="Today">
<li><a class="li sess dense" href="#" data-state="running" aria-current="page"><span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"/></svg></span><span class="li-main"><b>Retry queue fix</b><span class="mono">~/work/checkout</span></span><span class="sess-side"><span class="sess-state">Running</span><time class="sess-time" datetime="2026-10-21T02:37:00Z">4m</time></span></a></li>
<li><a class="li sess dense" href="#" data-state="waiting"><span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/></svg></span><span class="li-main"><b>Webhook replay</b><span class="mono">~/work/event-relay</span></span><span class="sess-side"><span class="sess-state">Needs you</span><time class="sess-time" datetime="2026-10-21T02:23:00Z">18m</time></span></a></li>
<li><a class="li sess dense" href="#" data-state="error"><span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg></span><span class="li-main"><b>Cost report for October</b><span class="mono">~/work/cloud</span></span><span class="sess-side"><span class="sess-state">Error</span><time class="sess-time" datetime="2026-10-21T01:41:00Z">1h</time></span></a></li>
<li><a class="li sess dense" href="#"><span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"/></svg></span><span class="li-main"><b>Rename the billing columns in the warehouse schema and backfill</b><span class="mono">~/work/warehouse</span></span><span class="sess-side"><span class="sess-state">Idle</span><time class="sess-time" datetime="2026-10-21T00:40:00Z">2h</time></span></a></li>
</ul>
<p class="li-head">Archived</p>
<ul class="list dense" aria-label="Archived">
<li><button class="li sess dense" type="button" disabled><span class="li-ico"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg></span><span class="li-main"><b>Q3 migration</b><span class="mono">~/work/warehouse</span></span><span class="sess-side"><time class="sess-time" datetime="2026-09-28T18:10:00Z">28 Sep</time></span></button></li>
</ul>
</div>.li.sess.dense inside .list.dense is one 28px line: a 12px mark, the title at 12px, and one fact on the right. A running, waiting or failed session shows its state word there; an idle one shows its time. The current session grows to 40px and shows its workspace on a second line, so it stands out by shape as well as by the wash. .li-head groups rows by day in 20px heads. data-state="waiting" is new in 1.3: the agent is waiting for the person, such as on an approval.
API
| Class | On | What it does |
|---|---|---|
.list.sm | ul | The frame and density. Any List size works; sm is the session list default. |
.li.sess | li > a, li > button, li > div | One session row. Keeps the List layout. |
.li-ico | span | The session glyph. Turns accent or red with the state. |
.li-main | span | The title and the workspace, using the List classes. |
.sess-side | span | State and relative time, stacked and aligned right. |
.sess-state | span | A dot and a word: Running, Error, Idle, Archived. |
.sess-time | time | The relative time. Keep the absolute value in datetime and title. |
data-state="running" | .li.sess | Accent icon and state, pulsing dot. |
data-state="error" | .li.sess | Red icon and state, tinted row. |
aria-current="page" | .li.sess | The open session. Accent wash and a left rule. |
aria-selected="true" | .li.sess | The selected row in a listbox. The existing List selected style applies. |
aria-busy="true" | .li.sess | A session that is starting. Pair it with a visible state word. |
:disabled, aria-disabled="true" | .li.sess | Dims the row and removes the pointer target. |
.list.dense | ul | A list with no frame and no rules, for dense rows. |
.li.sess.dense | a, button | A 28px single-line session row. The current one is 40px with the workspace under the title. |
data-state="waiting" | .li.sess | Waiting for the person, in amber. The word says what is needed. |
.li-head | p, li | A 20px group head: a 10.5px uppercase label and an optional count in small. |
- Put the title first and the workspace second.
- Use a real link for an open session and a real button for an action.
- Keep the state word next to the dot.
- A row with only a title and a green dot.
- Hiding the workspace at 390px. Let it truncate instead.
- Using colour alone for running and error.
Accessibility
- Use an
awith anhreffor navigation, or abuttonfor an action. Both are focusable and work from the keyboard. The focused row gets an inset outline that the list frame does not clip. - Selected state uses
aria-current="page"for navigation. If the rows are a listbox, userole="listbox",role="option", roving tabindex andaria-selected; the styles are the same. - The state is a word. Running and error also tint the icon and the row, but the word is the signal.
- Relative time sits in a
timeelement with a machine-readabledatetime. Keep the absolute time intitlefor people who need it. - The running dot stops pulsing under
prefers-reduced-motion. The word remains. - At 390px the title and workspace truncate and the side stacks. No fact is removed.