Skip to content

feat: analytics transcript matches session page style#28

Open
softberries wants to merge 5 commits intomainfrom
feat/analytics-transcript-style
Open

feat: analytics transcript matches session page style#28
softberries wants to merge 5 commits intomainfrom
feat/analytics-transcript-style

Conversation

@softberries
Copy link
Member

Summary

Rewrite the analytics session transcript (SessionTranscript.svelte) to use the same chat-bubble style as the session detail page instead of the log-style expandable rows.

Changes

  • User messages: left-aligned pink bubbles
  • Assistant messages: right-aligned muted bubbles
  • Tool uses: colored expandable blocks with tool name badge + summary (same colors as session page)
  • Keeps the type filter badges (user/assistant/progress/system)
  • Shows token usage inline on assistant messages and tool blocks
  • Filters out empty/whitespace-only records
  • Collapses excessive newlines

Test plan

  • Manual: compare analytics transcript with session page transcript for the same session
  • Manual: verify type filter badges still work
  • Manual: verify tool blocks expand/collapse

@softberries softberries force-pushed the feat/analytics-transcript-style branch from 475b3b0 to 99b542a Compare March 26, 2026 09:35
input_tokens from Anthropic API includes cache_read and cache_write tokens.
Subtract them to get fresh (non-cached) input before calculating cost,
otherwise cached tokens are charged at both input rate and cache rate.
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.

1 participant