Skip to content

Commit d89c04d

Browse files
committed
docs(ai-chat): fix the second incomingMessages cardinality claim
The Note further down the hydrateMessages section repeated the absolute 0-or-1-length wording the previous commit softened in the field table.
1 parent b80d6c4 commit d89c04d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/ai-chat/lifecycle-hooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ After the hook returns, the runtime overlays the wire's tool-state advances (`ou
323323
</Tip>
324324

325325
<Note>
326-
`incomingMessages` is **0-or-1-length** consistently. `submit-message` and tool-approval responses ship a single message; `regenerate-message`, continuations, and actions ship none. Patterns like [tool-result auditing](/ai-chat/patterns/tool-result-auditing) work the same regardless — iterate the array and the loop runs zero or one times.
326+
`incomingMessages` is **usually 0-or-1-length**. `submit-message` and tool-approval responses ship a single message; `regenerate-message`, continuations, and actions ship none. The exception is a [Head Start](/ai-chat/fast-starts#with-hydratemessages) first turn, where it carries the route handler's first-turn history. Patterns like [tool-result auditing](/ai-chat/patterns/tool-result-auditing) work the same regardless — iterate the array rather than assuming a single element.
327327
</Note>
328328

329329
## onTurnStart

0 commit comments

Comments
 (0)