shouldSkipMessage static method
Check if a message should be skipped (not break the group).
Implementation
static bool shouldSkipMessage(RenderableMessage msg) {
if (msg.type == 'assistant') {
final content = msg.message?.content;
if (content != null && content.isNotEmpty) {
final first = content.first;
if (first['type'] == 'thinking' ||
first['type'] == 'redacted_thinking') {
return true;
}
}
}
if (msg.type == 'attachment') return true;
if (msg.type == 'system') return true;
return false;
}