# CodeBuddy Code v2.49.1 Release

## Security Hardening

- **Sandbox Configuration File Protection**: Automatically prohibits writing to CodeBuddy configuration files (settings.json) in sandbox mode, preventing sandbox escape attacks through hook injection; file system denial rules are synchronously applied to Write, Edit, and other file operation tools to ensure comprehensive security policy consistency

## Improvements

- **Session List Filtering**: Filters out sub-agent and compressed branch sessions, ensuring the session list and recent sessions only display actual user sessions
- **SDK Documentation Fix**: Fixed bracket formatting issues in authentication configuration links

## Bug Fixes

- **Session History Navigation**: Fixed an issue where switching sessions or restoring history could cause `lastMessageId` to incorrectly point to custom messages without IDs (such as summaries or topics), leading to conversation chain breakage
