🚀 CodeBuddy Code v2.142.0 Release
📦 Version Information
| Component | Version |
|---|---|
| CodeBuddy Code CLI | v2.142.0 |
| Agent SDK JS | v0.3.249 |
| Agent SDK Python | v0.3.248 |
✨ New Features
Local Model Support
On supported desktop clients, local models can now be downloaded and used. The system automatically selects a runtime backend based on device capabilities and supports pausing, resuming, and integrity verification, so interrupted downloads can continue.
Fixed Path Prefix for the Web UI
--serve now supports --base-path and CODEBUDDY_GATEWAY_BASE_PATH, allowing Web pages and APIs to be mounted under a fixed path. This makes it easier to integrate with reverse-proxy environments that route requests using per-instance prefixes.
Telemetry Context Propagation
ACP, stream-json, and the Server API can now receive W3C Trace Context and Baggage and transparently propagate the current turn's tracing context to telemetry, MCP requests, and short-lived child processes, enabling end-to-end tracing across services.
🔧 Improvements
Agent Startup and Recovery Experience
- The Web UI now uses a consistent lightweight welcome page while connecting, creating an agent, or loading an iframe, eliminating blank pages and redundant connection messages.
- The first user intent is displayed immediately after an agent is created, while the input area and conversation preview are prepared in advance.
- When there are only one or two tool calls, tool cards are displayed directly without an additional collapsible group.
- Agent View now optimizes its startup grace period, detail queries, and connection timing to display an available page sooner. Restored historical sessions can reconnect on the same page.
Concurrent Tasks and Resource Management
- Background shells, workflows, and agent trees now support hierarchical selection, detail views, stopping individual tasks, and stopping all tasks. Completed nodes are removed automatically.
- After a worker has been idle for about 10 minutes, only its process is recycled, while the session and transcript are preserved. The worker can recover automatically when reopened without affecting sessions that are running or being viewed.
Plugin Startup and Management
- Plugin Host can load configured plugins from Product snapshots and supports reloads through
/api/v1/plugins/reload. - Plugin installation, enablement, updates, and startup projection are now more consistent, reducing failures caused by cache usage, concurrent refreshes, or empty request bodies.
🐛 Bug Fixes
- Concurrent agent status and cleanup: Fixed temporary teams remaining after interruption, inaccurate background-task counts, jumping selections, hidden boundary nodes, and incorrect synchronized tree-state detection.
- Long-running tools incorrectly treated as unresponsive on unstable networks: Business-progress heartbeats are sent while long-running tools execute or asynchronous I/O is pending, preventing upstream systems from terminating healthy tasks prematurely.
- Endless recovery after exceeding the context limit: When automatic recovery repeatedly fails, the correct context-limit error is now displayed after retries are exhausted instead of looping indefinitely.
- Esc interruption issues: Esc now stops only the foreground conversation and no longer interrupts background workflows. When messages are queued, it also correctly interrupts the current turn and continues processing the queue.
- Input drafts and conversation replay: After a worker is recycled or an iframe becomes invalid, the host input box remains usable and long drafts are restored. Historical replay and real-time messages no longer duplicate body text or REPL cards.
- Restoring interactive tool interfaces from history: After refreshing or reopening a historical session, interactive tool pages and their initial results are restored correctly.
- Stable sandbox working directory: With the sandbox enabled, relative paths continue to resolve from the original project directory instead of looking in the wrong location after an internal directory change.
- Sandbox file writes and backup paths: Fixed write failures affecting some Windows paths, symlinked paths, and approved files outside the project directory. File-backup decisions are also more reliable.
- Incorrect multi-window occupancy detection: Stale locks, ghost connections, and probe timeouts no longer cause the first window to enter read-only mode incorrectly. The occupying window can continue sending text and compete to become the writer again.
- iframe connection status: Occupied, disconnected, and unresponsive-send states now show accurate messages and support retrying. Cold starts no longer report false disconnections, and rapid recovery no longer clears authorization for the new connection.
- Web UI tool output and sidebar status: Bash and REPL output is restored as genuine terminal text, and the sidebar no longer remains stuck on “Running” after a conversation ends.
- MCP resource tools repeatedly disappearing: If a resource-directory query fails, the most recent successful result is reused and a warning is emitted, preventing slow services from making resource tools repeatedly disappear and reappear during a conversation.
- Terminal file and Web links: Improved recognition of relative paths, Unicode, paths with spaces, line and column ranges, and cross-platform formats. Web links now consistently use an in-app confirmation dialog.
- Web UI file and editing experience: Fixed incorrect right-click deletion targets in the Explorer, menus extending beyond the viewport, Git ignored styling, false reports of missing editor modules, and more.
- macOS authorization prompts during directory scanning: When metadata probing is blocked only for protected directories, it no longer triggers additional authorization or a rerun outside the sandbox.
- Repeated approval for sensitive tool results: Protected sensitive values restored from the same invocation remain displayed as ciphertext and no longer trigger repeated approval prompts.
- Plugin Marketplace refresh failures: Refresh timestamps are no longer treated as content versions, and older scan results can no longer overwrite a newer catalog.
- Security Center and Plan agent: File prompts now accurately distinguish reads, writes, and deletions. The Plan agent's read-only planning role and toolset are also clearer.
📝 Documentation Updates
- CLI documentation archive: Synchronized the latest usage guides, APIs, and release notes; completed multilingual navigation and the translation index; and fixed internal paths and anchor links.