# CodeBuddy Code v2.50.4 Release

## Improvements

### Background Task Experience Upgrade

Background agents now automatically create lightweight teams and send results back via SendMessage, eliminating the need to manually poll with TaskOutput. Background tasks automatically notify the main agent upon completion, making the overall interaction smoother. UI progress display has also been unified, with background tasks integrated into TeammateProgressView for centralized display.

- **Startup Performance Optimization**: Optimized the initialization process during first launch, parallelized the registration flow, improving startup speed by approximately 10%
- **Terminal Rendering Optimization**: Unified all animation components to a single global clock driver, reducing terminal flickering caused by independent timers
- **Message Rendering Fix**: Fixed an issue where messages were not displayed after completion, requiring terminal resize to become visible
- **Memory Leak Fix**: Fixed an issue where `refreshStatic` caused the internal output buffer to accumulate indefinitely
- **Task Cleanup Fix**: Fixed an issue where failed subtasks were not properly cleaned up, leaving residual progress displays

## Bug Fixes

- **Bash Tool Output Fix**: Fixed an issue where occasional extra blank lines appeared below Bash tool execution results
