Skip to content

Commit 97255a0

Browse files
committed
fix: reset terminal attributes after adding tool results
1 parent dd39398 commit 97255a0

File tree

1 file changed

+6
-0
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+6
-0
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,6 +2865,12 @@ impl ChatContext {
28652865
let images = image_blocks.into_iter().map(|(block, _)| block).collect();
28662866
self.conversation_state
28672867
.add_tool_results_with_images(tool_results, images);
2868+
execute!(
2869+
self.output,
2870+
style::SetAttribute(Attribute::Reset),
2871+
style::SetForegroundColor(Color::Reset),
2872+
style::Print("\n")
2873+
)?;
28682874
} else {
28692875
self.conversation_state.add_tool_results(tool_results);
28702876
}

0 commit comments

Comments
 (0)