# CodeBuddy Code v2.69.0 Release

## New Features

### E2B Compatible API

Fully aligned with the E2B open protocol, allowing CodeBuddy Code to be used as an E2B-compatible sandbox environment:

- **File System API**: Added `/api/v1/fs/*` and `/api/v1/files/*` endpoints, supporting file read/write, directory operations, file watching, and other comprehensive file system capabilities
- **Process Management API**: Added `/api/v1/process/*` endpoints, supporting process launching (PTY/pipe), input/output streaming, signal sending, and full lifecycle management
- **System Metrics & Environment Variables API**: Added `/api/v1/metrics` and `/api/v1/envs` endpoints, providing CPU/memory/disk usage metrics and environment variable queries

## Improvements

- **PTY Terminal Enhancement**: Added SSE output streaming, HTTP input sending, and HTTP resize endpoints, providing a pure HTTP alternative to WebSocket
- **Terminal Web UI Refactoring**: Migrated the frontend terminal component from WebSocket to SSE + HTTP communication, improving cross-platform compatibility
- **Distributed Tracing**: Refactored the trace pipeline based on the Hook mechanism, supporting SDK-passed traceId for end-to-end tracing with automatic child Span creation for each tool call
- **WeChat Multi-Instance Support**: Enabled simultaneous connections to multiple WeChat bot instances with automatic message routing to the correct client
- **WeChat Media Messages**: Added support for receiving and sending images, files, voice, and video messages
- **Chinese Quotation Mark Fix**: Automatically corrects Chinese quotation marks in model output to prevent JSON parsing failures in tool calls

## Security Fixes

- **WeCom SSRF Protection**: Added URL allowlist validation for WeCom bot media downloads, restricting access to official WeCom CDN domains only to prevent Server-Side Request Forgery attacks
