# 🚀 CodeBuddy Code v2.89.0 Release

## ✨ New Features

### Canvas Terminal

An all-new `#/canvas` view that supports free-form layout of multiple terminal tiles on an infinite canvas. You can drag to move terminal windows, resize in 8 directions, snap to grid, zoom and pan to browse the full layout, and box-select for batch operations. Each terminal tile supports an independent title display, creating a truly multi-terminal collaborative workspace.

### Pre-Message Compaction

Automatically checks context usage before sending a message. When the threshold is exceeded, the context is compacted first before processing the message, preventing oversized context from degrading conversation quality. After compaction, the original user message is processed directly with no additional recovery steps needed. The trigger threshold can be customized via the `CODEBUDDY_PRE_MESSAGE_COMPACT_PCT` environment variable (default 10%).

## 🔧 Improvements

- **MCP Tool List Fault Tolerance**: When an MCP Server's listTools call fails, it automatically falls back to cached results with a 30-second cooldown to avoid frequent retries, improving MCP connection stability
- **Agent Subagent Default Mode**: When the subagent_type parameter is omitted, the default mode is now general-purpose, making behavior clearer and more predictable
- **SDK Usage Data Enhancement**: Cache-related token statistics fields are now fully populated in message responses, improving usage data accuracy
- **Team Feature Toggle**: Agent Teams functionality can be flexibly controlled via the `CODEBUDDY_CODE_EXPERIMENTAL_AGENT_TEAMS` environment variable
- **Context Usage Query Optimization**: Fixed an issue where context usage queries failed after resume, ensuring data integrity across compaction and recovery scenarios
- **Installation Script Acceleration**: Download source switched to a globally accelerated domain, improving installation speed for overseas users

## 🐛 Bug Fixes

- **Headless Mode Proxy Connection**: Fixed an issue where MCP connections failed in proxy environments under headless builds, ensuring normal operation in corporate network environments
