Enhance chat panel with session stats and improved UI#105
Merged
Conversation
- Welcome message fallback uses Latvian instead of English - Quick questions hide after first user message and moved above input - Status bar shows session turns, tokens, cost, and tools count - Model name derived from agent config instead of hardcoded 'Claude' - Tool calls displayed as chips instead of expandable details - Updated subtitle, quick question, and status bar styles - Fixed Opus pricing to $5/$25 per MTok (was $15/$75) - Updated test bounds for Opus cost estimation https://claude.ai/code/session_015oJpLxdf2NXp7UbYMD1yaY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the ChatPanel component with comprehensive session statistics tracking and improves the user interface with better styling and localization support.
Key Changes
Session Statistics Tracking:
sessionStatsref to track conversation metrics: turns, total tokens, total cost, and tools calledLLM Configuration:
llmconfig type with model field to support dynamic model namesmodelNamecomputed property to parse model names from config and strip version suffixes (e.g., "claude-sonnet-4-5" → "Sonnet")UI Improvements:
Localization:
Cost Estimation Updates:
Validation
Testing
Existing integration tests updated and passing:
TestEstimateCostinmodules/chat/integration_test.govalidates cost estimation with updated Opus pricinghttps://claude.ai/code/session_015oJpLxdf2NXp7UbYMD1yaY