[#110] Add AI client with multi-provider support and UI #113

Manually merged
jabber.developer merged 64 commits from feat/ai into master 2026-05-15 02:22:56 +00:00
22 changed files with 3521 additions and 8 deletions
Showing only changes of commit 07d267b5bc - Show all commits

View File

@@ -90,7 +90,10 @@ _aiwin_validate(gpointer user_data)
return NULL;
}
if (!wins_ai_exists((ProfAiWin*)user_data)) {
pthread_mutex_lock(&lock);
gboolean win_exists = wins_ai_exists((ProfAiWin*)user_data);
pthread_mutex_unlock(&lock);
if (!win_exists) {
log_warning("[AI-THREAD] aiwin=%p no longer exists — window was closed", (void*)user_data);
return NULL;
}