Skip to content

Commit 559f2ee

Browse files
committed
Add spacing between tool results and text in chat messages
1 parent 58d6b3d commit 559f2ee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/modules/agent_network/components/message_bubble.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,12 @@ class MessageBubble extends StatelessComponent {
111111

112112
for (final content in entry.content) {
113113
if (content is TextContent) {
114+
final hadTools = pendingTools.isNotEmpty;
114115
flushToolGroup();
115116
if (content.text.isNotEmpty) {
117+
if (hadTools) {
118+
widgets.add(SizedBox(height: 1));
119+
}
116120
final isContextFullError =
117121
content.text.toLowerCase().contains('prompt is too long') ||
118122
content.text.toLowerCase().contains('context window') ||

0 commit comments

Comments
 (0)