# 🚀 CodeBuddy Code v2.58.0 Release

## ✨ New Features

### WeChat KF & WeCom Remote Gateway

Added support for WeChat KF (WeChat Customer Service) and WeCom (Enterprise WeChat) platform integrations. Supports receiving messages and sending replies via Webhook callbacks. The WeChat KF adapter includes full capabilities: callback signature verification, AES encryption/decryption, sync_msg message polling, and automatic customer service account creation.

## 🔧 Improvements

- **Python SDK Authentication Enhancement**: Added standalone authentication APIs (`authenticate`/`logout`), supporting two-phase login flow; refactored control request mechanism to support request-response matching and timeout handling
- **Python SDK Type Improvements**: Added type definitions for `McpServerStatus`, `AuthenticateResponse`, `UserInfo`, and more
- **SDK Error Diagnostics**: Python SDK added startup crash detection and stderr capture; JS SDK improved process exit reason tracking and error type exports
- **Headless Mode Stability**: Refactored module exports to a three-layer structure, eliminating IoC resolution failures in headless builds
- **Tunnel Connection Optimization**: Forced HTTP/2 over QUIC for better compatibility; support for detached cloudflared process reuse across sessions; added tunnel-state.json to manage concurrent multi-port tunnels
- **Plugin Marketplace Auto-Update**: Added enable/disable auto-update toggle on marketplace detail pages; built-in marketplace defaults to enabled, third-party marketplaces default to disabled
- **Config Cache Isolation**: Fixed an issue where temporary CLI parameters (e.g., `--system-prompt`) would pollute the configuration cache
- **Web UI Improvements**: History playback now displays images in user messages with zoom-in support; sub-agents support collapse/expand; tool calls are uniformly clickable
- **Web UI Bun SFE Compatibility**: Support for embedding static files into Bun single-file executables, compatible with resource loading in flat mode
- **Gateway Command Experience**: Added loading animation when starting the Gateway service to prevent repeated user actions
- **Task Progress Display**: Optimized text truncation for task and teammate descriptions in the loading-box to prevent overflow from long text

## 🎨 UI Improvements

- **Dark Theme Visual Refinement**: Dimmed and unified border colors of various components in dark mode, making them softer and more natural against dark backgrounds

## 🐛 Bug Fixes

- **Hooks Execution Hang**: Fixed an issue where hook scripts launching background processes caused execution to hang
- **SubagentStop Hook**: Fixed an issue where `transcript_path` in the callback pointed to a non-existent file
- **Sub-agent Interaction**: Fixed an issue where `AskUserQuestion` in sub-agents was auto-approved, preventing the question panel from appearing in the main interface
- **Compact History Chain**: Fixed incomplete context caused by history truncation in the compact agent; corrected grouping errors in scenarios with multiple consecutive assistant messages
- **Tool Approval Navigation**: Fixed a rendering issue where the input box became invisible after the confirmation dialog disappeared
- **Model Sync**: Fixed an issue where switching models in Web UI did not synchronize to the CLI
