Skip to content

Commit

Permalink
[AI Chat]: Don't show starter suggestions on non-empty chats (#26677)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning authored Nov 26, 2024
1 parent 7f4d739 commit 481755f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/ai_chat/core/browser/conversation_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,10 @@ void ConversationHandler::MaybeSeedOrClearSuggestions() {
if (!is_page_associated) {
suggestions_.clear();
suggestion_generation_status_ = mojom::SuggestionGenerationStatus::None;
if (!chat_history_.empty()) {
return;
}

suggestions_.emplace_back(STARTER_PROMPT(MEMO));
suggestions_.emplace_back(STARTER_PROMPT(INTERVIEW));
suggestions_.emplace_back(STARTER_PROMPT(STUDY_PLAN));
Expand Down

0 comments on commit 481755f

Please sign in to comment.