fix(ai): remove duplicate assistant response in the message history
Some checks failed
CI Code / Check coding style (pull_request) Successful in 44s
CI Code / Linux (debian) (pull_request) Failing after 2m59s
CI Code / Linux (arch) (pull_request) Failing after 3m7s
CI Code / Linux (ubuntu) (pull_request) Failing after 3m7s
CI Code / Check spelling (pull_request) Successful in 17s
CI Code / Code Coverage (pull_request) Successful in 2m46s

This commit is contained in:
2026-04-30 18:05:51 +00:00
parent cff05ca802
commit bccd3ecded
3 changed files with 0 additions and 4 deletions

View File

@@ -47,7 +47,6 @@ aiwin_display_response(ProfAiWin* win, const char* response)
log_debug("[AI-WIN] Displayed AI response");
// Add to conversation history
ai_session_add_message(win->session, "assistant", response);
log_debug("[AI-WIN] Added assistant message to session history");
}

View File

@@ -347,8 +347,6 @@ win_create_ai(AISession* session)
return &new_win->window;
}
gchar*
win_get_title(ProfWin* window)
{

View File

@@ -101,5 +101,4 @@ char* win_quote_autocomplete(ProfWin* window, const char* const input, gboolean
char* get_show_char(prof_enc_t encryption_mode);
char* get_enc_char(prof_enc_t enc_mode, const char* alt);
#endif