Repository navigation
Description
Work description
The chip column beside the character holds every chip in one stack: signal chips, then the Threads chip, then the delegation chip (.yui-chip-column, src/ui/surfaces/surfaces.ts:158; mounts: signal chips src/app/bootstrap-configured.ts:282, Threads chip src/windows/main.ts:366-371, delegation chip src/windows/main.ts:396). Each chip appends itself and has its own rule for leaving:
- Signal chips: batched ones leave after 30 minutes (
DELEGATION_DONE_TTL_MS,src/io/bridge/delegations/delegations-store.ts:11), urgent ones stay until dismissed; the folded view shows 3 (SHOWN_FOLDED,src/ui/chips/signal-chips.ts:19). - Threads chip: hidden when no Thread is waiting or the Threads window is open (
src/ui/threads/chip/threads-chip.ts:85). - Delegation chip: hidden when nothing runs or the push socket is disconnected (
src/ui/chips/delegation-chip.ts:167-169,:194-197).
When several are up at once the column gets long, and the owner finds it hard to read. A planned diary chip would add one more kind. This work decides how the column folds or merges chips so it stays readable, for the chips that exist today and for new ones.
Per D-39, it starts from a storyboard of how the user meets and clears these chips, then a mock at the pet window's real size (400x600), before any spec.
Storyboard (owner, 2026-11-25)
Journey: the user notices the chips beside her, reads what matters, and clears them. It starts when the user glances at her while working and ends when the column is empty or short again. One window: the character window (400×600).
| Frame | The user sees | The user does | Next |
|---|---|---|---|
| 1 | No chip beside her | Works | — |
| 2 | One signal arrives: one chip | Glances | Unchanged |
| 3 | Several kinds at once: a diary entry, four signals (one urgent), a waiting Thread, a running background task. Today this is up to 7 rows, about 230 px | Scans the column | The layout the mock compares |
| 4 | What is urgent and what is new is clear at a glance; the urgent signal's dot pulses | Picks one | — |
| 5 | Opens a chip: the diary opens the letter card, the Thread chip the Threads window, a signal its details sheet, the task chip its list | Reads | The diary and Thread chips leave once read; a signal leaves on ✕ or after 30 min |
| 6 | The column is short again | Keeps working | — |
Failure and edge frames:
- a. The column shares the 30% top line with the speech bubble and the Ask card and overlaps them.
- b. The Character menu's right column uses the same area as the chip column.
- c. Hold-to-fold (a 0.5 s press folds chips into dots) exists today; the mock shows whether it stays.
Layouts the mock compares at frame 3:
- A. One row per kind, urgent pinned. Urgent signals first, one row each, never folded; then the diary; then one signal row ("newest title +3", unfolds on click); then Threads (count); then the task chip (count). Usually 4–5 rows. Prior art: grouping by source (iOS "By App", Android
setGroup, macOS), urgent kept apart and never auto-dismissed (Carbon, Atlassian Flags, Astryx error toasts), one icon per kind (Hermes Agent Pets). - B. Three rows overall. By priority, three rows show and the rest fold into a "+N" row; hover unfolds. Prior art: Sonner
visibleToasts3, notistackmaxSnack3, AstryxmaxVisible5. - C. One count row. "7 notices" in one row (a pulsing dot when one is urgent); a click unfolds today's column. Prior art: iOS notification "Count" view.
Recommended: A — it keeps every chip's own click and leaving rule (acceptance criteria) and follows the most prior art.
Decided from the mock (owner, 2026-11-25)
Mock: https://claude.ai/artifact/2hKb2rPrbzNCRV3EJBJyff (private).
- Layout A. Urgent signals first, one row each, never folded into a count; then the diary chip (below urgent signals, D-57); then one row for the other signals (the newest title plus "+N", unfolding in place on click); then the Threads chip (count); then the task chip (count). Each chip keeps its own click action and leaving rule.
- Step aside, one surface leads at a time (revised by the owner the same day: move first, fold only what still does not fit).
- While the speech bubble or an Ask card shows, the column moves up so its bottom sits 8 px above that surface's top edge, using the room up to the window top. Only the non-urgent rows that still do not fit fold into one "+N" row, which unfolds again once the surface is gone. Urgent rows always stay visible. At 400×600, five rows fit above a full bubble (bottom at 292 px) and just fit above an Ask card (bottom at 172 px); the column sits right of her face.
- When the urgent rows fit but the urgent rows plus the "+N" row do not (e.g. 190×284 with an Ask card and two urgent signals), only the urgent rows show and no "+N" row: nothing but urgent rows ever reaches into the surface, and every row returns once it is gone (owner, at the review).
- While the Character menu is open, the column fades out (140 ms) and returns when the menu closes.
- Dropped: the one-row count over the Ask card (an earlier proposal in this round).
- Narrow window: icon only (owner, at the review, from mock https://claude.ai/artifact/XQPYsrLk48bNZRJ3AeJ9hU). Measured at 190×284: the column starts 151 px from the left and leaves 39 px, so each pill showed only its dot and ×. When the column's own width (inside its left padding) is under 9rem (144 px, today's width at 400 px, so 400×600 is unchanged), each chip shows only its dot and its count, with no title or cross; a tap opens it as before. It never covers her. Rejected in that round: a minimum column width (the pills cover her body, and her face once the column moves up for the bubble or the Ask card) and a column above her head (28 px of room at 190×284, or a window resize).
- Rejected: B (three rows overall, hover unfolds) and C (one count row); both hide each chip's own action behind an extra step.
Acceptance criteria
- Storyboard and mock reviewed by the owner; the folding or merging rule is picked from the mock
- With every chip kind up at once, the column follows the picked rule
- Each chip keeps its own click behavior and leaving rule
Architecture map
Inside the ui layer's display module: a new part src/ui/surfaces/chip-column.ts (pure planColumn plus its observer glue, wired only in the pet window's src/windows/main.ts), the chip parts under src/ui/chips/ and src/ui/threads/chip/. Exchanges added, all inside the display module, so no module link changes:
chip-column-chips,chip-column-threads: each chip row root carriesdata-chip-count(anddata-chip-urgenton urgent signal pills); the column reads only that metadata.chip-column-bubble,chip-column-ask: the column reads the bubble's and the Ask card's top edge and moves up above it.chip-column-menu: while the Character menu root is shown, a CSS:has()rule hides the column and the overlay's hit targets skip its chips.
Dependencies
None. The diary prototype (not opened yet) adds its chip to whatever rule this settles.
Reference docs
docs/:docs/agent-guide/design-context.md,DESIGN.md,PRODUCT.md
Checklist
- Schema changes update
docs/reference/client-context.mdbefore the code - No unverified assumptions (web/context7 cross-check, then record in docs if needed)
- No brain in the client (firing ≠ judgment)
-
cargo check+pnpm buildpass
Activity
yw0nam commentedon Nov 29, 2026
PR #2131 (75b6919, merged to main 2026-11-25) built this, but the issue stayed open. Checked against main on 2026-11-29:
src/ui/chips/signal-chips.ts, mount order insrc/windows/main.ts).planColumninsrc/ui/surfaces/chip-column.ts).src/ui/surfaces/surfaces.css), and a narrow column shows icons only (@container (width < 9rem)).Not built here: the diary chip row. It belongs to the Diary work and takes its place below the urgent rows when that work lands.