Skip to content

[bug] herdr chips stack one per event and run past the bottom of the character window #2179

Done

Description

@yw0nam

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

  1. Enable the herdr plugin with one local and one remote machine (ibricks41).
  2. 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.
  3. 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 done as a batched (non-urgent) signal; only blocked is 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:40 writes "delivery": "urgent" for both agent_done and agent_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 goes done and later blocked holds two chips.
  • Urgent chips never fold and have no cap: src/ui/chips/signal-chips.ts:192-195 places every urgent pill; docs/agent-guide/design/signal-chips.md says "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-112 plans 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.

  1. Quiet. No chips. The user works.
  2. One agent waits. A pane on ibricks41 goes blocked. One urgent row appears: Danger dot with its halo, herdr, ibricks41 · claude · <title>, a cross.
  3. 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.
  4. 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.
  5. The user looks at one. A click on a row opens its details sheet, as today. The user answers that agent at its terminal.
  6. 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.
  7. A second source. A Threads producer sends an urgent signal. It gets its own urgent row under the herdr row, also groupable.
  8. 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.
  9. 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 local and ibricks41

Activity

  1. added
    bug
    ui
    on Nov 30, 2026
  2. yw0nam commented on Nov 30, 2026

    @yw0nam
    OwnerAuthor

    Two more owner decisions, 2026-11-30:

    1. With one event_id per herdr pane and done batched, a buffered batched done would reach the backend after the same pane's urgent blocked, 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).
    2. A signal chip leaves once the character has spoken about it: a turn that carried the chip's current state, recorded after the chip arrived, with something said. If the backend chose silence, the chip stays. This applies to urgent and batched chips alike.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions