Repository navigation
Description
Symptoms
With several coding agents in herdr, the character window shows one chip per herdr event: 11 rows of herdr ibricks41 · claude … stack down the chip column and run past the bottom of the window. In a narrow window the same rows show as dots and also run past the bottom. Nothing groups them.
Steps to reproduce
- Enable the herdr plugin with one local and one remote machine (
ibricks41). - Run about ten Claude Code panes and let them finish or stop for input over a few minutes, with no speech bubble or Ask card showing.
- Look at the chip column in the character window (400 × 600, and a narrower one).
Expected behavior
Decided by the owner on 2026-11-30:
- herdr sends
doneas a batched (non-urgent) signal; onlyblockedis urgent. - A new state from the same pane replaces that pane's earlier chip, so one agent has at most one chip.
- Urgent chips group by source: several urgent chips from one source show as one row with the newest label and "+N", which unfolds in place on click. Urgent rows stay above the rest.
- The chip column always fits inside the window, with or without a bubble or Ask card: it moves up first (to 8 px under the window top), then folds the non-urgent rows into "+N", and last folds the oldest urgent groups.
Refined by the owner on 2026-11-30 after a mock critique (prototype https://claude.ai/artifact/R1Nv6VQYQrUkXLHsio9PX1):
- The "+N" fold row shows the pulsing urgent dot when it holds an urgent group.
- The "+N" fold row is a button: pressing it shows the folded rows over the bubble, with Collapse at the end; pressing it again, Escape or a click elsewhere folds them back. The window's bottom edge still bounds the column, which scrolls inside.
- herdr labels put the pane title first (
fix login redirect · claude · ibricks41); inside an unfolded group, rows after the first drop the repeated source name. - In an unfolded group, Collapse sits below the scroll box, always visible.
- Among the non-urgent rows, the Threads chip folds last.
- When the status pill shows, the column moves up no further than 8 px under the pill.
- When even the newest urgent group and the "+N" row do not fit, only the "+N" row remains.
- Which urgent group folds first stays as written: the group whose newest chip is oldest.
- In a narrow column (dots and counts only), a tap on a grouped pill unfolds the group instead of opening one chip's details sheet.
The order of the column (urgent rows, batched row, Threads chip, delegation chip), the details sheet, the dismiss cross, the 30-minute expiry of batched chips and the narrow dot-only form otherwise stay as they are.
Actual behavior
Measured at 16e0cb35:
- herdr marks every signal urgent:
plugins/herdr/src/watch/signal.rs:40writes"delivery": "urgent"for bothagent_doneandagent_blocked(signal.rs:7-13). - Each pane state change is its own chip: the event id is
{machine}:{pane}:{occurred_at}(signal.rs:41), and the chip model replaces a chip only on the same event id (src/ui/chips/signal-chips-model.ts:68-75). A pane that goesdoneand laterblockedholds two chips. - Urgent chips never fold and have no cap:
src/ui/chips/signal-chips.ts:192-195places every urgent pill;docs/agent-guide/design/signal-chips.mdsays "Urgent chips come first, newest first, one row each, and never fold." - The column fits itself only while a bubble or card shows:
src/ui/surfaces/chip-column.ts:110-112plans only when an obstacle is present;.yui-chip-column(src/ui/surfaces/surfaces.css:26-41) has no height limit.
Storyboard
Journey: answer a waiting agent. The user works in another app; YUI's character window (400 × 600) sits at the screen's right. herdr watches one local and one remote machine.
- Quiet. No chips. The user works.
- One agent waits. A pane on
ibricks41goesblocked. One urgent row appears: Danger dot with its halo,herdr,ibricks41 · claude · <title>, a cross. - Three more wait. Three more panes go
blocked. The column still holds one herdr row: the newest label and "+3". Nothing moves below the row. - The user opens the group. A click on "+3" unfolds four rows in place, newest first, each with its cross, and a Collapse pill after them. If they do not fit above the window bottom, the list scrolls inside the column, as the batched list does.
- The user looks at one. A click on a row opens its details sheet, as today. The user answers that agent at its terminal.
- That agent finishes. The same pane goes
done. Its urgent row leaves the herdr group (now "+2") and a batched chip for it joins the batched row (Amber ring). It leaves after 30 minutes or on its cross. - A second source. A Threads producer sends an urgent signal. It gets its own urgent row under the herdr row, also groupable.
- The bubble shows. She speaks. The column moves up until its last row ends 8 px above the bubble, never above 8 px under the status pill. If it still does not fit, the batched and delegation rows, then the Threads chip, fold into one "+N" row, then the oldest urgent groups; a "+N" holding an urgent group shows the urgent dot.
8b. The user opens "+N". A press on "+N" lays the folded rows over the bubble with Collapse at the end; Collapse, Escape or a click elsewhere folds them back. - Narrow window. In a window under 400 px wide the herdr group shows its dot and its count; a tap unfolds it. The column never runs past the bottom edge.
Failure path: the window is too short for even one urgent row and the "+N" row. Only the "+N" row remains, with the urgent dot; a press on it shows the folded rows, scrolling inside the window.
Environment
- OS / version: macOS (Darwin 25.2.0)
- Tauri app, herdr plugin with machines
localandibricks41
Activity
yw0nam commentedon Nov 30, 2026
Two more owner decisions, 2026-11-30:
event_idper herdr pane anddonebatched, a buffered batcheddonewould reach the backend after the same pane's urgentblocked, out of order. A group now removes its same-id group (same plugin) waiting in the other signal buffer, so only a source's newest state is delivered.docs/reference/signals-ingress.md§ The event_id field changes accordingly (breaking: transport behaviour).fix!: herdr chips group by source, a spoken state clears its chip, an…