Root cause: get_messages() returns history ending with the just-saved assistant reply, but the Anthropic Messages API rejects any request whose last message is not role=user - this failed on every single chat turn in production, silently swallowed by the existing try/except. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V57jSQPqwkGG8BuAXg59X5 |
||
|---|---|---|
| .. | ||
| test_calendar.py | ||
| test_chat_tools.py | ||
| test_memory.py | ||
| test_orders.py | ||