GUI settings panel: per-session instance + global defaults, notes, name lock
- ⚙️ settings modal with a Sessione/Generali scope toggle: per-session edits PATCH only that session; Generali edits PUT the defaults template (future sessions only). Fields: name, notes (chat purpose), system prompt, temperature/top_p/top_k/min_p/max_tokens. - Name field disabled once locked; the sidebar ✏️ rename is disabled after the first interaction. Unexposed settings fields preserved on save. README documents the settings/identity model; 114 tests. Verified via node --check + HTTP (assets + settings flow).
This commit is contained in:
1 parent
c199953927
commit
73b665d1a7
4 files changed
+165
-5
No files matched your search
@@ -101,6 +101,21 @@ offline, same-origin so no CORS). It is a thin client over a **session-aware API
|
||||
context, runs inference (streaming SSE or not) and persists the new turns with
|
||||
their token usage.
|
||||
- `GET /api/stats` — aggregate counters (sessions, messages, prompt/completion tokens).
|
||||
- `GET/PUT /api/settings/defaults` — the global default settings template.
|
||||
- `PATCH /api/sessions/{id}` — rename (only before the first interaction) and/or
|
||||
replace the session's own settings instance.
|
||||
|
||||
**Settings & identity.** Each session owns a *settings instance* (system prompt,
|
||||
notes, sampling) snapshotted from the global defaults at creation
|
||||
(**copy-on-create**): editing a session affects only it, editing the defaults
|
||||
affects only *future* sessions — no retroactive surprises. The user jots the
|
||||
chat's purpose in **notes**. The framework assigns an evocative name (a curated
|
||||
word list); it is editable only before the first interaction, then **immutable**.
|
||||
At that first interaction a personal workspace folder is created
|
||||
(`~/.strata-ctl/<name>/`, configurable via `workspace_root`) and a structural
|
||||
identity reminder ("your name is …, your personal folder is …") is prepended to
|
||||
the model's context — not an editable setting. The GUI exposes all of this in a
|
||||
⚙️ settings panel (per-session or general).
|
||||
|
||||
The standard `/v1` API stays **stateless**; conversation context lives server-side
|
||||
in an embedded **SQLite** database (default `~/.config/strata-ctl/sessions.db`,
|
||||
@@ -180,7 +195,7 @@ unknown keys never break startup.
|
||||
|
||||
## Status
|
||||
|
||||
Working and tested (106 tests, plus 2 real-file tests run on demand). Text, images,
|
||||
Working and tested (114 tests, plus 2 real-file tests run on demand). Text, images,
|
||||
the full client-side tool loop, the Anthropic endpoint, the web GUI (session
|
||||
context, streaming, stats) and **agent mode** (the model using `shell_exec` on the
|
||||
host) have been validated live against the real Inkling engine.
|
||||
@@ -191,8 +206,9 @@ engine restart after a crash, a full SSRF guard against DNS rebinding, and the
|
||||
OpenAI Responses native endpoint. The Anthropic adapter covers the core cases but
|
||||
not yet the `defer_loading` / `tool_addition` / `tool_reference` tool machinery, the
|
||||
thinking `budget_tokens` mapping, or prompt-cache token accounting. The GUI agent's
|
||||
**isolated mode** (Docker-container runner) and GUI images / advanced settings are
|
||||
still to come; base/host agent mode works.
|
||||
**isolated mode** (Docker-container runner) and GUI file/image upload are still to
|
||||
come; base/host agent mode, per-session settings (copy-on-create), session notes,
|
||||
immutable names and personal workspace folders work.
|
||||
|
||||
## License and credits
|
||||
|
||||
|
||||
Reference in new issue
Block a user