Expanded tool activity can disappear while the user is reading it
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:
if (!recent) return <></>;So this sequence is possible:
- Tool A is visible.
- The user expands A to inspect its input/output.
- Tools B and C arrive while the agent keeps working.
- A ages out of the two-row window.
- 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:
- Render A and expand it.
- Advance recency so A is no longer in the automatic two-row window.
- Assert A's expanded detail remains visible.
- Collapse A.
- Assert it can now retire normally.
The minimal behavior could simply treat open as a temporary pin:
show = recent || openThat 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.
Source: CopilotKit/CopilotKit