# 🚀 CodeBuddy Code v2.52.5 Release

## 🔧 Improvements

### Image History Optimization

Image data in conversation history is now deduplicated and stored via BlobStore. Only the most recent N turns retain full image data, while earlier turns are automatically replaced with text placeholders, significantly reducing context token consumption. When the same image is read multiple times within the same conversation turn, a reference prompt is returned instead of resending the full data.

### Theme System Refactoring

Expanded the theme color system to support semantic colors (such as success, warning, error, info, etc.) with enhanced terminal color compatibility. Added ChalkFactory for intelligent terminal capability detection, automatic color level adaptation, and support for color-blind-friendly themes.

- **Gzip Compression Compatibility Fix**: Fixed an issue where request bodies were incorrectly compressed during enterprise address login; gzip compression is now only enabled in SaaS and iOA environments
- **Custom Model URL Handling**: Automatically appends the `/chat/completions` suffix to custom model URLs, so users no longer need to manually construct the full path
- **Bash Timeout Configuration**: Supports dynamic configuration of the Bash tool timeout via settings env

## 🐛 Bug Fixes

- **Hooks Command Execution**: Fixed an issue where hook commands containing quotes, such as `node -e "..."`, failed to execute
- **Logout Race Condition Fix**: Fixed an issue where async operations were not terminated in time during logout, causing the session to be written back
- **Conversation Compression Identifier Correction**: Fixed an issue where the conversation identity was misidentified after async context compression, ensuring compressed messages are correctly attributed to the main conversation
