# 🚀 CodeBuddy Code v2.52.4 Release

## 🔧 Improvements

### First Token Timeout Detection

Added a timeout detection mechanism for the first response data after a request is sent. The connection is automatically disconnected and retried upon timeout, preventing prolonged unresponsive waits. The stream data monitoring interval has been reduced from 10 seconds to 1 second, improving the detection speed of abnormal connections. Custom timeout durations can be configured via the `CODEBUDDY_STREAM_TIMEOUT_MS` and `CODEBUDDY_FIRST_TOKEN_TIMEOUT_MS` environment variables.

### Request Compression

Added support for gzip compression of API request bodies, reducing network bandwidth consumption and improving response speed on slow networks.

- **CLI Subcommand Aliases**: Added `ls` shorthand aliases for `mcp list`, `sandbox list`, and `marketplace list`; added `-g/--global` option for `config remove` and `config add`
- **macOS Code Signing**: Fixed an issue on macOS 26+ where missing TeamIdentifier caused the system to terminate multiple running instances
- **MCP Tool Hooks Fix**: Resolved an issue where PreToolUse/PostToolUse hooks for MCP tools failed to trigger correctly
- **Tool Call Truncation Retry**: Optimized the retry mechanism for tool call parameters truncated due to model output exceeding limits, improving retry success rate
- **Hook Permission Prompt Optimization**: When a PreToolUse Hook returns an ask decision, the decision reason is now displayed as a warning in the permission confirmation dialog
- **Paste Behavior Optimization**: Pasting text content no longer automatically detects whether it is an image path and converts it; pasted text is always inserted as-is
- **Shell Configuration Unification**: Removed support for PowerShell and CMD, requiring Windows users to use Git Bash
- **Model Upgrade**: Upgraded the Gemini Pro model from version 3.0 to version 3.1

## 🐛 Bug Fixes

- **Input History Navigation**: Fixed an issue where pressing the up arrow to browse history would stop scrolling after reaching an entry starting with `/`
- **Tool Permission Denial Rendering**: Fixed an issue where tool calls could not be properly rendered in the UI when rejected by PreToolUse hooks or permission rules
- **Command Parsing**: Fixed an issue where the Bash tool failed to correctly identify the command root when the command contained undefined environment variables
- **Subcommand Routing**: Fixed incorrect routing paths when invoking subcommands using aliases
