KamoCRM

The read pointer moves while the authors are checked

PerformanceMCPGatewayService
Shipped
October 11, 2026 at 10:03 PM UTC
Author
Kamo
Commit
c4914b2

chat_read made three MediaService calls one after another (the page, the session for the inside-content check, then the read pointer). The pointer is now moved on a virtual thread while the session and the authors are checked: both start only after the page was read, so the pointer still never passes a message the caller was not handed, and a failure of either is what it was (a pointer not moved is false; an exception is thrown here as before). Saves one round trip on the read an SI makes of the chat that woke it (chat_read p50 430 ms).

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