fix(channel): preserve trailing user turn in normalization

This commit is contained in:
Chummy 2026-02-20 02:01:29 +08:00
parent c5834b1077
commit f2ffd653de

View file

@ -230,10 +230,6 @@ fn normalize_cached_channel_turns(turns: Vec<ChatMessage>) -> Vec<ChatMessage> {
} }
} }
if normalized.last().map_or(false, |msg| msg.role == "user") {
normalized.pop();
}
normalized normalized
} }