Files
strata-ctl/web/assets/locales/en.json
T
adm 0ce84581a4 Add context management: notepad, sliding window, cache reuse, windowed GUI
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.
2026-11-26 03:12:23 +01:00

67 lines
2.7 KiB
JSON

{
"settings.title.session": "Session settings",
"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",
"settings.temp": "Temperature",
"settings.topp": "Top-p",
"settings.topk": "Top-k",
"settings.minp": "Min-p",
"settings.maxtokens": "Max tokens",
"settings.save": "Save",
"settings.cancel": "Cancel",
"settings.hint.session": "Changes apply only to this session.",
"settings.hint.general": "General defaults: apply only to future sessions.",
"settings.name.locked": "The name is locked after the first interaction.",
"settings.name.unlocked": "You can rename until you send the first message.",
"settings.error": "Error: {msg}",
"attach.title": "Attach files or images",
"attach.remove": "Remove attachment",
"attach.error": "Upload failed: {msg}",
"usage.ttft": "1st token {n} s",
"usage.cached": "{n} cached",
"window.note": "Sliding window: showing {shown} recent messages; {omitted} older ones are kept in history.",
"stats.title": "Statistics",
"stats.close": "Close",
"stats.updated": "Updated {time}",
"stats.disconnected": "Disconnected · retrying",
"stats.engine": "Engine",
"stats.engine.idle": "Idle",
"stats.engine.busy": "In use",
"stats.context": "{n} token context",
"stats.context_now": "Current context",
"stats.context_now.sub": "prompt sent on the last turn",
"stats.decode": "Decode speed",
"stats.decode.sub": "run average",
"stats.prefill": "prefill {n} tok/s",
"stats.tokens": "Cumulative tokens",
"stats.tokens.sub": "{p} prompt · {c} completion · across all turns",
"stats.sessions": "Sessions",
"stats.messages.sub": "{n} messages",
"stats.tools": "Tool calls",
"stats.tools.sub": "across history",
"stats.requests": "Requests served",
"stats.requests.sub": "since startup",
"stats.daily": "Daily activity",
"stats.daily.sub": "tokens per day (UTC)",
"stats.daily.empty": "No activity recorded yet.",
"stats.legend.prompt": "Prompt",
"stats.legend.completion": "Completion",
"stats.perSession": "Per session",
"stats.perSession.sub": "token share per chat",
"stats.perSession.empty": "No sessions yet.",
"stats.session.updated": "updated {when}",
"stats.tps": "{n} tok/s",
"stats.na": "—",
"notepad.title": "Notepad",
"notepad.hint": "The session's persistent notes, managed by the agent. Read-only.",
"notepad.empty": "No notes yet. The agent can pin important things here.",
"notepad.refresh": "Refresh",
"notepad.close": "Close",
"notepad.error": "Error: {msg}"
}