Skip to content

Keep the agent message row's chevron fixed while its time shows on hover - #51173

Merged
orca-remote-automation[bot] merged 4 commits into
mainfrom
fix/agent-row-stationary-chevron
Nov 27, 2026
Merged

orca-remote-automation[bot] merged 4 commits into
mainfrom
fix/agent-row-stationary-chevron

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When you hover a message between agents in a chat, its time appears. Before, the time pushed in and the chevron (›) jumped left. Now the chevron stays at the row's right edge and the time fades into a fixed spot beside it.

What Changed

NativeChatAgentMessageRow:

  • The row now spans the full width. Its end holds, in order: hover actions, the time, then the chevron, always last and pinned to the right.
  • The time keeps a reserved right-aligned slot (min-w-16) and only toggles visibility on hover/keyboard focus, so nothing shifts. Touch still shows it; narrow chats (below 400px) drop it and show it in the opened message.
  • The first line takes only the room left (basis-0 grow), and the sender name can shrink, so a long name with a wide dated time ("Yesterday 10:42 PM") cuts the name instead of pushing the time and chevron past the row's edge.
  • Rows switch to the two-line layout below 400px (was 360px), so item chips keep room beside the time slot.
  • The "is the first line cut" measurement now only accounts for the width-revealed actions (the time no longer takes width on hover), counts the first line's own spare room, and ignores a first line that has wrapped to its own line in narrow chats. A short waiting message therefore shows no chevron at rest and nothing changes when its Steer/Edit/Delete reveal.

Why

A control that moves under the pointer on hover is hard to hit and looks jittery. A fixed time slot with a visibility toggle keeps every row's chevron and time aligned. Checked against comparable products.

Linked Issue

N/A (internal item).

Visual Proof

Before After
Hover/focus, dark (row 2 focused)
Hover/focus, light
400px panel, dark (now wraps)
Narrow 300px, dark
At rest 720px, light
Tightest one-line width, long name + yesterday's time focused —

Testing

  • Component fixtures (NativeChatAgentMessagePreviewRow, NativeChatAgentMessageCard*) at 300/400/466/480/720px, with new rows for a long name with yesterday's time and a short waiting message with hover actions, light and dark, including keyboard focus (same reveal as hover) and open rows.

  • pnpm check:changed passes.

  • No unit test: this is pure layout.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change (no test added: layout only, verified by fixtures)

Performance

None, because the row's layout measurement reads the same number of rects as before (it swaps the container rect for the row-end rect); the resize observer watches one more element (the row's end), and only on rows that measure.

Risk

Previews are cut earlier, because the time's slot is always reserved: about 64px for today's times and wider for dated or longer-locale times. Rows between 361px and 400px now use the two-line layout, where a plain (non-opening) row shows no time. When a long name or item chips fill their cap, the first line can shrink to a sliver; with a dated time ("Yesterday …") at about 400–450px, chips also get a little less room. The riskiest part is the cut-line measurement deciding whether a one-line message shows a chevron; checked at all fixture widths. Plain revert.

Level: Low

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • Before/after screenshots attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (renderer-only layout; N/A)
  • pnpm check:changed passes

@orca-remote-automation
orca-remote-automation Bot merged commit 5f8eb86 into main Nov 27, 2026
57 checks passed
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.

0 participants