pub fn extract_inline_annotations(annotated_diff: &str) -> Vec<String>Expand description
Extract user additions that appear within agent content (inline annotations).
An inline annotation is a [user+] or [user~] line that has at least one
substantive [agent] line after it — meaning the user inserted or modified text
inside an agent response block rather than appending at the end.
Structural markers (component tags <!-- ... -->, section headers # ...) are
excluded from the “agent lines after” check to avoid false positives where
end-of-exchange user input is followed only by closing markers.