Skip to content

Agent events UI cleanup and redesign - #284

Merged
shanselman merged 2 commits into
openclaw:masterfrom
christineyan4:christiney/agent-events-ui
May 6, 2026
Merged

shanselman merged 2 commits into
openclaw:masterfrom
christineyan4:christiney/agent-events-ui

Conversation

@christineyan4

@christineyan4 christineyan4 commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Overhaul of the Agent Events page in the tray app for better usability and cleaner presentation.

Changes

Deduplication and Caching

  • App-level ring buffer cache (max 400 events) -- events persist when HubWindow is closed
  • RunId+Seq deduplication prevents duplicates across cache layers
  • Assistant streaming chunk collapse -- only keeps latest chunk per RunId

Stream Classification

  • ResolvedStream property resolves newer item stream protocol using data.kind
  • Events no longer incorrectly show as ITEM

Layout Redesign

  • Click-to-expand cards with native FontIcon chevron indicator
  • IsExpanded tracked on model for reliable state across ListView recycling
  • Assistant events: expanding shows full message text seamlessly (no JSON)
  • Non-assistant events: expanding shows RunId + formatted JSON

Badge Styling

  • Tinted backgrounds (20% opacity) with colored text
  • Tool events: burnt sienna (#B45D3A), distinct from error red and accent blue

Summary Improvements

  • Tool events prefer data.title over data.name
  • Lifecycle events show phase info
  • Raw JSON hidden for assistant/error/lifecycle streams
Recording.2026-05-05.223238.mp4

- Add App-level ring buffer cache (max 400) for events persistence
- Add RunId+Seq deduplication and assistant streaming chunk collapse
- Fix 'item' stream classification via ResolvedStream property
- Redesign cards: click-to-expand with FontIcon chevron, IsExpanded on model
- Assistant expand shows full message text seamlessly (no JSON dump)
- Non-assistant expand shows RunId + JSON detail
- Tinted badge styling (20% opacity bg + colored text)
- Tool badge color: burnt sienna (#B45D3A)
- Improved summary lines: tool prefers data.title, lifecycle shows phase
- Hide raw JSON for assistant/error/lifecycle streams

Co-authored-by: Copilot <[email protected]>
@christineyan4

Copy link
Copy Markdown
Contributor Author

i'm sure a bigger/better UI refresh is incoming, but wanted to fix some of the functionality issues that i found with agent events page! i.e. repeat logging of assistant events, lack of caching, and tool calls getting classified simply as "items"

Ensure assistant event cards swap to full text when expanded and hide raw JSON for streams whose summaries already carry the useful context.

Co-authored-by: Copilot <[email protected]>
@shanselman
shanselman merged commit 584a19f into openclaw:master May 6, 2026
8 checks passed
@clawsweeper clawsweeper Bot mentioned this pull request Nov 6, 2026
10 of 16 tasks
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.

2 participants