anthropics / anthropics/claude-agent-sdk-typescript
Built-in server tools don't trigger postToolUseHook
- Ngôn ngữ chính
- Shell
- Star
- 1.8k
- Fork
- 226
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Environment:
- Claude Agent SDK: 0.1.67
- Claude Code: 2.0.67 (native install)
### Description:
PostToolUse hook fires correctly for custom MCP tools, but never fires for built-in server tools like WebSearch and WebFetch. Seems to be broken from `0.1.63` release
### Observed behavior:
1. PreToolUse fires with tool_use_id: "toolu_..."
2. Tool executes successfully
3. PostToolUse never fires
4. PostToolUseFailure never fires
5. Results appear in user message with tool_use_result field containing different ID prefix (srvtoolu_...)
### Expected behavior:
PostToolUse should fire after WebSearch/WebFetch complete, same as for MCP tools.
Worked correctly on previous versions
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.