# 🚀 CodeBuddy Code v2.99.1 Release

## 📦 Version Information

| Component | Version |
|-----------|---------|
| CodeBuddy Code CLI | v2.99.1 |
| Agent SDK JS | v0.3.159 |
| Agent SDK Python | v0.3.158 |

## 🔧 Improvements

### Enhanced OTel Observability

- **Single Source of Truth for Span Schema**: Added `otel-span-schema.ts` to centrally manage span names, attribute keys, and event names, ensuring implementation stays consistent with documentation
- **Fine-grained Privacy Switches**: Support for environment variables such as `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT`, providing tiered opt-in control over sensitive data logging
- **Tool Span Enhancements**: Records tool input parameters and output content based on switches, with 60KB truncation protection
- **Trace Visualization**: Web UI TracesView adds new metrics including LLM call statistics, cache hit rate, and multi-model display

### Galileo Monitoring System Upgrade

- Split tool tracking logic into independent GalileoToolPreHook / GalileoToolPostHook with more focused responsibilities
- Completed model dimension coverage for all Agent SLA metrics (ttfb / streaming / task_total / prompt_build / tool / request / cache)
- Added agent_name, agent_purpose, and conversation_request_id dimensions to support multi-angle aggregation analysis
- patchName is globally injected, with all three platforms uniformly controlled by the galileo.enable switch

### ACP Session Stability

- Refined boundary handling for ACP team bridging, session replay, and message ID utilities to avoid rendering jitter
- Removed redundant state transitions in the session run state machine for more stable state progression

### Skill and Tool Optimizations

- Skill list changed from XML format to Markdown list, reducing token usage
- Single skill description truncation threshold lowered from 250 to 150 characters
- Removed meaningless tag injection from tool return content
- Optimized deferred tool list size, reducing context occupation by large MCP tool collections
- Removed promotional links from the help panel

## 🐛 Bug Fixes

- **Deferred Tool Loading**: Fixed the issue where bare-name MCP tools loaded via tool search could not be invoked correctly
- **Custom Model Pass-through**: Avoid passing internal reporting fields to customer gateways; merge providerData only for non-custom models
- **Permission Error Messages**: Preserve more specific error details when modifying permission-restricted files fails, reducing troubleshooting cost
- **Session Compaction**: Fixed the issue where compaction after `/clear` could still carry over old session content
- **Galileo Field Casing**: Unified to lowercase `galileo` in product.json
