CodeBuddy Code v2.84.0 Release
New Features
Usage Statistics & Trace & Scheduled Tasks API
A new set of REST APIs that allow you to query usage statistics, traces, and scheduled tasks via HTTP:
GET /api/v1/stats— View historical usage statisticsGET /api/v1/stats/session— View real-time cost for the current sessionGET /api/v1/traces/GET /api/v1/traces/:traceId— View trace dataGET/POST/DELETE /api/v1/scheduled-tasks— Manage scheduled tasks
The Web UI also adds three new visual views for statistics, traces, and scheduled tasks, providing intuitive data display.
Improvements
- Cron scheduling optimization: Fixed concurrency race conditions, added enqueue-first + drain merge mode, and supported execution time persistence
- Trace collection system: Supports file-based persistent storage and SDK bridging — trace data is no longer lost when the process exits
- Agent status internationalization: Sub-agent phase labels are fully internationalized, with new status displays for waiting for permission confirmation, waiting for user answer, retrying, etc.
- Interrupt auto-scroll: When permission confirmation or user question popups appear, the chat view automatically scrolls to the bottom to ensure the action panel is visible
- ACP network retry: ACP requests automatically reconnect and retry in weak network environments, improving remote access stability
- E2E test coverage: Added 30 E2E test cases and 6 ACP protocol method coverages
Bug Fixes
- Session interruption false positive: Fixed an issue where the startup handshake request caused the session to be incorrectly identified as a user interruption
- Suggestions disappearing: Fixed a race condition where suggestions were unexpectedly cancelled by internal messages after a conversation ended
- Memory extraction isolation: Background memory extraction no longer interferes with suggestions and conversation state
- Session recovery: Fixed an issue where interrupted sessions could not be automatically recovered when switching
- Instance switching IP adaptation: When accessing via remote networks like Tailscale, switching Worker instances no longer redirects to unreachable LAN addresses
- Message queue stuck: Fixed an issue where the Web UI got stuck when sending multiple messages consecutively
- Compression cancel rollback: Cancelling context compression now correctly rolls back state instead of erroneously marking it as compressed
- /clear reentrancy prevention: Fixed a race condition where messages were sent repeatedly after /clear
- Background task exit protection: In print mode, the process now waits for background tasks to complete before exiting, preventing tasks from being unexpectedly terminated