# 🚀 CodeBuddy Code v2.37.3 Release

## 🔧 Improvements

### Electron Desktop Application Experience Optimization

- **Single Instance Lock**: Prevents multiple application instances; the second instance will automatically focus the existing window
- **macOS Window Behavior**: Closing the window now hides rather than quits the application, conforming to macOS application standards
- **Dock Icon Cleanup**: Fixed issue where child processes displayed extra icons in the macOS Dock

### SDK API Enhancement

- **Dynamic Permission Mode Switching**: Session API added `setPermissionMode` and `getPermissionMode` methods, supporting dynamic permission mode switching within sessions
- **Plan Mode Optimization**: Switching to plan mode now returns the plan file path, making it easier for SDK to retrieve and display
- **History Message Handling**: Optimized history message processing flow in resume + prompt scenarios for Query API

### Message List Interaction Optimization

- **Timeline Sorting**: Optimized timeline sorting for messages and tool calls, supporting grouped display of tool calls
- **Feedback Feature**: Added message like and dislike buttons, supporting user feedback
- **Image Preview**: User message images now support click-to-enlarge preview with smooth animation effects
- **Copy Feature**: Improved assistant message copy logic, supporting copying complete reply groups; user messages support double-click to copy
