Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions crates/chat-cli/src/cli/chat/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,8 @@ impl Command {
}
},
"usage" => Self::Usage,
unknown_command => {
// If the command starts with a slash but isn't recognized,
// return an error instead of treating it as a prompt
return Err(format!(
"Unknown command: '/{}'. Type '/help' to see available commands.\nTo use a literal slash at the beginning of your message, escape it with a backslash (e.g., '\\//hey' for '/hey').",
unknown_command
));
_unknown_command => Self::Ask {
prompt: input.to_string(),
},
});
}
Expand Down
6 changes: 6 additions & 0 deletions crates/chat-cli/src/cli/chat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2865,6 +2865,12 @@ impl ChatContext {
let images = image_blocks.into_iter().map(|(block, _)| block).collect();
self.conversation_state
.add_tool_results_with_images(tool_results, images);
execute!(
self.output,
style::SetAttribute(Attribute::Reset),
style::SetForegroundColor(Color::Reset),
style::Print("\n")
)?;
} else {
self.conversation_state.add_tool_results(tool_results);
}
Expand Down
Loading