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),
+2
View File
@@ -3,6 +3,8 @@
"settings.title.general": "General settings",
"settings.scope.session": "Session",
"settings.scope.general": "General",
"settings.username": "User name",
"settings.username.ph": "User",
"settings.name": "Name",
"settings.notes": "Notes (chat purpose)",
"settings.sp": "System Prompt",
+2
View File
@@ -3,6 +3,8 @@
"settings.title.general": "Impostazioni generali",
"settings.scope.session": "Sessione",
"settings.scope.general": "Generali",
"settings.username": "Nome utente",
"settings.username.ph": "User",
"settings.name": "Nome",
"settings.notes": "Note (scopo della chat)",
"settings.sp": "System Prompt",
+3
View File
@@ -81,6 +81,9 @@
<button id="set-scope-general" class="btn ghost" data-i18n="settings.scope.general">Generali</button>
</div>
<p id="set-hint" class="muted"></p>
<label class="field" id="set-username-field"><span data-i18n="settings.username">Nome utente</span>
<input id="set-username" type="text" autocomplete="off" data-i18n-ph="settings.username.ph" />
</label>
<label class="field" id="set-name-field"><span data-i18n="settings.name">Nome</span>
<input id="set-name" type="text" autocomplete="off" />
</label>