Tag model-context turns with [SPEAKER: name - datetime] provenance; add global user-name setting (default User, read live), agent name = session title

This commit is contained in:
adm committed 2026-11-25 20:17:55 +01:00
1 parent 0754262b37
commit 95c41c2c21
8 files changed
+157 -5

No files matched your search

+3
View File
@@ -629,6 +629,8 @@ function fillSettingsForm(data, scope) {
const isSession = scope === "session";
$("#set-name-field").hidden = !isSession;
$("#set-name-hint").hidden = !isSession;
$("#set-username-field").hidden = isSession;
$("#set-username").value = data.user_name || "";
if (isSession) {
const sess = currentSession();
$("#set-name").value = sess ? sess.title : "";
@@ -654,6 +656,7 @@ function readSettingsForm() {
const num = (v) => (v === "" ? null : Number(v));
const txt = (v) => (v.trim() === "" ? null : v);
return {
user_name: txt($("#set-username").value),
notes: txt($("#set-notes").value),
system_prompt: txt($("#set-sp").value),
temperature: num($("#set-temp").value),