KamoCRM

Defer NATS event publishing until after transaction commits to prevent RAG race condition

FixKBService
Shipped
30 மார்ச், 2026 அன்று 10:16 PM UTC
Author
Kamo
Commit
424279b

Events were firing inside @Transactional methods, causing RAGService to read stale data from CockroachDB before the commit. Also auto-defaults aiVisibleToMembers when AI is enabled with no visibility flags set, and guards event publishing to skip DRAFT articles.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing