This commit is contained in:
2026-07-12 17:26:59 -04:00
parent 60663b8d4a
commit ba1bef8ff9
25 changed files with 158880 additions and 1529 deletions
+9
View File
@@ -99,6 +99,15 @@ class GeminiProvider {
setPrompt(prompt) {
this.config.prompt = prompt;
// The live session carries the prompt as its first history entry —
// update it in place so prompt changes (memory refresh, personality
// swaps) apply without restarting the session
try {
const history = this.session?.params?.history;
if (history && history[0] && history[0].role === 'user') {
history[0].parts = [{ text: prompt }];
}
} catch (e) { /* session not started yet */ }
}
getResponse(result) {