# 🚀 CodeBuddy Code v2.37.2 Release

## 🔧 Improvements

### ACP Authentication Enhancement

- User information is now returned in the authenticate response, allowing clients to get the current logged-in user's ID, username, and nickname
- Fixed issue where calling the authentication API again for already logged-in users would not display the login page

### Asynchronous Context Compression

Introduced asynchronous context compression mechanism that automatically triggers background compression when conversation history reaches a critical threshold, improving response performance in long conversation scenarios.

### SDK Connection Performance Optimization

- Optimized connection pool mechanism with prewarmed connection reuse for concurrent query scenarios, significantly reducing first message latency
- Added `prewarmInitialize` option to move CLI startup time to the prewarm phase
- Added session lock mechanism to prevent data confusion caused by concurrent restoration of the same session ID

### Other Improvements

- **ACP Session Model Isolation**: Fixed issue where switching models affected global configuration; model switching now only affects the current session
- **Plugin Uninstall Cleanup**: Fixed issue where MCP configuration remained after uninstalling plugins; related configuration is now automatically cleaned up during uninstallation
- **Network Error Handling**: Optimized automatic retry logic for network errors in print mode to avoid abnormal exits
- **SDK Performance Optimization**: Optimized session restoration and user interaction flow, improving SDK response speed and stability
- **Session Storage**: Support cross-project directory session search, added meta file separated storage
- **Authentication Flow**: Optimized authentication mechanism, added user information query interface
- **Service Mode**: Enhanced server mode policy functionality
