#7407·CopilotKit

Expanded tool activity can disappear while the user is reading it

Author: kvnlooCreated Sep 24, 2026Updated Sep 29, 2026

Problem

The reskinnable-demo intentionally keeps only the two most recent wildcard tool-activity rows visible.

That rolling window works for passive progress, but it currently ignores direct user interaction.

ToolCallChip has local open state for the expanded input/output detail, then applies the rolling-window check before rendering:

typescript
if (!recent) return <></>;

So this sequence is possible:

  1. Tool A is visible.
  2. The user expands A to inspect its input/output.
  3. Tools B and C arrive while the agent keeps working.
  4. A ages out of the two-row window.
  5. The expanded row disappears while the user is reading it.

Nothing about the user's inspection intent is preserved; background progress wins over foreground attention.

Why it matters

The rolling window exists to reduce attention cost, not to steal attention.

The interaction invariant I think is:

automatic compression may retire passive activity, but it should not evict a surface the user is actively inspecting.

That is a useful distinction for real-time agent UIs generally: machine recency and human focus are different signals.

Smallest proof

A focused component regression can make this deterministic:

  1. Render A and expand it.
  2. Advance recency so A is no longer in the automatic two-row window.
  3. Assert A's expanded detail remains visible.
  4. Collapse A.
  5. Assert it can now retire normally.

The minimal behavior could simply treat open as a temporary pin:

show = recent || open

That preserves the bounded passive view while allowing explicit human attention to override automatic eviction.

I would keep this separate from #7406: #7406 fixes incorrect recency caused by virtualization; this is about what should happen when correct recency conflicts with active user focus.

AI-use note: I used an AI assistant to trace the rolling tool-activity rendering and compare automatic recency with local expanded state; I searched for an existing issue before filing.