# 🚀 CodeBuddy Code v2.105.2 Release

## 📦 Version Information

| Component | Version |
|------|------|
| CodeBuddy Code CLI | v2.105.2 |
| Agent SDK JS | v0.3.173 |
| Agent SDK Python | v0.3.172 |

## 🐛 Bug Fixes

- **Slow CLI Startup in Non-Interactive Mode**: Fixed an issue where, when CLI initialization in non-interactive mode waited for MCP servers to become ready, late registration of the SDK MCP server triggered a rescan that orphaned the previous Deferred and caused `getConnectedServers` to keep waiting until timeout (~30 seconds). The logic has been changed to determine server readiness based on real-time state changes, returning immediately after configuration is complete while still correctly waiting for late-arriving SDK / ACP servers.
- **Context Compaction Boundary Fix**: Unified the history boundary filtering before PreMessage and MaxToken compaction, preserving the compact summary boundary and excluding `/clear`, PTL, and media recovery markers, to avoid recompacting old history or carrying recovery prompts into the next compaction round.
- **Compaction History Size Optimization**: Engineering compaction summaries now omit the large `new_string` field of edit tools, reducing large code payloads in compaction history and lowering token consumption.
- **Delete Key Direction**: Fixed the issue where macOS Fn+Delete, the standalone Delete key on Linux/Windows, and external keyboard Delete keys were incorrectly mapped to forward deletion. Now Backspace deletes the character before the cursor and Delete deletes the character after the cursor, conforming to common editor conventions; the iTerm2 ⌫ still deletes forward as expected.
- **Plan Mode Permissions**: Fixed the issue where calling ExitPlanMode through the DeferExecuteTool proxy bypassed approval, ensuring the plan approval flow in plan mode is not skipped by bypassPermissions.
