v2.3.1
This commit is contained in:
+4
-3
@@ -5623,10 +5623,11 @@ function connectWS() {
|
||||
log(`Job created: ${msg.jobId}`, 'info');
|
||||
}
|
||||
if (msg.type === 'boot_greeting') {
|
||||
// Inject boot greeting as first message in current fresh session
|
||||
// Show boot greeting in current session regardless of existing history
|
||||
const bootSess = chatSessions.find(s => s.id === activeChatSessionId);
|
||||
if (bootSess && (!bootSess.history || bootSess.history.length === 0)) {
|
||||
bootSess.history = [{ role: 'assistant', content: msg.text }];
|
||||
if (bootSess) {
|
||||
if (!bootSess.history) bootSess.history = [];
|
||||
bootSess.history.push({ role: 'assistant', content: msg.text });
|
||||
bootSess.updatedAt = Date.now();
|
||||
saveChatSessions();
|
||||
syncActiveChat();
|
||||
|
||||
Reference in New Issue
Block a user