bots-garden/razorbillpublic Fork
⑂ 041f8f0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/razorbill.git
git clone ssh://git@rickub.com/bots-garden/razorbill.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

memory + tickets: #57, #58, #59 closed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-27T06:19:32+01:00 Browse files
041f8f0 parent: b1f1dbc
modified .memory/handoffs/2026-11-27-v0-3-tui-foundation.md +6 -0
@@ -21,3 +21,9 @@
2121 - **Not tried by hand yet**: ask the user to run `rzb tui` against a real model (F1, type, Esc mid-answer, Ctrl-P, Ctrl-R with a reasoning model, `/set thinking off`; F2, `u`).
2222 - Next: #57 (Models screen: HF cache read directly, pull with progress, remove), #58 (Settings: TUI preferences incl. poll interval and default sampling, server config form + reload), #59 (TUI docs: tutorial + how-to EN+FR), then #26/#28 for the Dashboard's machine panel. #61 (Olala spike) is separate, no milestone.
2323 - Watch out: a key the frame ignores goes to the current screen only (`TUIApp.forward`); Models and Settings ignore keys for now. `ChatScreen.answering` is the index the stream writes to.
24+
25+## Update (same day, later): #57, #58, #59 done
26+- Models screen (cache, download with progress, remove with confirmation), Settings screen (tui.yaml form; server file in $EDITOR, checked, reloaded), TUI docs EN+FR (tutorial, 2 how-tos, reference tui.md, explanation). Linux 323 / Mac 349, gate PASS run #40.
27+- **Not tried by hand yet**: Models (p download, d+y remove) and Settings (Ctrl-O with a real editor — check the TUI does not steal keystrokes, and the screen comes back; Enter saves tui.yaml), and the tutorial's steps as written.
28+- v0.3 left: #26 (memory pressure), #28 (GPU load), #56 task 3 (their panel on the Dashboard). Then the v0.3 release (release skill: version string, notes, CLI reference header "0.2.0", diagram title "v0.2").
29+- Watch out: TUI tests must use `testEnvironment()` (temp cache and preferences); `PosixTerminal.suspend` sleeps 60 ms so a read in flight finishes before the editor starts.
@@ -21,3 +21,9 @@
21 - **Not tried by hand yet**: ask the user to run `rzb tui` against a real model (F1, type, Esc mid-answer, Ctrl-P, Ctrl-R with a reasoning model, `/set thinking off`; F2, `u`).21 - **Not tried by hand yet**: ask the user to run `rzb tui` against a real model (F1, type, Esc mid-answer, Ctrl-P, Ctrl-R with a reasoning model, `/set thinking off`; F2, `u`).
22 - Next: #57 (Models screen: HF cache read directly, pull with progress, remove), #58 (Settings: TUI preferences incl. poll interval and default sampling, server config form + reload), #59 (TUI docs: tutorial + how-to EN+FR), then #26/#28 for the Dashboard's machine panel. #61 (Olala spike) is separate, no milestone.22 - Next: #57 (Models screen: HF cache read directly, pull with progress, remove), #58 (Settings: TUI preferences incl. poll interval and default sampling, server config form + reload), #59 (TUI docs: tutorial + how-to EN+FR), then #26/#28 for the Dashboard's machine panel. #61 (Olala spike) is separate, no milestone.
23 - Watch out: a key the frame ignores goes to the current screen only (`TUIApp.forward`); Models and Settings ignore keys for now. `ChatScreen.answering` is the index the stream writes to.23 - Watch out: a key the frame ignores goes to the current screen only (`TUIApp.forward`); Models and Settings ignore keys for now. `ChatScreen.answering` is the index the stream writes to.
24+
25+## Update (same day, later): #57, #58, #59 done
26+- Models screen (cache, download with progress, remove with confirmation), Settings screen (tui.yaml form; server file in $EDITOR, checked, reloaded), TUI docs EN+FR (tutorial, 2 how-tos, reference tui.md, explanation). Linux 323 / Mac 349, gate PASS run #40.
27+- **Not tried by hand yet**: Models (p download, d+y remove) and Settings (Ctrl-O with a real editor — check the TUI does not steal keystrokes, and the screen comes back; Enter saves tui.yaml), and the tutorial's steps as written.
28+- v0.3 left: #26 (memory pressure), #28 (GPU load), #56 task 3 (their panel on the Dashboard). Then the v0.3 release (release skill: version string, notes, CLI reference header "0.2.0", diagram title "v0.2").
29+- Watch out: TUI tests must use `testEnvironment()` (temp cache and preferences); `PosixTerminal.suspend` sleeps 60 ms so a read in flight finishes before the editor starts.
modified .memory/history.md +11 -0
@@ -516,3 +516,14 @@ open, a comment on each. main fast-forwarded.
516516 - **Quality**: gate PASS run #38 (0/0/0, complexity 815).
517517 - **Docs**: EN+FR CLI reference (Dashboard and Chat keys, `/set` commands, Ctrl-C), HTTP reference (`first_byte_ms`, `duration_ms` to the last byte), how-to (unload from the TUI).
518518 - **Tickets**: #55 closed; #56 tasks 1–2 closed, task 3 (memory pressure / GPU panel) open, waiting for #26/#28; #61 created (spike: olala architecture — hybrid Mamba-3/attention MoE 256×6, custom Metal MoE kernel, fp32 Mamba state, weights in sub-folders, channel chat template; a Swift port on mlx-swift-lm, feasibility depends on the fork's code). main fast-forwarded.
519+
520+## 2026-11-27 — #57 Models, #58 Settings, #59 TUI docs
521+
522+- **Goal**: user "fais tout maintenant pour 57, 58 et 59, ne t'arrête pas, le host runner est lancé" (no checkpoints).
523+- **Changes**: Core — `TUIPreferences`/`TUIPreferencesLoader` (tui.yaml, errors with lines), public `StoredModel.init`. Server — `config_file` in `/rzb/status`. TUI — `TUIEnvironment` (store, download, preferences file, config file, editor), `ModelsScreen`/`ModelsRenderer`, `SettingsScreen`/`SettingsRenderer`, `ChatScreen.apply(preferences)`, `Terminal.suspend/resume` (poll-based reader that stops reading while paused), `TUIServer.reload`, `TUIApp+Models.swift` / `TUIApp+Settings.swift`, `AppRenderer.placeholder` removed. CLI — tui.yaml loaded by `rzb tui` (`RZB_TUI_PREFERENCES`), precedence options > tui.yaml > --config > defaults, the engine's download handed to the TUI. Commits 0c75ccb (code), b1f1dbc (docs, key reader split).
524+- **Decisions (mine)**: #58 task 3 — `$EDITOR` for the server's file (comments kept, validated on return, only then reloaded), a form for tui.yaml; #57 — remove unloads a loaded model first and is refused on 409; downloads through the CLI-provided engine so RazorbillTUI links no MLX; paths shown on their own lines in Settings.
525+- **Traps**: TUI tests used the default environment (real ~/.cache/huggingface and ~/.config/razorbill) → `testEnvironment()` in temp folders, and the CLI harness sets `RZB_TUI_PREFERENCES`; macOS temp paths are long and got truncated at 120 columns (only seen on the Mac run); the key reader's complexity (31) failed the qlty gate once (run #39) → split into `readKeys`/`nextInput`, PASS run #40; a blocking `read()` would steal the editor's keystrokes, hence the `poll()` with a paused flag.
526+- **Tests**: Linux 300 → 323, Mac 349 (host-runner), compat Linux 59/20. Models/Settings and the tutorial's steps not tried by hand yet.
527+- **Quality**: run #39 FAIL (1 smell, fixed), run #40 PASS (0/0/0).
528+- **Docs**: EN+FR tutorial `chat-from-the-terminal` / `discuter-depuis-le-terminal`, how-tos (models, server configuration from the TUI), reference `tui.md` (both languages), explanation `terminal-interface` / `interface-terminal`, CLI reference slimmed to options + precedence, HTTP reference `config_file`, indexes, diagram label.
529+- **Tickets**: #57, #58, #59 closed. Still open in v0.3: #26, #28, #56 task 3 (machine panel). main fast-forwarded.
@@ -516,3 +516,14 @@ open, a comment on each. main fast-forwarded.
516 - **Quality**: gate PASS run #38 (0/0/0, complexity 815).516 - **Quality**: gate PASS run #38 (0/0/0, complexity 815).
517 - **Docs**: EN+FR CLI reference (Dashboard and Chat keys, `/set` commands, Ctrl-C), HTTP reference (`first_byte_ms`, `duration_ms` to the last byte), how-to (unload from the TUI).517 - **Docs**: EN+FR CLI reference (Dashboard and Chat keys, `/set` commands, Ctrl-C), HTTP reference (`first_byte_ms`, `duration_ms` to the last byte), how-to (unload from the TUI).
518 - **Tickets**: #55 closed; #56 tasks 1–2 closed, task 3 (memory pressure / GPU panel) open, waiting for #26/#28; #61 created (spike: olala architecture — hybrid Mamba-3/attention MoE 256×6, custom Metal MoE kernel, fp32 Mamba state, weights in sub-folders, channel chat template; a Swift port on mlx-swift-lm, feasibility depends on the fork's code). main fast-forwarded.518 - **Tickets**: #55 closed; #56 tasks 1–2 closed, task 3 (memory pressure / GPU panel) open, waiting for #26/#28; #61 created (spike: olala architecture — hybrid Mamba-3/attention MoE 256×6, custom Metal MoE kernel, fp32 Mamba state, weights in sub-folders, channel chat template; a Swift port on mlx-swift-lm, feasibility depends on the fork's code). main fast-forwarded.
519+
520+## 2026-11-27 — #57 Models, #58 Settings, #59 TUI docs
521+
522+- **Goal**: user "fais tout maintenant pour 57, 58 et 59, ne t'arrête pas, le host runner est lancé" (no checkpoints).
523+- **Changes**: Core — `TUIPreferences`/`TUIPreferencesLoader` (tui.yaml, errors with lines), public `StoredModel.init`. Server — `config_file` in `/rzb/status`. TUI — `TUIEnvironment` (store, download, preferences file, config file, editor), `ModelsScreen`/`ModelsRenderer`, `SettingsScreen`/`SettingsRenderer`, `ChatScreen.apply(preferences)`, `Terminal.suspend/resume` (poll-based reader that stops reading while paused), `TUIServer.reload`, `TUIApp+Models.swift` / `TUIApp+Settings.swift`, `AppRenderer.placeholder` removed. CLI — tui.yaml loaded by `rzb tui` (`RZB_TUI_PREFERENCES`), precedence options > tui.yaml > --config > defaults, the engine's download handed to the TUI. Commits 0c75ccb (code), b1f1dbc (docs, key reader split).
524+- **Decisions (mine)**: #58 task 3 — `$EDITOR` for the server's file (comments kept, validated on return, only then reloaded), a form for tui.yaml; #57 — remove unloads a loaded model first and is refused on 409; downloads through the CLI-provided engine so RazorbillTUI links no MLX; paths shown on their own lines in Settings.
525+- **Traps**: TUI tests used the default environment (real ~/.cache/huggingface and ~/.config/razorbill) → `testEnvironment()` in temp folders, and the CLI harness sets `RZB_TUI_PREFERENCES`; macOS temp paths are long and got truncated at 120 columns (only seen on the Mac run); the key reader's complexity (31) failed the qlty gate once (run #39) → split into `readKeys`/`nextInput`, PASS run #40; a blocking `read()` would steal the editor's keystrokes, hence the `poll()` with a paused flag.
526+- **Tests**: Linux 300 → 323, Mac 349 (host-runner), compat Linux 59/20. Models/Settings and the tutorial's steps not tried by hand yet.
527+- **Quality**: run #39 FAIL (1 smell, fixed), run #40 PASS (0/0/0).
528+- **Docs**: EN+FR tutorial `chat-from-the-terminal` / `discuter-depuis-le-terminal`, how-tos (models, server configuration from the TUI), reference `tui.md` (both languages), explanation `terminal-interface` / `interface-terminal`, CLI reference slimmed to options + precedence, HTTP reference `config_file`, indexes, diagram label.
529+- **Tickets**: #57, #58, #59 closed. Still open in v0.3: #26, #28, #56 task 3 (machine panel). main fast-forwarded.
modified .memory/summary.md +15 -2
@@ -156,6 +156,16 @@ stream do not break it, `ChatOptions` set by `/set`, reasoning shown/folded/hidd
156156 streamed chat/completions record their tokens in `RequestUsage` at the end, and
157157 `RequestLogMiddleware` writes the history once the body is written (`ResponseBody.afterWriting`):
158158 `duration_ms` = to the last byte, `first_byte_ms` = to the head; the log line stays at the head.
159+Models (#57) and Settings (#58): `ModelsScreen`/`ModelsRenderer` (cache via `TUIEnvironment.store`,
160+`ModelRow.rows` marks loaded/declared/kind; `p` download through `TUIEnvironment.download`, which
161+the CLI builds from `engines.make().download`; `d`+`y` remove, unloading first, refused on 409),
162+`SettingsScreen`/`SettingsRenderer` (FormView over `tui.yaml`; Ctrl-O suspends the terminal —
163+`Terminal.suspend/resume`, `PosixTerminal` reader polls stdin and stops reading while paused — runs
164+`TUIEnvironment.edit` ($VISUAL/$EDITOR/vi), validates with `ServerConfigLoader`, then `reload()`;
165+Ctrl-R reloads). `TUIPreferences` + `TUIPreferencesLoader` live in Core (reuse `ConfigReader`).
166+`/rzb/status` has `config_file`. TUIApp actions split into `TUIApp+Models.swift` and
167+`TUIApp+Settings.swift` (members internal for that). `rzb tui` precedence: options > tui.yaml
168+(`RZB_TUI_PREFERENCES` overrides its path) > --config > defaults.
159169
160170 ## Decisions in force
161171
@@ -178,7 +188,9 @@ streamed chat/completions record their tokens in `RequestUsage` at the end, and
178188 Dashboard before #56. #55/#56 done without checkpoints at the user's request (2026-11-27); my
179189 choices there: no unload confirmation (the server refuses busy models), sampling per session via
180190 `/set`, partial answers stopped by Esc stay in the conversation, Ctrl-C stops a generation before
181- it quits.
191+ it quits. #57/#58/#59 done without checkpoints (user, 2026-11-27); my choices: server file edited in
192+ `$EDITOR` (comments kept), preferences in a form; removing a loaded model unloads it first and is
193+ refused on 409; downloads go through the engine handed over by the CLI (TUI links no MLX).
182194 - Default port 7920 (user, 2026-11-26; was 8080, taken by llama-server / mlx_lm.server / Open WebUI).
183195 `/`, `/v1`, `/v1/` answer the usual 404 `unknown_url` plus a hint that `/v1` is the base URL.
184196 - Work stays local: no push to `origin` until the user says so. `origin` is `ssh://git@rickub.com/bots-garden/razorbill.git`:
@@ -282,7 +294,8 @@ Linux 34 pass / 21 skip (Mac compat not re-run after #44). After #48 (prompt cac
282294 compat on Linux 48 pass / 20 skip. After #49: Linux 172, Mac 198, compat Linux 51 / 20 (Mac compat
283295 not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on
284296 macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54:
285-Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip.
297+Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip. After #57–#59: Linux 323,
298+Mac 349, compat Linux 59/20.
286299
287300 Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens,
288301 stop, seed, presence/frequency_penalty (mlx window: last 20 tokens incl. prompt), plus extensions
@@ -156,6 +156,16 @@ stream do not break it, `ChatOptions` set by `/set`, reasoning shown/folded/hidd
156 streamed chat/completions record their tokens in `RequestUsage` at the end, and156 streamed chat/completions record their tokens in `RequestUsage` at the end, and
157 `RequestLogMiddleware` writes the history once the body is written (`ResponseBody.afterWriting`):157 `RequestLogMiddleware` writes the history once the body is written (`ResponseBody.afterWriting`):
158 `duration_ms` = to the last byte, `first_byte_ms` = to the head; the log line stays at the head.158 `duration_ms` = to the last byte, `first_byte_ms` = to the head; the log line stays at the head.
159+Models (#57) and Settings (#58): `ModelsScreen`/`ModelsRenderer` (cache via `TUIEnvironment.store`,
160+`ModelRow.rows` marks loaded/declared/kind; `p` download through `TUIEnvironment.download`, which
161+the CLI builds from `engines.make().download`; `d`+`y` remove, unloading first, refused on 409),
162+`SettingsScreen`/`SettingsRenderer` (FormView over `tui.yaml`; Ctrl-O suspends the terminal —
163+`Terminal.suspend/resume`, `PosixTerminal` reader polls stdin and stops reading while paused — runs
164+`TUIEnvironment.edit` ($VISUAL/$EDITOR/vi), validates with `ServerConfigLoader`, then `reload()`;
165+Ctrl-R reloads). `TUIPreferences` + `TUIPreferencesLoader` live in Core (reuse `ConfigReader`).
166+`/rzb/status` has `config_file`. TUIApp actions split into `TUIApp+Models.swift` and
167+`TUIApp+Settings.swift` (members internal for that). `rzb tui` precedence: options > tui.yaml
168+(`RZB_TUI_PREFERENCES` overrides its path) > --config > defaults.
159 169
160 ## Decisions in force170 ## Decisions in force
161 171
@@ -178,7 +188,9 @@ streamed chat/completions record their tokens in `RequestUsage` at the end, and
178 Dashboard before #56. #55/#56 done without checkpoints at the user's request (2026-11-27); my188 Dashboard before #56. #55/#56 done without checkpoints at the user's request (2026-11-27); my
179 choices there: no unload confirmation (the server refuses busy models), sampling per session via189 choices there: no unload confirmation (the server refuses busy models), sampling per session via
180 `/set`, partial answers stopped by Esc stay in the conversation, Ctrl-C stops a generation before190 `/set`, partial answers stopped by Esc stay in the conversation, Ctrl-C stops a generation before
181- it quits.191+ it quits. #57/#58/#59 done without checkpoints (user, 2026-11-27); my choices: server file edited in
192+ `$EDITOR` (comments kept), preferences in a form; removing a loaded model unloads it first and is
193+ refused on 409; downloads go through the engine handed over by the CLI (TUI links no MLX).
182 - Default port 7920 (user, 2026-11-26; was 8080, taken by llama-server / mlx_lm.server / Open WebUI).194 - Default port 7920 (user, 2026-11-26; was 8080, taken by llama-server / mlx_lm.server / Open WebUI).
183 `/`, `/v1`, `/v1/` answer the usual 404 `unknown_url` plus a hint that `/v1` is the base URL.195 `/`, `/v1`, `/v1/` answer the usual 404 `unknown_url` plus a hint that `/v1` is the base URL.
184 - Work stays local: no push to `origin` until the user says so. `origin` is `ssh://git@rickub.com/bots-garden/razorbill.git`:196 - Work stays local: no push to `origin` until the user says so. `origin` is `ssh://git@rickub.com/bots-garden/razorbill.git`:
@@ -282,7 +294,8 @@ Linux 34 pass / 21 skip (Mac compat not re-run after #44). After #48 (prompt cac
282 compat on Linux 48 pass / 20 skip. After #49: Linux 172, Mac 198, compat Linux 51 / 20 (Mac compat294 compat on Linux 48 pass / 20 skip. After #49: Linux 172, Mac 198, compat Linux 51 / 20 (Mac compat
283 not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on295 not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on
284 macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54:296 macOS only), compat on Linux `-k docs_curl` 22 pass (whole compat suite not re-run). After #54:
285-Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip.297+Linux 277, Mac 303. After #55/#56: Linux 300, Mac 326, compat on Linux 59 pass / 20 skip. After #57–#59: Linux 323,
298+Mac 349, compat Linux 59/20.
286 299
287 Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens,300 Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens,
288 stop, seed, presence/frequency_penalty (mlx window: last 20 tokens incl. prompt), plus extensions301 stop, seed, presence/frequency_penalty (mlx window: last 20 tokens incl. prompt), plus extensions
modified .tickets/issues/0057-tui-models-screen.yaml +25 -6
@@ -1,12 +1,13 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 57
33 title: "TUI models screen: list, download, remove"
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z
9+updatedAt: 2026-11-27T06:00:00.000Z
10+closedAt: 2026-11-27T06:00:00.000Z
1011 labels:
1112 - "kind::feature"
1213 - "area::tui"
@@ -26,26 +27,44 @@ body: |
2627 tasks:
2728 - id: 1
2829 title: "List with loaded / declared marks"
29- state: open
30+ state: closed
3031 priority: high
3132 author:
3233 name: k33g
3334 email: ph.charriere@gmail.com
3435 createdAt: 2026-11-26T08:00:00.000Z
36+ updatedAt: 2026-11-27T06:00:00.000Z
37+ closedAt: 2026-11-27T06:00:00.000Z
3538 - id: 2
3639 title: "Download with progress"
37- state: open
40+ state: closed
3841 priority: medium
3942 author:
4043 name: k33g
4144 email: ph.charriere@gmail.com
4245 createdAt: 2026-11-26T08:00:00.000Z
46+ updatedAt: 2026-11-27T06:00:00.000Z
47+ closedAt: 2026-11-27T06:00:00.000Z
4348 - id: 3
4449 title: "Remove with confirmation"
45- state: open
50+ state: closed
4651 priority: medium
4752 author:
4853 name: k33g
4954 email: ph.charriere@gmail.com
5055 createdAt: 2026-11-26T08:00:00.000Z
51-comments: []
56+ updatedAt: 2026-11-27T06:00:00.000Z
57+ closedAt: 2026-11-27T06:00:00.000Z
58+comments:
59+ - id: 1
60+ author:
61+ name: k33g
62+ email: ph.charriere@gmail.com
63+ createdAt: 2026-11-27T06:00:00.000Z
64+ body: |
65+ Done on branch feature/v0.3-tui (0c75ccb, docs b1f1dbc), without checkpoints at the user's request ("fais tout maintenant pour 57, 58 et 59, ne t'arrête pas").
66+ - List: the cache's MLX models (ModelStore, as rzb models list), columns id / kind (from the config or the loaded model, else -) / size / loaded (from /rzb/status) / declared as (from the --config file, else the file /rzb/status reports).
67+ - Download (p, type org/name, Enter): through the build's engine, handed over by the CLI (TUIEnvironment.download) so RazorbillTUI still links no MLX; a progress gauge per download.
68+ - Remove (d or Delete, then y) — decision: a loaded model is unloaded first; refused, with the server's message, when the server answers 409 (in use).
69+ - Hint for the selected model: size against the server's memory in use / limit, "more than is free now" when it would not fit.
70+ - Tests: ModelRow, ModelsScreen, ModelsRenderer, app flows (download with progress, remove with 409 then success). Linux 323, Mac 349. Not tried by hand yet.
@@ -1,12 +1,13 @@
1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2 id: 572 id: 57
3 title: "TUI models screen: list, download, remove"3 title: "TUI models screen: list, download, remove"
4-state: open4+state: closed
5 author:5 author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-26T08:00:00.000Z8 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z9+updatedAt: 2026-11-27T06:00:00.000Z
10+closedAt: 2026-11-27T06:00:00.000Z
10 labels:11 labels:
11 - "kind::feature"12 - "kind::feature"
12 - "area::tui"13 - "area::tui"
@@ -26,26 +27,44 @@ body: |
26 tasks:27 tasks:
27 - id: 128 - id: 1
28 title: "List with loaded / declared marks"29 title: "List with loaded / declared marks"
29- state: open30+ state: closed
30 priority: high31 priority: high
31 author:32 author:
32 name: k33g33 name: k33g
33 email: ph.charriere@gmail.com34 email: ph.charriere@gmail.com
34 createdAt: 2026-11-26T08:00:00.000Z35 createdAt: 2026-11-26T08:00:00.000Z
36+ updatedAt: 2026-11-27T06:00:00.000Z
37+ closedAt: 2026-11-27T06:00:00.000Z
35 - id: 238 - id: 2
36 title: "Download with progress"39 title: "Download with progress"
37- state: open40+ state: closed
38 priority: medium41 priority: medium
39 author:42 author:
40 name: k33g43 name: k33g
41 email: ph.charriere@gmail.com44 email: ph.charriere@gmail.com
42 createdAt: 2026-11-26T08:00:00.000Z45 createdAt: 2026-11-26T08:00:00.000Z
46+ updatedAt: 2026-11-27T06:00:00.000Z
47+ closedAt: 2026-11-27T06:00:00.000Z
43 - id: 348 - id: 3
44 title: "Remove with confirmation"49 title: "Remove with confirmation"
45- state: open50+ state: closed
46 priority: medium51 priority: medium
47 author:52 author:
48 name: k33g53 name: k33g
49 email: ph.charriere@gmail.com54 email: ph.charriere@gmail.com
50 createdAt: 2026-11-26T08:00:00.000Z55 createdAt: 2026-11-26T08:00:00.000Z
51-comments: []56+ updatedAt: 2026-11-27T06:00:00.000Z
57+ closedAt: 2026-11-27T06:00:00.000Z
58+comments:
59+ - id: 1
60+ author:
61+ name: k33g
62+ email: ph.charriere@gmail.com
63+ createdAt: 2026-11-27T06:00:00.000Z
64+ body: |
65+ Done on branch feature/v0.3-tui (0c75ccb, docs b1f1dbc), without checkpoints at the user's request ("fais tout maintenant pour 57, 58 et 59, ne t'arrête pas").
66+ - List: the cache's MLX models (ModelStore, as rzb models list), columns id / kind (from the config or the loaded model, else -) / size / loaded (from /rzb/status) / declared as (from the --config file, else the file /rzb/status reports).
67+ - Download (p, type org/name, Enter): through the build's engine, handed over by the CLI (TUIEnvironment.download) so RazorbillTUI still links no MLX; a progress gauge per download.
68+ - Remove (d or Delete, then y) — decision: a loaded model is unloaded first; refused, with the server's message, when the server answers 409 (in use).
69+ - Hint for the selected model: size against the server's memory in use / limit, "more than is free now" when it would not fit.
70+ - Tests: ModelRow, ModelsScreen, ModelsRenderer, app flows (download with progress, remove with 409 then success). Linux 323, Mac 349. Not tried by hand yet.
modified .tickets/issues/0058-tui-settings-screen-preferences-and-server-config.yaml +24 -6
@@ -1,12 +1,13 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 58
33 title: "TUI settings screen: TUI preferences and server configuration"
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z
9+updatedAt: 2026-11-27T06:00:00.000Z
10+closedAt: 2026-11-27T06:00:00.000Z
1011 labels:
1112 - "kind::feature"
1213 - "area::tui"
@@ -31,26 +32,43 @@ body: |
3132 tasks:
3233 - id: 1
3334 title: "TUI preferences file and form"
34- state: open
35+ state: closed
3536 priority: medium
3637 author:
3738 name: k33g
3839 email: ph.charriere@gmail.com
3940 createdAt: 2026-11-26T08:00:00.000Z
41+ updatedAt: 2026-11-27T06:00:00.000Z
42+ closedAt: 2026-11-27T06:00:00.000Z
4043 - id: 2
4144 title: "Server configuration editing, validation and reload"
42- state: open
45+ state: closed
4346 priority: medium
4447 author:
4548 name: k33g
4649 email: ph.charriere@gmail.com
4750 createdAt: 2026-11-26T08:00:00.000Z
51+ updatedAt: 2026-11-27T06:00:00.000Z
52+ closedAt: 2026-11-27T06:00:00.000Z
4853 - id: 3
4954 title: "Decide forms vs $EDITOR for the server file"
50- state: open
55+ state: closed
5156 priority: high
5257 author:
5358 name: k33g
5459 email: ph.charriere@gmail.com
5560 createdAt: 2026-11-26T08:00:00.000Z
56-comments: []
61+ updatedAt: 2026-11-27T06:00:00.000Z
62+ closedAt: 2026-11-27T06:00:00.000Z
63+comments:
64+ - id: 1
65+ author:
66+ name: k33g
67+ email: ph.charriere@gmail.com
68+ createdAt: 2026-11-27T06:00:00.000Z
69+ body: |
70+ Done on branch feature/v0.3-tui (0c75ccb, docs b1f1dbc).
71+ - Decision (task 3): the server's file opens in $VISUAL / $EDITOR / vi (the terminal is suspended: normal mode, key reader paused), so its comments survive; on return it is checked with ServerConfigLoader, and only a valid file is reloaded (POST /rzb/config/reload); Ctrl-R reloads it as it is. The TUI preferences use a form, since tui.yaml is a file rzb tui writes itself.
72+ - tui.yaml: TUIPreferencesLoader in RazorbillCore (unknown keys and wrong values with their lines, like the server file): server_url, api_key_env, reasoning, colors, poll_interval, chat.{temperature, top_p, top_k, min_p, max_tokens, thinking}. RZB_TUI_PREFERENCES overrides the path. Precedence: rzb tui options > tui.yaml > --config > defaults. Saving applies reasoning, chat sampling, colours and poll interval at once; URL and key variable at the next start.
73+ - /rzb/status gained config_file (absolute path or null), so the TUI finds the server's file without --config.
74+ - Tests: loader (keys, errors with lines, save/load round trip), SettingsScreen (form round trip, invalid fields, Esc), app flows (save applied to the chat, edit with an invalid then a valid file → reload, no file). Not tried by hand yet.
@@ -1,12 +1,13 @@
1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2 id: 582 id: 58
3 title: "TUI settings screen: TUI preferences and server configuration"3 title: "TUI settings screen: TUI preferences and server configuration"
4-state: open4+state: closed
5 author:5 author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-26T08:00:00.000Z8 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z9+updatedAt: 2026-11-27T06:00:00.000Z
10+closedAt: 2026-11-27T06:00:00.000Z
10 labels:11 labels:
11 - "kind::feature"12 - "kind::feature"
12 - "area::tui"13 - "area::tui"
@@ -31,26 +32,43 @@ body: |
31 tasks:32 tasks:
32 - id: 133 - id: 1
33 title: "TUI preferences file and form"34 title: "TUI preferences file and form"
34- state: open35+ state: closed
35 priority: medium36 priority: medium
36 author:37 author:
37 name: k33g38 name: k33g
38 email: ph.charriere@gmail.com39 email: ph.charriere@gmail.com
39 createdAt: 2026-11-26T08:00:00.000Z40 createdAt: 2026-11-26T08:00:00.000Z
41+ updatedAt: 2026-11-27T06:00:00.000Z
42+ closedAt: 2026-11-27T06:00:00.000Z
40 - id: 243 - id: 2
41 title: "Server configuration editing, validation and reload"44 title: "Server configuration editing, validation and reload"
42- state: open45+ state: closed
43 priority: medium46 priority: medium
44 author:47 author:
45 name: k33g48 name: k33g
46 email: ph.charriere@gmail.com49 email: ph.charriere@gmail.com
47 createdAt: 2026-11-26T08:00:00.000Z50 createdAt: 2026-11-26T08:00:00.000Z
51+ updatedAt: 2026-11-27T06:00:00.000Z
52+ closedAt: 2026-11-27T06:00:00.000Z
48 - id: 353 - id: 3
49 title: "Decide forms vs $EDITOR for the server file"54 title: "Decide forms vs $EDITOR for the server file"
50- state: open55+ state: closed
51 priority: high56 priority: high
52 author:57 author:
53 name: k33g58 name: k33g
54 email: ph.charriere@gmail.com59 email: ph.charriere@gmail.com
55 createdAt: 2026-11-26T08:00:00.000Z60 createdAt: 2026-11-26T08:00:00.000Z
56-comments: []61+ updatedAt: 2026-11-27T06:00:00.000Z
62+ closedAt: 2026-11-27T06:00:00.000Z
63+comments:
64+ - id: 1
65+ author:
66+ name: k33g
67+ email: ph.charriere@gmail.com
68+ createdAt: 2026-11-27T06:00:00.000Z
69+ body: |
70+ Done on branch feature/v0.3-tui (0c75ccb, docs b1f1dbc).
71+ - Decision (task 3): the server's file opens in $VISUAL / $EDITOR / vi (the terminal is suspended: normal mode, key reader paused), so its comments survive; on return it is checked with ServerConfigLoader, and only a valid file is reloaded (POST /rzb/config/reload); Ctrl-R reloads it as it is. The TUI preferences use a form, since tui.yaml is a file rzb tui writes itself.
72+ - tui.yaml: TUIPreferencesLoader in RazorbillCore (unknown keys and wrong values with their lines, like the server file): server_url, api_key_env, reasoning, colors, poll_interval, chat.{temperature, top_p, top_k, min_p, max_tokens, thinking}. RZB_TUI_PREFERENCES overrides the path. Precedence: rzb tui options > tui.yaml > --config > defaults. Saving applies reasoning, chat sampling, colours and poll interval at once; URL and key variable at the next start.
73+ - /rzb/status gained config_file (absolute path or null), so the TUI finds the server's file without --config.
74+ - Tests: loader (keys, errors with lines, save/load round trip), SettingsScreen (form round trip, invalid fields, Esc), app flows (save applied to the chat, edit with an invalid then a valid file → reload, no file). Not tried by hand yet.
modified .tickets/issues/0059-tui-documentation-en-fr.yaml +14 -4
@@ -1,12 +1,13 @@
11 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
22 id: 59
33 title: "TUI documentation (EN + FR)"
4-state: open
4+state: closed
55 author:
66 name: k33g
77 email: ph.charriere@gmail.com
88 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z
9+updatedAt: 2026-11-27T06:00:00.000Z
10+closedAt: 2026-11-27T06:00:00.000Z
1011 labels:
1112 - "documentation"
1213 - "area::docs"
@@ -25,10 +26,19 @@ body: |
2526 tasks:
2627 - id: 1
2728 title: "Write the TUI docs EN + FR"
28- state: open
29+ state: closed
2930 priority: medium
3031 author:
3132 name: k33g
3233 email: ph.charriere@gmail.com
3334 createdAt: 2026-11-26T08:00:00.000Z
34-comments: []
35+ updatedAt: 2026-11-27T06:00:00.000Z
36+ closedAt: 2026-11-27T06:00:00.000Z
37+comments:
38+ - id: 1
39+ author:
40+ name: k33g
41+ email: ph.charriere@gmail.com
42+ createdAt: 2026-11-27T06:00:00.000Z
43+ body: |
44+ Written EN + FR (b1f1dbc): tutorial "chat with a local model from the terminal", how-tos "manage models from rzb tui" and "change the server's configuration from rzb tui", reference "rzb tui" (frame, keys, every screen, chat commands, tui.yaml, the requests it makes), explanation "the terminal interface" (second process, three channels, what stays local, polling, editor vs forms, rejected alternatives). The CLI reference's rzb tui section now points to it; indexes and cross-links updated. The tutorial's exact outputs were not run end to end on the Mac yet.
@@ -1,12 +1,13 @@
1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.1 # Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2 id: 592 id: 59
3 title: "TUI documentation (EN + FR)"3 title: "TUI documentation (EN + FR)"
4-state: open4+state: closed
5 author:5 author:
6 name: k33g6 name: k33g
7 email: ph.charriere@gmail.com7 email: ph.charriere@gmail.com
8 createdAt: 2026-11-26T08:00:00.000Z8 createdAt: 2026-11-26T08:00:00.000Z
9-updatedAt: 2026-11-26T08:00:00.000Z9+updatedAt: 2026-11-27T06:00:00.000Z
10+closedAt: 2026-11-27T06:00:00.000Z
10 labels:11 labels:
11 - "documentation"12 - "documentation"
12 - "area::docs"13 - "area::docs"
@@ -25,10 +26,19 @@ body: |
25 tasks:26 tasks:
26 - id: 127 - id: 1
27 title: "Write the TUI docs EN + FR"28 title: "Write the TUI docs EN + FR"
28- state: open29+ state: closed
29 priority: medium30 priority: medium
30 author:31 author:
31 name: k33g32 name: k33g
32 email: ph.charriere@gmail.com33 email: ph.charriere@gmail.com
33 createdAt: 2026-11-26T08:00:00.000Z34 createdAt: 2026-11-26T08:00:00.000Z
34-comments: []35+ updatedAt: 2026-11-27T06:00:00.000Z
36+ closedAt: 2026-11-27T06:00:00.000Z
37+comments:
38+ - id: 1
39+ author:
40+ name: k33g
41+ email: ph.charriere@gmail.com
42+ createdAt: 2026-11-27T06:00:00.000Z
43+ body: |
44+ Written EN + FR (b1f1dbc): tutorial "chat with a local model from the terminal", how-tos "manage models from rzb tui" and "change the server's configuration from rzb tui", reference "rzb tui" (frame, keys, every screen, chat commands, tui.yaml, the requests it makes), explanation "the terminal interface" (second process, three channels, what stays local, polling, editor vs forms, rejected alternatives). The CLI reference's rzb tui section now points to it; indexes and cross-links updated. The tutorial's exact outputs were not run end to end on the Mac yet.