Skip to main content

stored_message_content

Function stored_message_content 

Source
pub fn stored_message_content(kind: SessionMessageKind, content: &str) -> String
Expand description

Returns the durable message content for one kind.

User prompts preserve leading horizontal whitespace so pasted indentation survives persistence while outer line breaks and trailing whitespace are normalized. Assistant rows remove outer whitespace, while workflow notices preserve exact content so status blocks keep their spacing.