mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Server marks assistant messages with tool_use blocks as type='tool_use' (not 'assistant'), and user messages with tool_result blocks as type='tool_result' (not 'user'). mapHistoryMessagesToUiMessages now handles both type variants when parsing content arrays, so tool calls are properly restored after page refresh. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>