# 🚀 CodeBuddy Code v2.103.2 Release

## 📦 Version Information

| Component | Version |
|------|------|
| CodeBuddy Code CLI | v2.103.2 |
| Agent SDK JS | v0.3.167 |
| Agent SDK Python | v0.3.166 |

## 🔧 Improvements

- **Plan Mode Visibility Convergence**: Sub-agents can now see the exit tool only when plan mode is explicitly locked. Sub-agents that simply inherit the main session's plan mode will no longer invoke it by mistake, avoiding pollution of the main session's approval popup.
- **Embedded Scenario Adaptation**: Added the `CODEBUDDY_DISABLE_PLAN_MODE` environment variable, allowing hosts to disable plan mode with one switch, adapting to embedded scenarios without an approval popup rendering area.
- **Stats Model Display Name Optimization**: Model aggregation statistics now display the model names configured by users, covering model rankings in Web UI and TUI, Token trend legends, and more.
- **Context Compaction Switch Compatibility**: Optimized compatibility logic for the compaction switch. When the new switch is explicitly disabled, it will no longer be incorrectly enabled by legacy configuration.

## 🐛 Bug Fixes

- **Context Compaction Recovery Stability**: Fixed recovery stability for `/compact` and automatic compaction in scenarios with extremely long context, pending approvals, and image results, reducing the probability of request interruption after compaction failures.
- **Monitoring Metrics Reporting Loss**: Fixed MeterProvider registration failure caused by multiple OpenTelemetry API instances, ensuring metrics data is reported normally.
