# 🚀 CodeBuddy Code v2.83.0 Release

## ✨ New Features

### Fork Subagent

When the `subagent_type` parameter is omitted, the Agent tool automatically enters Fork mode, inheriting the parent agent's full context (system prompt, tools, conversation history). This is ideal for parallel tasks that require the current context. It runs synchronously by default; set `run_in_background=true` to switch to background mode.

### Conversation Branching

Added `/fork` and `/branch` slash commands that support creating branches at the current conversation position. The active history is copied to a new session and automatically switched to, making it easy to explore solutions in different directions.

## 🔧 Improvements

- **SendMessage Always Available**: The SendMessage tool is now available in any scenario without waiting for a team to be created
- **Memory Injection Optimization**: Auto Memory context prompt is now injected into the first message, improving prompt cache hit rate; memory is no longer lost after resume
- **Plugin Agent Configuration Enhancement**: Plugin agent configuration is no longer restricted by the enabled state, supporting independent settings.json file loading
- **CLI `--agent` Parameter**: Added the `--agent <agent>` command-line parameter to specify the agent to use at startup

## 🐛 Bug Fixes

- **File Lock Recovery**: File locks are now immediately reclaimed after a process crash, eliminating the need to wait for a 5-minute timeout
- **Settings Write Stability**: Graceful degradation when file lock acquisition fails, preventing unhandled exceptions
- **MCP OAuth Authentication**: Fixed an issue where OAuth callback path mismatch caused authentication failure
- **Bedrock Model Compatibility**: Fixed an issue where Bedrock API returned errors when message content was empty
- **Headless Routing**: Fixed an issue where equal-sign format parameters (e.g., `--output-format=stream-json`) could not be routed correctly
- **stream-json Output**: Fixed an issue where error messages polluted the JSON stream in stream-json mode
