Skip to content

Fix the auto collapsing traces#216

Merged
rakyll merged 1 commit into
mainfrom
jbd/dashboard
Jun 29, 2026
Merged

Fix the auto collapsing traces#216
rakyll merged 1 commit into
mainfrom
jbd/dashboard

Conversation

@rakyll

@rakyll rakyll commented Jun 28, 2026

Copy link
Copy Markdown
Member

The dashboard uses live polling (every 3 seconds) to fetch updated trace data for the active conversation. Each time new trace data is retrieved, the dashboard completely regenerates the HTML for the execution trace cards using innerHTML. Because the cards were hardcoded to render with the collapsed and hidden classes by default, any cards the user had expanded would collapse every time the poll triggered. Since users are usually scrolling while reading the expanded trace details, this gave the impression that the history was collapsing during scrolling.

Fixes #202.

The AX Dashboard uses live polling (every 3 seconds) to fetch updated trace data for the active conversation. Each time new trace data is retrieved, the dashboard completely regenerates the HTML for the execution trace cards using innerHTML. Because the cards were hardcoded to render with the collapsed and hidden classes by default, any cards the user had expanded would collapse every time the poll triggered. Since users are usually scrolling while reading the expanded trace details, this gave the impression that the history was collapsing during scrolling.

Fixes #202.
@rakyll rakyll requested review from anj-s and joycel-github June 28, 2026 02:50
@rakyll rakyll merged commit fb724a2 into main Jun 29, 2026
8 checks passed
@rakyll rakyll deleted the jbd/dashboard branch June 29, 2026 07:04
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.

Dashboard conversation history collapses when scrolling

2 participants