Skip to content

fix(chat): the seen popover opens alone, and no "✓ agent did it" line under a message - #674

Merged
rafavalls merged 2 commits into
mainfrom
fix/footer-status-popover
Nov 30, 2026
Merged

rafavalls merged 2 commits into
mainfrom
fix/footer-status-popover

Conversation

@rafavalls

@rafavalls rafavalls commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

What

Why

Both were reported in production (Valls):

  1. Hovering an agent's face opened the "Viktor's claude-2 · stopped · 7 min" popover (z-20) on top of the message's floating hover bar (z-10, opened by the same hover). The bar peeked out under the popover.
  2. Valls asked to remove the "✓ did it" line.

Only the client changed. messageFooters (web/features/chat/model.ts) now puts a done ack in passed (a face) instead of statuses (a line). The "doing", "blocked" and "waiting" lines stay. A done-only footer now sits in the text gutter, like the other faces-only footers. In a run of messages from one person, the face moves to the run's last message, as the receipts do.

Checks run

  • bun run check: pass
  • chat DOM tests (bun test --conditions=browser scripts/ui-panels.test.ts): 181 pass. One new test covers one popover at a time, the hover bar hiding, and the done row showing "terminou".
  • bun test scripts/chat.test.ts: pass (the model expectations now say done is passed)
  • bun run test:design-system: pass
  • bun run screens -- --footer (new): on main it fails with 'the "did it" line is under the message'. On this branch it passes, and it checks that the hover bar's opacity is 0 under the popover.

Router bench

not touched

Deliberate decisions

none

Screens

Test data, 1440 px, English.

Popover over the hover bar. Before, the bar peeks out under the popover. After, only the popover shows:

Before After
before after

"did it" line. Before, the line shows under the message. After, there is no line, only the agent's face in the gutter, and hovering it shows "ended":

Before After
before after

Full room: before · after

🤖 Generated with Claude Code


Summary by cubic

Fixes two chat footer bugs reported in production (Valls): hovering an agent's face opened the "seen" popover on top of the message's hover bar, which peeked out from under it, and a finished agent showed a "✓ did it" line under the message.

  • The hover bar hides while the seen popover is open, and only one seen popover shows in the room at a time.
  • A "done" ack now renders as a face beside the read receipts (with "terminou/ended" on hover), like an agent that stopped, instead of a status line. The doing, blocked, and waiting lines stay.
  • messageFooters now puts done acks in passed, so a finished agent's face moves with the run's seen to the last message.

Written for commit 599c492. Summary will update on new commits.

View guided diff Turn on auto-fix

… under a message

The seen popover (z-20) opened over the message's floating hover bar (z-10), which peeked out from under it. The bar
now hides while the popover is open, and only one seen popover shows in the room at a time (moving to another
message's faces during the close delay hands it over at once). Hover intent is unchanged.

A finished agent ("done" ack) is no longer a "✓ claude did it" line: it is a face beside the receipts, like an agent
that stopped, and its popover row says "terminou · 7 min". Server data is unchanged. `bun run screens -- --footer`
shows both and fails if either comes back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafavalls
rafavalls enabled auto-merge (squash) November 30, 2026 14:57
@rafavalls
rafavalls merged commit f58b1d3 into main Nov 30, 2026
6 checks passed
rafavalls added a commit that referenced this pull request Nov 30, 2026
…to the faces, flips below

The popover a single agent's face opened (Valls, in production) had no "Visto por": the title showed
only when someone had read it, so an agent that only received the message (or agents that finished or
stopped, #674) got a bare row. It was also a fixed 288px wide from the stack's right edge, so it ran
left across the message, and it always opened above, onto the text.

- The title is always there; rows keep their status (leu, leu em parte, recebeu, parou, terminou).
- Anchored to the faces: its right edge on the stack's, as wide as its rows (240-320px, never wider
  than the screen), 8px off (the hover bridge).
- Opens above; below when the room above (the scrolling list's top, or the window's) is shorter
  than the popover, measured each time it opens.
- Tests: the one-agent delivered case (title, row, status), the width bounds, above and the flip
  below. screens --receipts: an agent-only stack that only received it, agents that finished and
  stopped, and a tap on the faces at 390 px (busy and one-face); it counts only visible faces (the
  phone and desktop stacks are both in the DOM).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafavalls added a commit that referenced this pull request Nov 30, 2026
…to the faces, flips below (#676)

The popover a single agent's face opened (Valls, in production) had no "Visto por": the title showed
only when someone had read it, so an agent that only received the message (or agents that finished or
stopped, #674) got a bare row. It was also a fixed 288px wide from the stack's right edge, so it ran
left across the message, and it always opened above, onto the text.

- The title is always there; rows keep their status (leu, leu em parte, recebeu, parou, terminou).
- Anchored to the faces: its right edge on the stack's, as wide as its rows (240-320px, never wider
  than the screen), 8px off (the hover bridge).
- Opens above; below when the room above (the scrolling list's top, or the window's) is shorter
  than the popover, measured each time it opens.
- Tests: the one-agent delivered case (title, row, status), the width bounds, above and the flip
  below. screens --receipts: an agent-only stack that only received it, agents that finished and
  stopped, and a tap on the faces at 390 px (busy and one-face); it counts only visible faces (the
  phone and desktop stacks are both in the DOM).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant