# 🚀 CodeBuddy Code v2.41.8 Release

## 🔧 Improvements

- **Print Mode Output Optimization**: Silent notification messages in print mode to avoid polluting agent output stream, making script integration cleaner
- **Configuration Structure Simplification**: Removed redundant deploymentType configuration field, simplifying product configuration structure

## 🐛 Bug Fixes

- **Custom Request Header Parsing**: Fixed newline character judgment logic to ensure multi-line header configurations are parsed correctly
- **SDK System Prompt Passing**: Fixed the issue where `systemPrompt` parameter was not correctly passed in v2 Session API
- **SDK Session Loading Race Condition**: Fixed race condition when calling `loadSession` and `prompt` concurrently in multi-window scenarios, preventing session data inconsistency

## 📝 Documentation Updates

- **Environment Variable Documentation**: Added `CODEBUDDY_IMAGE_GEN_ENABLED` feature switch documentation for controlling image generation functionality
- **Release Notes**: Added Chinese and English release notes for v2.40.0 through v2.41.7
- **SDK Documentation**: Enhanced documentation for hooks, permissions, TypeScript SDK, etc.
