# CodeBuddy Code v2.50.0 Release

## New Features

### Agent Teams Multi-Agent Collaboration

The new Team feature enables multiple Agents to work collaboratively, implementing task assignment and message passing through tools like TeamCreate, TeamDelete, and SendMessage. The Task tool extends support for teammate generation, and TaskList supports team task coordination, suitable for parallel processing scenarios in complex projects. Team functionality can be flexibly enabled or disabled via environment variables.

## Improvements

- **Sub-agent Task Display Optimization**: Background tasks display real-time progress in `@AgentType` style, synchronous task progress is integrated into the loading spinner for a cleaner interface
- **Task Completion Notification Enhancement**: Notification messages include statistics such as execution duration, tool call count, and token usage for better understanding of task execution
- **Background Task Resource Cleanup**: Associated background shell tasks are automatically cleaned up when sub-agents finish, preventing resource leaks
- **TaskOutput Timeout Adjustment**: Default timeout increased from 30s to 120s, defaults to blocking wait for completion, reducing timeout interruptions
- **Lazy-loaded Tool Fix**: Fixed an issue where lazy-loaded tools still reported "Tool not found" after being activated via search; now auto-activates when not yet activated and prompts for retry
- **Tool Search Results Optimization**: Search results changed to concise text format, showing tool names and descriptions even when not expanded
- **MCP Server Management Improvement**: Fixed an issue where configuration was not actually deleted after removing an MCP server; SDK-registered MCP servers now automatically connect during initialization and are immediately available
- **SDK Parameter Format Standardization**: CLI parameter formats for JS and Python SDKs standardized to `--flag=value` style
- **Plan Mode Interaction Optimization**: Distinguishes between "continue planning" and "exit plan mode" operations when rejecting a plan, avoiding being trapped in an unrecoverable planning loop
- **Queue Message Display Optimization**: Supports intelligent truncation with Chinese character width awareness, adaptive to terminal width
- **Memory Feature Enabled by Default**: Adjusted the default value of the Memory feature to enabled

## Bug Fixes

- **Dependency Injection Stability**: Fixed an issue where singleton components could be instantiated multiple times in circular dependency scenarios
