Skip to content

Commit ed36a4a

Browse files
committed
wip
1 parent 2b92600 commit ed36a4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/claude_agent_sdk/_internal/message_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Message parser for Claude Code SDK responses."""
22

33
import logging
4+
import uuid
45
from typing import Any
56

67
from .._errors import MessageParseError
@@ -97,7 +98,7 @@ def parse_message(data: dict[str, Any]) -> Message:
9798
ThinkingBlock(
9899
thinking=block["thinking"],
99100
signature=block.get("signature")
100-
or f"sig-{block['id']}",
101+
or f"sig-{uuid.uuid4().hex}",
101102
)
102103
)
103104
case "tool_use":

0 commit comments

Comments
 (0)