# CodeBuddy Code v2.49.5 Release

## Improvements

- **MCP Server Readiness Detection**: Fixed an issue where MCP tools might not be ready during initialization in SDK mode, ensuring tools are fully initialized before the first invocation
- **Build Optimization**: Removed no-longer-needed build flags from Bun compilation, simplifying the binary packaging process

## Bug Fixes

- **Session Compression Hang Fix**: Fixed an issue where ACP sessions could permanently hang after compressing message logs; added timeout protection mechanism to prevent permanent blocking in abnormal conditions
- **Session History Restoration**: Fixed an issue where custom message items were not correctly skipped when finding the last message ID, avoiding incorrect message positioning when restoring sessions
