claude-agent-sdk-rate-limit-event-unknown-type-error

The Claude Agent SDK async iterator throws Unknown message type: rate_limit_event on newer versions when streaming responses include rate limit events. The fix is to wrap the async iteration in a try/except that handles unknown message types gracefully and continues iteration. Exit code remains 0 even on this error, so process success must be validated by checking vault output like ‘Created:’ in response text.