You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(ai-chat): style-guide pass on the injection and action sections
Drops the banned trivializing words, replaces future tense and "there is"
throat-clearing, and removes a "two things" lead-in that sat above three
bullets. Merges the two bullets that stated the same prompt-cache fact, and
stops claiming the injected block is appended as an array when it is merged
into a single instruction.
Mirror each mutation in your store, not just the additions. A `chat.history` mutation is invisible to your database, so a regenerate is a delete *and* an insert — saving the new answer without removing the old one leaves both in the canonical transcript, and the next hydration returns the two of them. (An append-only or branching store is the exception: there you write a new version and resolve the head on read.)
101
+
Mirror each mutation in your store, not only the additions. A `chat.history` mutation is invisible to your database, so a regenerate is a delete *and* an insert — saving the new answer without removing the old one leaves both in the canonical transcript, and the next hydration returns the two of them. (An append-only or branching store is the exception: there you write a new version and resolve the head on read.)
102
102
103
-
Returning the stream instead of piping it yourself still works and still reaches the browser — you just have no message to store, so the next run will not know about it.
103
+
Returning the stream instead of piping it yourself still works and still reaches the browser — but you have no message to store, so the next run does not know about it.
0 commit comments