# 🚀 CodeBuddy Code v2.20.0 Release

## ✨ New Features

- Usage Statistics Command: New `/stats` command to easily view your usage metrics, including token consumption, session duration, model invocation counts, and other core data
- Multi-dimensional Statistics View: Support for viewing usage by model category, with flexible switching between 7-day, 30-day, and all-time ranges
- Visual Charts: Intuitive ASCII bar charts that clearly display usage distribution across different models

## 🔧 Improvements & Optimizations

- Session Management Enhancement: Optimized storage and cleanup mechanisms for session history, improving stability and reliability of session management
- Interactive Experience Improvement: Enhanced interaction experience for confirmation dialogs, input prompts, and session panels, making operations smoother and more convenient
- Keyboard Operation Optimization: Improved response stability and accuracy of keyboard shortcuts, boosting operational efficiency
- Installation Detection Improvement: Enhanced accuracy of installation method detection across different environments, reducing environment-related issues
- Agent Framework Upgrade: Updated OpenAI agents SDK to the latest version, improving overall stability and performance

## 🐛 Bug Fixes

- Context Display Issue: Fixed issue where buffer information was still displayed when autocompact was disabled; display logic now behaves as expected
- Linux Compatibility: Resolved dynamic library loading errors that could occur when starting on older Linux systems
- Theme Display Optimization: Corrected theme color display in colorblind mode, improving visual experience
- Response Completeness: Ensured that result messages are always returned when tasks complete, preventing clients from being unable to exit properly
- Error Message Enhancement: Improved error logging with more detailed debugging information for easier troubleshooting
