# 🚀 CodeBuddy Code v2.4.0 Release

## ✨ New Features

- Task Execution Turn Control: Added `--max-turns` command-line parameter, allowing you to precisely control the AI assistant's execution turns, avoiding infinite loops and improving task execution controllability

## 🔧 Improvements

- Execution Capability Enhancement: Default maximum execution turns increased from 100 to 500, providing more processing capacity for complex tasks and reducing task interruptions caused by turn limits
- External Editor Integration: Added Ctrl+G shortcut support for quickly invoking external editors like VSCode or Sublime Text to edit long text, improving input experience
- Log Saving Optimization: Improved log persistence mechanism to ensure all log information is completely saved when the process exits, facilitating troubleshooting
- Session Management Optimization: Improved historical session list display by automatically filtering internal sub-agent sessions, making the session list clearer

## 🐛 Bug Fixes

- Native Version Command Compatibility: Fixed the issue where the `/release-notes` command could not run properly in Native environment
- Telemetry Data Accuracy: Fixed the missing identification information in tool invocation telemetry data to ensure complete data reporting
- Auto-update Stability: Enhanced the auto-update lock mechanism in multi-process scenarios to avoid update conflicts
- Sub-agent Interruption Issue: Fixed the issue where sub-agents could not respond to interrupt commands, improving interactive experience
