# CodeBuddy Code v2.48.1 Release

## Improvements

- **Environment Variable Authentication Conflict Detection**: When `CODEBUDDY_API_KEY` or `CODEBUDDY_AUTH_TOKEN` environment variables are set, the /login command automatically detects and suggests conflict resolution; authentication failures display more detailed diagnostic information to help quickly locate issues
- **Sub-agent Message Identification**: Fixed the issue where sub-agent user messages were missing parent tool identifiers during streaming output; clients can now correctly distinguish between main agent and sub-agent messages
- **MCP Prompt Command Format Unification**: Unified the context concatenation format between MCP prompts and slash commands, ensuring the model correctly understands command sources and parameters

## Documentation Updates

- **Prompt Hooks Documentation**: Improved documentation for prompt-based Hooks feature, added supported event descriptions, configuration examples, and best practice guides
