ref(ai): add stub, fix includes, move aiwin_send_message location
Some checks failed
CI Code / Check spelling (pull_request) Successful in 22s
CI Code / Check coding style (pull_request) Successful in 34s
CI Code / Linux (debian) (pull_request) Failing after 2m57s
CI Code / Linux (ubuntu) (pull_request) Failing after 3m9s
CI Code / Linux (arch) (pull_request) Failing after 3m13s
CI Code / Code Coverage (pull_request) Successful in 2m54s

This commit is contained in:
2026-04-30 17:41:36 +00:00
parent 1f1770bd58
commit 9c8ad57b59
8 changed files with 44 additions and 44 deletions

View File

@@ -2434,30 +2434,6 @@ aiwin_get_string(ProfAiWin* win)
return g_strdup_printf("AI Chat (%s: %s)", win->session->provider_name, win->session->model);
}
void
aiwin_send_message(ProfAiWin* win, const char* message, const char* id)
{
log_debug("[AI-WIN] aiwin_send_message ENTER: win=%p, message='%s'", (void*)win, message);
assert(win->memcheck == PROFAIWIN_MEMCHECK);
if (!win->session) {
log_error("[AI-WIN] FAIL: AI session not initialized");
return;
}
// Display user message
win_print_outgoing(&win->window, ">>", id, NULL, message);
log_debug("[AI-WIN] Displayed user message");
// Send to AI (ai_send_prompt adds message to history internally)
log_debug("[AI-WIN] Calling ai_send_prompt...");
gboolean result = ai_send_prompt(win->session, message,
(ai_response_cb)aiwin_display_response,
(ai_error_cb)aiwin_display_error,
win);
log_debug("[AI-WIN] ai_send_prompt returned: %d", result);
}
void
aiwin_display_response(ProfAiWin* win, const char* response)
{

View File

@@ -104,7 +104,6 @@ char* get_enc_char(prof_enc_t enc_mode, const char* alt);
// AI window functions
void win_ai_free(ProfAiWin* win);
char* aiwin_get_string(ProfAiWin* win);
void aiwin_send_message(ProfAiWin* win, const char* message, const char* id);
void aiwin_display_response(ProfAiWin* win, const char* response);
void aiwin_display_error(ProfAiWin* win, const char* error_msg);