Skip to content

Commit 566e41f

Browse files
docs: update changelog for v0.1.52
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ae9e8c1 commit 566e41f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 0.1.52
4+
5+
### New Features
6+
7+
- **Context usage**: Added `get_context_usage()` method to `ClaudeSDKClient` for querying context window usage by category (#764)
8+
- **Annotated parameter descriptions**: The `@tool` decorator and `create_sdk_mcp_server` now support `typing.Annotated` for per-parameter descriptions in JSON Schema (#762)
9+
- **ToolPermissionContext fields**: Exposed `tool_use_id` and `agent_id` in `ToolPermissionContext` for distinguishing parallel permission requests (#754)
10+
- **Session ID option**: Added `session_id` option to `ClaudeAgentOptions` for specifying custom session IDs (#750)
11+
12+
### Bug Fixes
13+
14+
- **String prompt in connect()**: Fixed `connect(prompt="...")` silently dropping the string prompt, causing `receive_messages()` to hang indefinitely (#769)
15+
- **Cancel request handling**: Implemented `control_cancel_request` handling so in-flight hook callbacks are properly cancelled when the CLI abandons them (#751)
16+
17+
### Internal/Other Changes
18+
19+
- Updated bundled Claude CLI to version 2.1.87
20+
- Increased CI timeout for example tests and reduced sleep duration in error handling example (#760)
21+
322
## 0.1.51
423

524
### New Features

0 commit comments

Comments
 (0)