# CodeBuddy Code v2.40.0 Release

## New Features

### SDK Delayed Control Request Synchronization

The SDK now supports delayed control request synchronization, allowing you to flexibly set permission modes and model options before sending messages. This improvement provides SDK users with a more flexible API calling approach, making it convenient to adjust configurations before message submission.

**Usage Example**:

```typescript
// Set permission mode before sending message
session.setPermissionMode('auto');
session.setModel('claude-sonnet-4-20250514');
await session.send('your message');
```

## Improvements

- **SDK Version Sync**: SDK-JS updated to 0.3.20, SDK-Python updated to 0.3.18, both now support the new delayed control request feature
