This commit is contained in:
kim
2026-05-02 23:15:25 +09:00
parent ec53a112b4
commit 83eb31f121
62 changed files with 1465 additions and 453 deletions
+4 -3
View File
@@ -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();