Per-session notepad: agent-curated labelled entries via the notepad tool
(set/remove/clear), injected as a pinned <NOTEPAD> section above DIALOG,
char-budgeted with a consolidate ceiling, exposed in a read-only GUI panel.
Sliding DIALOG window (src/window.rs): retains recent messages by count in
two tiers (MAIN_AREA=40 + BUFFER=10), append-only while the buffer fills so
the prompt prefix stays byte-stable for KV reuse, then stepped hysteresis
eviction snapping to user-turn boundaries (never splits a tool exchange).
window_start persisted per session; full history never deleted.
Engine prefix-cache reuse: leave DIALOG open (a moving </DIALOG> closer broke
the engine prompt_ckpt_prefix every user turn, forcing full re-prefill);
surface usage.cached_tokens as a GUI badge; fix the PerfMeter prefill gauge to
gauge over non-cached tokens; add a static sliding-window marker after the
opener so the model knows older turns are omitted.
Stats clarity: distinguish the current inference context (last_prompt_tokens,
new "Contesto attuale" card) from the cumulative lifetime token total
(relabeled "Token cumulativi ... su tutti i turni"); /api/stats carries both.
Windowed browser transcript: GET /api/sessions/{id}/messages returns only the
retained window (SQL-filtered by window_start, never loads the full history)
plus the total count, wrapped as {messages, window_start, total}; the GUI shows
a banner noting older turns are preserved server-side. Full-chat export deferred.
Settings: the session scope re-reads the persisted instance fresh from the store
(like the general scope already did), fixing a stale-cache display that looked
like the session System Prompt was not being kept.
Docs (README) refreshed; 158 tests + 3 ignored green, clippy and fmt clean.
67 lines
2.8 KiB
JSON
67 lines
2.8 KiB
JSON
{
|
|
"settings.title.session": "Impostazioni sessione",
|
|
"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",
|
|
"settings.temp": "Temperature",
|
|
"settings.topp": "Top-p",
|
|
"settings.topk": "Top-k",
|
|
"settings.minp": "Min-p",
|
|
"settings.maxtokens": "Max token",
|
|
"settings.save": "Salva",
|
|
"settings.cancel": "Annulla",
|
|
"settings.hint.session": "Modifiche valide solo per questa sessione.",
|
|
"settings.hint.general": "Default generali: si applicano solo alle sessioni future.",
|
|
"settings.name.locked": "Il nome è bloccato dopo la prima interazione.",
|
|
"settings.name.unlocked": "Puoi rinominare finché non invii il primo messaggio.",
|
|
"settings.error": "Errore: {msg}",
|
|
"attach.title": "Allega file o immagini",
|
|
"attach.remove": "Rimuovi allegato",
|
|
"attach.error": "Caricamento fallito: {msg}",
|
|
"usage.ttft": "1° token {n} s",
|
|
"usage.cached": "{n} cache",
|
|
"window.note": "Finestra scorrevole: vedi {shown} messaggi recenti; {omitted} più vecchi sono conservati nella cronologia.",
|
|
"stats.title": "Statistiche",
|
|
"stats.close": "Chiudi",
|
|
"stats.updated": "Aggiornato {time}",
|
|
"stats.disconnected": "Disconnesso · riprovo",
|
|
"stats.engine": "Motore",
|
|
"stats.engine.idle": "Inattivo",
|
|
"stats.engine.busy": "In uso",
|
|
"stats.context": "{n} token di contesto",
|
|
"stats.context_now": "Contesto attuale",
|
|
"stats.context_now.sub": "prompt inviato nell'ultimo turno",
|
|
"stats.decode": "Velocità decode",
|
|
"stats.decode.sub": "media dall'avvio",
|
|
"stats.prefill": "prefill {n} tok/s",
|
|
"stats.tokens": "Token cumulativi",
|
|
"stats.tokens.sub": "{p} prompt · {c} completati · su tutti i turni",
|
|
"stats.sessions": "Sessioni",
|
|
"stats.messages.sub": "{n} messaggi",
|
|
"stats.tools": "Chiamate tool",
|
|
"stats.tools.sub": "nella cronologia",
|
|
"stats.requests": "Richieste servite",
|
|
"stats.requests.sub": "dall'avvio",
|
|
"stats.daily": "Attività giornaliera",
|
|
"stats.daily.sub": "token per giorno (UTC)",
|
|
"stats.daily.empty": "Nessuna attività registrata.",
|
|
"stats.legend.prompt": "Prompt",
|
|
"stats.legend.completion": "Completati",
|
|
"stats.perSession": "Per sessione",
|
|
"stats.perSession.sub": "quota di token per chat",
|
|
"stats.perSession.empty": "Nessuna sessione.",
|
|
"stats.session.updated": "aggiornato {when}",
|
|
"stats.tps": "{n} tok/s",
|
|
"stats.na": "—",
|
|
"notepad.title": "Notepad",
|
|
"notepad.hint": "Appunti persistenti della sessione, gestiti dall'agente. Sola lettura.",
|
|
"notepad.empty": "Nessun appunto. L'agente può fissare qui le cose importanti.",
|
|
"notepad.refresh": "Aggiorna",
|
|
"notepad.close": "Chiudi",
|
|
"notepad.error": "Errore: {msg}"
|
|
} |