fix(chat): hover opens the reaction row without moving the conversation; one seen per run

Merged
VI
5d ago
+90-3

What

  • A message that grows under the pointer (its hover opened the reaction row) no longer pulls the pinned chat to the bottom. The row opens below the message; nothing above it moves (Gui #5740).
  • The last message of a room or thread keeps its empty reaction row's height, invisible, so its hover grows nothing (Gui #5741). Phones keep it hidden.
  • "Seen": readers and agents that passed move to the last message of a run from the same person, one face each (Gui #5742).

Why

With the chat at the bottom, each hover grew a message by 20 px and the chat followed the bottom: every message above moved up. With a tall image, the image left the pointer and came back.

How to reproduce the measure

bun run dev, then a Playwright script that sends 8 messages, one with an image, 2 more, and reads the top and height of every [data-chat-message] before and after a hover. [id, Δtop, Δheight] of the messages that changed:

Hover onmainthis branch
text in the middlemessages 1–3 Δtop −20, the hovered one Δheight +20hovered Δheight +20, messages below Δtop +20, none above
message with imagemessages 1–8 Δtop −20hovered Δheight +20, the 2 below Δtop +20, none above
last messagemessages 1–10 Δtop −20nothing moves

Checks run

  • bun run check: pass, except test:store, which fails the same way on a clean main with local bun 1.3.10 (pinned 1.4.4, MIME aliases). CI is the reference.
  • New tests: scripts/chat.test.ts (one seen per run), scripts/ui-panels.test.ts (the last message's row is invisible, not hidden).

Screens

hover-1440.png
react-1440.png
picker-1440.png
room-1440.png
room-390.png

Deliberate decisions

One entry in docs/agents_deliberate_decisions.md (the resize observer ignores growth under the pointer).

🤖 Generated with Claude Code


Summary by cubic

Fixes the chat layout jumping on hover and groups "seen" markers by run of messages from the same person.

  • Hovering a message opens its reaction row below it without moving the conversation; a streaming message under the pointer doesn't follow the bottom until the pointer leaves.
  • The last message of a room or thread keeps its empty reaction row's height, invisible, so its hover changes nothing; phones keep it hidden.
  • Readers and agents that passed now appear once, on the last message of a run from the same person; statuses stay on their original message.