memory + tickets: #57, #58, #59 closed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
041f8f0 parent: b1f1dbc modified
.memory/handoffs/2026-11-27-v0-3-tui-foundation.md +6 -0 | @@ -21,3 +21,9 @@ | ||
| 21 | 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 | 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 | 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. | |
| @@ -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. | ||
| 516 | 516 | - **Quality**: gate PASS run #38 (0/0/0, complexity 815). |
| 517 | 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 | 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. | |
| @@ -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 | ||
| 156 | 156 | streamed chat/completions record their tokens in `RequestUsage` at the end, and |
| 157 | 157 | `RequestLogMiddleware` writes the history once the body is written (`ResponseBody.afterWriting`): |
| 158 | 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 | 170 | ## Decisions in force |
| 161 | 171 | |
| @@ -178,7 +188,9 @@ streamed chat/completions record their tokens in `RequestUsage` at the end, and | ||
| 178 | 188 | Dashboard before #56. #55/#56 done without checkpoints at the user's request (2026-11-27); my |
| 179 | 189 | choices there: no unload confirmation (the server refuses busy models), sampling per session via |
| 180 | 190 | `/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 | 194 | - Default port 7920 (user, 2026-11-26; was 8080, taken by llama-server / mlx_lm.server / Open WebUI). |
| 183 | 195 | `/`, `/v1`, `/v1/` answer the usual 404 `unknown_url` plus a hint that `/v1` is the base URL. |
| 184 | 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 | 294 | compat on Linux 48 pass / 20 skip. After #49: Linux 172, Mac 198, compat Linux 51 / 20 (Mac compat |
| 283 | 295 | not re-run since #44). After #53: Linux 217, Mac 243 (host-runner; `sighupReloadsTheFile` runs on |
| 284 | 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 | 300 | Sampling (#49, user's rule: only what mlx-swift-lm implements): temperature, top_p, max_tokens, |
| 288 | 301 | 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, and | 156 | 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 force | 170 | ## 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); my | 188 | 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 via | 189 | 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 before | 190 | `/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 compat | 294 | 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 on | 295 | 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 extensions | 301 | 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 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 57 |
| 3 | 3 | title: "TUI models screen: list, download, remove" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | 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 | |
| 10 | 11 | labels: |
| 11 | 12 | - "kind::feature" |
| 12 | 13 | - "area::tui" |
| @@ -26,26 +27,44 @@ body: | | ||
| 26 | 27 | tasks: |
| 27 | 28 | - id: 1 |
| 28 | 29 | title: "List with loaded / declared marks" |
| 29 | - state: open | |
| 30 | + state: closed | |
| 30 | 31 | priority: high |
| 31 | 32 | author: |
| 32 | 33 | name: k33g |
| 33 | 34 | email: ph.charriere@gmail.com |
| 34 | 35 | createdAt: 2026-11-26T08:00:00.000Z |
| 36 | + updatedAt: 2026-11-27T06:00:00.000Z | |
| 37 | + closedAt: 2026-11-27T06:00:00.000Z | |
| 35 | 38 | - id: 2 |
| 36 | 39 | title: "Download with progress" |
| 37 | - state: open | |
| 40 | + state: closed | |
| 38 | 41 | priority: medium |
| 39 | 42 | author: |
| 40 | 43 | name: k33g |
| 41 | 44 | email: ph.charriere@gmail.com |
| 42 | 45 | createdAt: 2026-11-26T08:00:00.000Z |
| 46 | + updatedAt: 2026-11-27T06:00:00.000Z | |
| 47 | + closedAt: 2026-11-27T06:00:00.000Z | |
| 43 | 48 | - id: 3 |
| 44 | 49 | title: "Remove with confirmation" |
| 45 | - state: open | |
| 50 | + state: closed | |
| 46 | 51 | priority: medium |
| 47 | 52 | author: |
| 48 | 53 | name: k33g |
| 49 | 54 | email: ph.charriere@gmail.com |
| 50 | 55 | 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: 57 | 2 | id: 57 |
| 3 | title: "TUI models screen: list, download, remove" | 3 | title: "TUI models screen: list, download, remove" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-26T08:00:00.000Z | 8 | 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 | ||
| 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: 1 | 28 | - id: 1 |
| 28 | title: "List with loaded / declared marks" | 29 | title: "List with loaded / declared marks" |
| 29 | - state: open | 30 | + state: closed |
| 30 | priority: high | 31 | priority: high |
| 31 | author: | 32 | author: |
| 32 | name: k33g | 33 | name: k33g |
| 33 | email: ph.charriere@gmail.com | 34 | email: ph.charriere@gmail.com |
| 34 | createdAt: 2026-11-26T08:00:00.000Z | 35 | 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: 2 | 38 | - id: 2 |
| 36 | title: "Download with progress" | 39 | title: "Download with progress" |
| 37 | - state: open | 40 | + state: closed |
| 38 | priority: medium | 41 | priority: medium |
| 39 | author: | 42 | author: |
| 40 | name: k33g | 43 | name: k33g |
| 41 | email: ph.charriere@gmail.com | 44 | email: ph.charriere@gmail.com |
| 42 | createdAt: 2026-11-26T08:00:00.000Z | 45 | 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: 3 | 48 | - id: 3 |
| 44 | title: "Remove with confirmation" | 49 | title: "Remove with confirmation" |
| 45 | - state: open | 50 | + state: closed |
| 46 | priority: medium | 51 | priority: medium |
| 47 | author: | 52 | author: |
| 48 | name: k33g | 53 | name: k33g |
| 49 | email: ph.charriere@gmail.com | 54 | email: ph.charriere@gmail.com |
| 50 | createdAt: 2026-11-26T08:00:00.000Z | 55 | 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 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 58 |
| 3 | 3 | title: "TUI settings screen: TUI preferences and server configuration" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | 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 | |
| 10 | 11 | labels: |
| 11 | 12 | - "kind::feature" |
| 12 | 13 | - "area::tui" |
| @@ -31,26 +32,43 @@ body: | | ||
| 31 | 32 | tasks: |
| 32 | 33 | - id: 1 |
| 33 | 34 | title: "TUI preferences file and form" |
| 34 | - state: open | |
| 35 | + state: closed | |
| 35 | 36 | priority: medium |
| 36 | 37 | author: |
| 37 | 38 | name: k33g |
| 38 | 39 | email: ph.charriere@gmail.com |
| 39 | 40 | createdAt: 2026-11-26T08:00:00.000Z |
| 41 | + updatedAt: 2026-11-27T06:00:00.000Z | |
| 42 | + closedAt: 2026-11-27T06:00:00.000Z | |
| 40 | 43 | - id: 2 |
| 41 | 44 | title: "Server configuration editing, validation and reload" |
| 42 | - state: open | |
| 45 | + state: closed | |
| 43 | 46 | priority: medium |
| 44 | 47 | author: |
| 45 | 48 | name: k33g |
| 46 | 49 | email: ph.charriere@gmail.com |
| 47 | 50 | createdAt: 2026-11-26T08:00:00.000Z |
| 51 | + updatedAt: 2026-11-27T06:00:00.000Z | |
| 52 | + closedAt: 2026-11-27T06:00:00.000Z | |
| 48 | 53 | - id: 3 |
| 49 | 54 | title: "Decide forms vs $EDITOR for the server file" |
| 50 | - state: open | |
| 55 | + state: closed | |
| 51 | 56 | priority: high |
| 52 | 57 | author: |
| 53 | 58 | name: k33g |
| 54 | 59 | email: ph.charriere@gmail.com |
| 55 | 60 | 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: 58 | 2 | id: 58 |
| 3 | title: "TUI settings screen: TUI preferences and server configuration" | 3 | title: "TUI settings screen: TUI preferences and server configuration" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-26T08:00:00.000Z | 8 | 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 | ||
| 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: 1 | 33 | - id: 1 |
| 33 | title: "TUI preferences file and form" | 34 | title: "TUI preferences file and form" |
| 34 | - state: open | 35 | + state: closed |
| 35 | priority: medium | 36 | priority: medium |
| 36 | author: | 37 | author: |
| 37 | name: k33g | 38 | name: k33g |
| 38 | email: ph.charriere@gmail.com | 39 | email: ph.charriere@gmail.com |
| 39 | createdAt: 2026-11-26T08:00:00.000Z | 40 | 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: 2 | 43 | - id: 2 |
| 41 | title: "Server configuration editing, validation and reload" | 44 | title: "Server configuration editing, validation and reload" |
| 42 | - state: open | 45 | + state: closed |
| 43 | priority: medium | 46 | priority: medium |
| 44 | author: | 47 | author: |
| 45 | name: k33g | 48 | name: k33g |
| 46 | email: ph.charriere@gmail.com | 49 | email: ph.charriere@gmail.com |
| 47 | createdAt: 2026-11-26T08:00:00.000Z | 50 | 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: 3 | 53 | - id: 3 |
| 49 | title: "Decide forms vs $EDITOR for the server file" | 54 | title: "Decide forms vs $EDITOR for the server file" |
| 50 | - state: open | 55 | + state: closed |
| 51 | priority: high | 56 | priority: high |
| 52 | author: | 57 | author: |
| 53 | name: k33g | 58 | name: k33g |
| 54 | email: ph.charriere@gmail.com | 59 | email: ph.charriere@gmail.com |
| 55 | createdAt: 2026-11-26T08:00:00.000Z | 60 | 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 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 59 |
| 3 | 3 | title: "TUI documentation (EN + FR)" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | 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 | |
| 10 | 11 | labels: |
| 11 | 12 | - "documentation" |
| 12 | 13 | - "area::docs" |
| @@ -25,10 +26,19 @@ body: | | ||
| 25 | 26 | tasks: |
| 26 | 27 | - id: 1 |
| 27 | 28 | title: "Write the TUI docs EN + FR" |
| 28 | - state: open | |
| 29 | + state: closed | |
| 29 | 30 | priority: medium |
| 30 | 31 | author: |
| 31 | 32 | name: k33g |
| 32 | 33 | email: ph.charriere@gmail.com |
| 33 | 34 | 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: 59 | 2 | id: 59 |
| 3 | title: "TUI documentation (EN + FR)" | 3 | title: "TUI documentation (EN + FR)" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-26T08:00:00.000Z | 8 | 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 | ||
| 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: 1 | 27 | - id: 1 |
| 27 | title: "Write the TUI docs EN + FR" | 28 | title: "Write the TUI docs EN + FR" |
| 28 | - state: open | 29 | + state: closed |
| 29 | priority: medium | 30 | priority: medium |
| 30 | author: | 31 | author: |
| 31 | name: k33g | 32 | name: k33g |
| 32 | email: ph.charriere@gmail.com | 33 | email: ph.charriere@gmail.com |
| 33 | createdAt: 2026-11-26T08:00:00.000Z | 34 | 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. | ||