v0.4 TUI planned: #51 closed, tickets #53-#59, #26/#28 moved to v0.4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a218748 parent: ab0f687 modified
.memory/handoffs/2026-11-25-v0-2-server-foundation.md +2 -2 | @@ -127,6 +127,6 @@ To finish the release, on the Mac (user): `scripts/release.sh` (first run rebuil | ||
| 127 | 127 | `.build/release`, ~10 min), `scripts/compat.sh` (not run on the Mac since #44), try the unpacked |
| 128 | 128 | archive with `rzb serve`; then `git tag -a v0.2.0` on main. Not checked: whether `rzb` still finds |
| 129 | 129 | its bundles when started through a symlink (docs say: put the folder on PATH). Next milestones: |
| 130 | -v0.4 TUI — spike #51: scope = chat + dashboard + models + settings; open: HTTP client + admin API | |
| 131 | -vs. in-process server, and what settings covers (see #51 comment 1). v1.0.0 | |
| 130 | +v0.4 TUI planned: #51 closed, tickets #53–#59 (start with #53 admin routes, then #54 foundation); | |
| 131 | +open choices are listed inside the tickets (polling vs SSE, unload while busy, forms vs $EDITOR). v1.0.0 | |
| 132 | 132 | signing #52. #47 leftovers have no milestone. |
| @@ -127,6 +127,6 @@ To finish the release, on the Mac (user): `scripts/release.sh` (first run rebuil | |||
| 127 | `.build/release`, ~10 min), `scripts/compat.sh` (not run on the Mac since #44), try the unpacked | 127 | `.build/release`, ~10 min), `scripts/compat.sh` (not run on the Mac since #44), try the unpacked |
| 128 | archive with `rzb serve`; then `git tag -a v0.2.0` on main. Not checked: whether `rzb` still finds | 128 | archive with `rzb serve`; then `git tag -a v0.2.0` on main. Not checked: whether `rzb` still finds |
| 129 | its bundles when started through a symlink (docs say: put the folder on PATH). Next milestones: | 129 | its bundles when started through a symlink (docs say: put the folder on PATH). Next milestones: |
| 130 | -v0.4 TUI — spike #51: scope = chat + dashboard + models + settings; open: HTTP client + admin API | 130 | +v0.4 TUI planned: #51 closed, tickets #53–#59 (start with #53 admin routes, then #54 foundation); |
| 131 | -vs. in-process server, and what settings covers (see #51 comment 1). v1.0.0 | 131 | +open choices are listed inside the tickets (polling vs SSE, unload while busy, forms vs $EDITOR). v1.0.0 |
| 132 | signing #52. #47 leftovers have no milestone. | 132 | signing #52. #47 leftovers have no milestone. |
modified
.memory/history.md +9 -0 | @@ -328,3 +328,12 @@ settings. Recorded on #51 (comment 1) with the inventory of the v0.1 TUI layer ( | ||
| 328 | 328 | TextLayout and the pure state/renderer pattern reusable; ChatState/TUIApp agent-bound). Two |
| 329 | 329 | decisions put to the user, not answered yet (they asked to clarify first): HTTP client + own admin |
| 330 | 330 | API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers. |
| 331 | + | |
| 332 | +## 2026-11-26 — v0.4 TUI planned (#51 closed, #53–#59) | |
| 333 | + | |
| 334 | +User clarified: why not a second rzb instance → yes, the TUI is a second `rzb` process on the same | |
| 335 | +machine; no remote server; unload from the TUI wanted in v0.4; settings = TUI preferences + server | |
| 336 | +config. Rejected: a server inside the TUI (double model memory), connecting to remote servers. | |
| 337 | +Tickets: #53 local admin routes (status, unload, reload + SIGHUP, loopback only), #54 foundation | |
| 338 | +(restore v0.1 terminal layer, 4 screens, HTTP client), #55 chat, #56 dashboard, #57 models, #58 | |
| 339 | +settings (open: forms lose YAML comments vs $EDITOR), #59 docs; #26/#28 moved into v0.4. No code. | |
| @@ -328,3 +328,12 @@ settings. Recorded on #51 (comment 1) with the inventory of the v0.1 TUI layer ( | |||
| 328 | TextLayout and the pure state/renderer pattern reusable; ChatState/TUIApp agent-bound). Two | 328 | TextLayout and the pure state/renderer pattern reusable; ChatState/TUIApp agent-bound). Two |
| 329 | decisions put to the user, not answered yet (they asked to clarify first): HTTP client + own admin | 329 | decisions put to the user, not answered yet (they asked to clarify first): HTTP client + own admin |
| 330 | API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers. | 330 | API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers. |
| 331 | + | ||
| 332 | +## 2026-11-26 — v0.4 TUI planned (#51 closed, #53–#59) | ||
| 333 | + | ||
| 334 | +User clarified: why not a second rzb instance → yes, the TUI is a second `rzb` process on the same | ||
| 335 | +machine; no remote server; unload from the TUI wanted in v0.4; settings = TUI preferences + server | ||
| 336 | +config. Rejected: a server inside the TUI (double model memory), connecting to remote servers. | ||
| 337 | +Tickets: #53 local admin routes (status, unload, reload + SIGHUP, loopback only), #54 foundation | ||
| 338 | +(restore v0.1 terminal layer, 4 screens, HTTP client), #55 chat, #56 dashboard, #57 models, #58 | ||
| 339 | +settings (open: forms lose YAML comments vs $EDITOR), #59 docs; #26/#28 moved into v0.4. No code. | ||
modified
.memory/summary.md +5 -0 | @@ -127,6 +127,11 @@ parser commands, `CLIEnvironment` task-local for tests), executable `rzb`. Engin | ||
| 127 | 127 | or not (cached GGUF-only repos refused; uncached ones checked at download, #34). Nothing is locked |
| 128 | 128 | unless listed in a `locked:` block; temperature/top_p/thinking imposed, max_tokens and |
| 129 | 129 | thinking_budget are ceilings. Order: built-in → defaults (server, model) → client → locked. |
| 130 | +- v0.4 TUI (user, 2026-11-26, #51): `rzb tui` is a second `rzb` process on the same machine (no | |
| 131 | + remote server, no second server in the TUI). Chat via the OpenAI API; models on disk and the config | |
| 132 | + file handled directly; local-only (loopback) `/rzb/*` routes for status, unload, config reload — | |
| 133 | + this amends the #31 "OpenAI-compatible API only" rule (still no Ollama `/api/*`). Unload in v0.4; | |
| 134 | + settings = TUI preferences + server config. Tickets #53–#59, #26/#28 moved to v0.4. | |
| 130 | 135 | - Work stays local: no push to `origin` until the user says so. `main` is fast-forwarded to the |
| 131 | 136 | feature branch at the end of each step. |
| 132 | 137 | |
| @@ -127,6 +127,11 @@ parser commands, `CLIEnvironment` task-local for tests), executable `rzb`. Engin | |||
| 127 | or not (cached GGUF-only repos refused; uncached ones checked at download, #34). Nothing is locked | 127 | or not (cached GGUF-only repos refused; uncached ones checked at download, #34). Nothing is locked |
| 128 | unless listed in a `locked:` block; temperature/top_p/thinking imposed, max_tokens and | 128 | unless listed in a `locked:` block; temperature/top_p/thinking imposed, max_tokens and |
| 129 | thinking_budget are ceilings. Order: built-in → defaults (server, model) → client → locked. | 129 | thinking_budget are ceilings. Order: built-in → defaults (server, model) → client → locked. |
| 130 | +- v0.4 TUI (user, 2026-11-26, #51): `rzb tui` is a second `rzb` process on the same machine (no | ||
| 131 | + remote server, no second server in the TUI). Chat via the OpenAI API; models on disk and the config | ||
| 132 | + file handled directly; local-only (loopback) `/rzb/*` routes for status, unload, config reload — | ||
| 133 | + this amends the #31 "OpenAI-compatible API only" rule (still no Ollama `/api/*`). Unload in v0.4; | ||
| 134 | + settings = TUI preferences + server config. Tickets #53–#59, #26/#28 moved to v0.4. | ||
| 130 | - Work stays local: no push to `origin` until the user says so. `main` is fast-forwarded to the | 135 | - Work stays local: no push to `origin` until the user says so. `main` is fast-forwarded to the |
| 131 | feature branch at the end of each step. | 136 | feature branch at the end of each step. |
| 132 | 137 | ||
modified
.tickets/issues/0026-show-memory-pressure.yaml +11 -2 | @@ -6,13 +6,14 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-24T05:44:32.000Z |
| 9 | -updatedAt: 2026-11-24T05:44:32.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - "kind::feature" |
| 12 | 12 | - "area::tui" |
| 13 | 13 | - "priority::medium" |
| 14 | 14 | - "mac-only" |
| 15 | 15 | epic: "TUI mode" |
| 16 | +milestone: "v0.4 — TUI" | |
| 16 | 17 | related: |
| 17 | 18 | - 16 |
| 18 | 19 | - 14 |
| @@ -77,4 +78,12 @@ tasks: | ||
| 77 | 78 | name: k33g |
| 78 | 79 | email: ph.charriere@gmail.com |
| 79 | 80 | createdAt: 2026-11-24T05:44:32.000Z |
| 80 | -comments: [] | |
| 81 | +comments: | |
| 82 | + - id: 1 | |
| 83 | + author: | |
| 84 | + name: k33g | |
| 85 | + email: ph.charriere@gmail.com | |
| 86 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 87 | + body: | | |
| 88 | + Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent. | |
| 89 | + | |
| @@ -6,13 +6,14 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-24T05:44:32.000Z | 8 | createdAt: 2026-11-24T05:44:32.000Z |
| 9 | -updatedAt: 2026-11-24T05:44:32.000Z | 9 | +updatedAt: 2026-11-26T08:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - "kind::feature" | 11 | - "kind::feature" |
| 12 | - "area::tui" | 12 | - "area::tui" |
| 13 | - "priority::medium" | 13 | - "priority::medium" |
| 14 | - "mac-only" | 14 | - "mac-only" |
| 15 | epic: "TUI mode" | 15 | epic: "TUI mode" |
| 16 | +milestone: "v0.4 — TUI" | ||
| 16 | related: | 17 | related: |
| 17 | - 16 | 18 | - 16 |
| 18 | - 14 | 19 | - 14 |
| @@ -77,4 +78,12 @@ tasks: | |||
| 77 | name: k33g | 78 | name: k33g |
| 78 | email: ph.charriere@gmail.com | 79 | email: ph.charriere@gmail.com |
| 79 | createdAt: 2026-11-24T05:44:32.000Z | 80 | createdAt: 2026-11-24T05:44:32.000Z |
| 80 | -comments: [] | 81 | +comments: |
| 82 | + - id: 1 | ||
| 83 | + author: | ||
| 84 | + name: k33g | ||
| 85 | + email: ph.charriere@gmail.com | ||
| 86 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 87 | + body: | | ||
| 88 | + Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent. | ||
| 89 | + | ||
modified
.tickets/issues/0028-show-gpu-load.yaml +11 -2 | @@ -6,13 +6,14 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-24T05:48:30.000Z |
| 9 | -updatedAt: 2026-11-24T05:48:30.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - "kind::feature" |
| 12 | 12 | - "area::tui" |
| 13 | 13 | - "priority::low" |
| 14 | 14 | - "mac-only" |
| 15 | 15 | epic: "TUI mode" |
| 16 | +milestone: "v0.4 — TUI" | |
| 16 | 17 | related: |
| 17 | 18 | - 26 |
| 18 | 19 | body: | |
| @@ -61,4 +62,12 @@ tasks: | ||
| 61 | 62 | name: k33g |
| 62 | 63 | email: ph.charriere@gmail.com |
| 63 | 64 | createdAt: 2026-11-24T05:48:30.000Z |
| 64 | -comments: [] | |
| 65 | +comments: | |
| 66 | + - id: 1 | |
| 67 | + author: | |
| 68 | + name: k33g | |
| 69 | + email: ph.charriere@gmail.com | |
| 70 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 71 | + body: | | |
| 72 | + Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent. | |
| 73 | + | |
| @@ -6,13 +6,14 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-24T05:48:30.000Z | 8 | createdAt: 2026-11-24T05:48:30.000Z |
| 9 | -updatedAt: 2026-11-24T05:48:30.000Z | 9 | +updatedAt: 2026-11-26T08:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - "kind::feature" | 11 | - "kind::feature" |
| 12 | - "area::tui" | 12 | - "area::tui" |
| 13 | - "priority::low" | 13 | - "priority::low" |
| 14 | - "mac-only" | 14 | - "mac-only" |
| 15 | epic: "TUI mode" | 15 | epic: "TUI mode" |
| 16 | +milestone: "v0.4 — TUI" | ||
| 16 | related: | 17 | related: |
| 17 | - 26 | 18 | - 26 |
| 18 | body: | | 19 | body: | |
| @@ -61,4 +62,12 @@ tasks: | |||
| 61 | name: k33g | 62 | name: k33g |
| 62 | email: ph.charriere@gmail.com | 63 | email: ph.charriere@gmail.com |
| 63 | createdAt: 2026-11-24T05:48:30.000Z | 64 | createdAt: 2026-11-24T05:48:30.000Z |
| 64 | -comments: [] | 65 | +comments: |
| 66 | + - id: 1 | ||
| 67 | + author: | ||
| 68 | + name: k33g | ||
| 69 | + email: ph.charriere@gmail.com | ||
| 70 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 71 | + body: | | ||
| 72 | + Moved into milestone v0.4 — TUI (2026-11-26): shown in the dashboard screen (#56); the server measures its own MLX memory and exposes it in `GET /rzb/status` (#53). The CLI parts of the body (run / chat stats) belong to the removed agent. | ||
| 73 | + | ||
modified
.tickets/issues/0051-spike-what-the-tui-is-for-in-the-server.yaml +19 -4 | @@ -1,12 +1,12 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 51 |
| 3 | 3 | title: "Spike: what the v0.4 TUI is for, now that razorbill is a server" |
| 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-26T06:00:00.000Z |
| 9 | -updatedAt: 2026-11-26T07:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - "spike" |
| 12 | 12 | - "needs-decision" |
| @@ -54,12 +54,14 @@ tasks: | ||
| 54 | 54 | closedAt: 2026-11-26T07:00:00.000Z |
| 55 | 55 | - id: 3 |
| 56 | 56 | title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets" |
| 57 | - state: open | |
| 57 | + state: closed | |
| 58 | 58 | priority: medium |
| 59 | 59 | author: |
| 60 | 60 | name: k33g |
| 61 | 61 | email: ph.charriere@gmail.com |
| 62 | 62 | createdAt: 2026-11-26T06:00:00.000Z |
| 63 | + updatedAt: 2026-11-26T08:00:00.000Z | |
| 64 | + closedAt: 2026-11-26T08:00:00.000Z | |
| 63 | 65 | comments: |
| 64 | 66 | - id: 1 |
| 65 | 67 | author: |
| @@ -76,4 +78,17 @@ comments: | ||
| 76 | 78 | ## Decisions to take before writing the tickets |
| 77 | 79 | 1. Where the TUI gets its data: client of a running `rzb serve` over HTTP (needs a razorbill admin API, which revisits the "OpenAI-compatible API only" decision of #31), or the server running inside the TUI process. |
| 78 | 80 | 2. What "settings" means: TUI preferences, the server configuration file, or both. |
| 79 | - | |
| 81 | + - id: 2 | |
| 82 | + author: | |
| 83 | + name: k33g | |
| 84 | + email: ph.charriere@gmail.com | |
| 85 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 86 | + body: | | |
| 87 | + Decided with the user (2026-11-26): | |
| 88 | + | |
| 89 | + - The TUI is a **second `rzb` process on the same machine** (`rzb tui`); no connection to a remote server. A second *server* inside the TUI is rejected: it would load its own models next to the first one. | |
| 90 | + - Chat through the OpenAI API; models on disk and the configuration file handled directly; what only the server knows goes through new local-only routes (status, unload, configuration reload), which revisits the #31 "OpenAI-compatible API only" decision (agreed). | |
| 91 | + - Unloading a model from the TUI: in v0.4. | |
| 92 | + - Settings: both the TUI preferences and the server configuration. | |
| 93 | + | |
| 94 | + v0.4 tickets: #53 admin routes, #54 foundation, #55 chat, #56 dashboard, #57 models, #58 settings, #59 docs; #26 and #28 moved into v0.4 (dashboard panel). | |
| @@ -1,12 +1,12 @@ | |||
| 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: 51 | 2 | id: 51 |
| 3 | title: "Spike: what the v0.4 TUI is for, now that razorbill is a server" | 3 | title: "Spike: what the v0.4 TUI is for, now that razorbill is a server" |
| 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-26T06:00:00.000Z | 8 | createdAt: 2026-11-26T06:00:00.000Z |
| 9 | -updatedAt: 2026-11-26T07:00:00.000Z | 9 | +updatedAt: 2026-11-26T08:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - "spike" | 11 | - "spike" |
| 12 | - "needs-decision" | 12 | - "needs-decision" |
| @@ -54,12 +54,14 @@ tasks: | |||
| 54 | closedAt: 2026-11-26T07:00:00.000Z | 54 | closedAt: 2026-11-26T07:00:00.000Z |
| 55 | - id: 3 | 55 | - id: 3 |
| 56 | title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets" | 56 | title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets" |
| 57 | - state: open | 57 | + state: closed |
| 58 | priority: medium | 58 | priority: medium |
| 59 | author: | 59 | author: |
| 60 | name: k33g | 60 | name: k33g |
| 61 | email: ph.charriere@gmail.com | 61 | email: ph.charriere@gmail.com |
| 62 | createdAt: 2026-11-26T06:00:00.000Z | 62 | createdAt: 2026-11-26T06:00:00.000Z |
| 63 | + updatedAt: 2026-11-26T08:00:00.000Z | ||
| 64 | + closedAt: 2026-11-26T08:00:00.000Z | ||
| 63 | comments: | 65 | comments: |
| 64 | - id: 1 | 66 | - id: 1 |
| 65 | author: | 67 | author: |
| @@ -76,4 +78,17 @@ comments: | |||
| 76 | ## Decisions to take before writing the tickets | 78 | ## Decisions to take before writing the tickets |
| 77 | 1. Where the TUI gets its data: client of a running `rzb serve` over HTTP (needs a razorbill admin API, which revisits the "OpenAI-compatible API only" decision of #31), or the server running inside the TUI process. | 79 | 1. Where the TUI gets its data: client of a running `rzb serve` over HTTP (needs a razorbill admin API, which revisits the "OpenAI-compatible API only" decision of #31), or the server running inside the TUI process. |
| 78 | 2. What "settings" means: TUI preferences, the server configuration file, or both. | 80 | 2. What "settings" means: TUI preferences, the server configuration file, or both. |
| 79 | - | 81 | + - id: 2 |
| 82 | + author: | ||
| 83 | + name: k33g | ||
| 84 | + email: ph.charriere@gmail.com | ||
| 85 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 86 | + body: | | ||
| 87 | + Decided with the user (2026-11-26): | ||
| 88 | + | ||
| 89 | + - The TUI is a **second `rzb` process on the same machine** (`rzb tui`); no connection to a remote server. A second *server* inside the TUI is rejected: it would load its own models next to the first one. | ||
| 90 | + - Chat through the OpenAI API; models on disk and the configuration file handled directly; what only the server knows goes through new local-only routes (status, unload, configuration reload), which revisits the #31 "OpenAI-compatible API only" decision (agreed). | ||
| 91 | + - Unloading a model from the TUI: in v0.4. | ||
| 92 | + - Settings: both the TUI preferences and the server configuration. | ||
| 93 | + | ||
| 94 | + v0.4 tickets: #53 admin routes, #54 foundation, #55 chat, #56 dashboard, #57 models, #58 settings, #59 docs; #26 and #28 moved into v0.4 (dashboard panel). | ||
added
.tickets/issues/0053-local-admin-routes-status-unload-config-reload.yaml +65 -0 | new file mode 100644 | ||
| @@ -0,0 +1,65 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 53 | |
| 3 | +title: "Local admin routes on rzb serve: status, unload, config reload" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::server" | |
| 13 | + - "priority::high" | |
| 14 | +milestone: "v0.4 — TUI" | |
| 15 | +epic: "TUI mode" | |
| 16 | +related: | |
| 17 | + - 51 | |
| 18 | + - 34 | |
| 19 | + - 33 | |
| 20 | + - 26 | |
| 21 | +body: | | |
| 22 | + Decided with the user (2026-11-26, #51): the TUI is a second `rzb` process on the same machine. Chat goes through the OpenAI API; models on disk and the configuration file are handled directly (like `rzb models` and `rzb config validate`). What only the server process knows needs a few routes of our own. This revisits the #31 decision "OpenAI-compatible API only": agreed by the user, and it is not Ollama's `/api/*`. | |
| 23 | + | |
| 24 | + ## Routes | |
| 25 | + - `GET /rzb/status`: loaded models (id, kind, memory, last use, keep_alive left, queue length, requests in flight), recent requests (method, path, status, model, tokens, cached, duration), MLX memory of the process (active / cache / peak / limit, #26), uptime, version. Maybe also `GET /rzb/events` (SSE) so the dashboard refreshes without polling; decide in this ticket. | |
| 26 | + - `POST /rzb/models/{id}/unload`: frees the model now (waits for or refuses while requests are running: decide). The next request loads it again. | |
| 27 | + - `POST /rzb/config/reload` and `SIGHUP`: re-read the configuration file; refuse (keep the old one) when invalid. Decide what changes live (models, aliases, defaults, locked, limits, keep_alive) and what needs a restart (host, port, API key variable, CORS). | |
| 28 | + | |
| 29 | + ## Access | |
| 30 | + - Answer only connections from the machine itself (loopback peer), even when the server listens on `0.0.0.0`; 403 otherwise. | |
| 31 | + - The API key is required too when one is set. | |
| 32 | +tasks: | |
| 33 | + - id: 1 | |
| 34 | + title: "Status route (and decide polling or SSE)" | |
| 35 | + state: open | |
| 36 | + priority: high | |
| 37 | + author: | |
| 38 | + name: k33g | |
| 39 | + email: ph.charriere@gmail.com | |
| 40 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 41 | + - id: 2 | |
| 42 | + title: "Unload route" | |
| 43 | + state: open | |
| 44 | + priority: medium | |
| 45 | + author: | |
| 46 | + name: k33g | |
| 47 | + email: ph.charriere@gmail.com | |
| 48 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 49 | + - id: 3 | |
| 50 | + title: "Configuration reload (route and SIGHUP), live vs restart keys" | |
| 51 | + state: open | |
| 52 | + priority: high | |
| 53 | + author: | |
| 54 | + name: k33g | |
| 55 | + email: ph.charriere@gmail.com | |
| 56 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 57 | + - id: 4 | |
| 58 | + title: "Loopback-only access, tests, HTTP API reference EN + FR" | |
| 59 | + state: open | |
| 60 | + priority: high | |
| 61 | + author: | |
| 62 | + name: k33g | |
| 63 | + email: ph.charriere@gmail.com | |
| 64 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 65 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 53 | ||
| 3 | +title: "Local admin routes on rzb serve: status, unload, config reload" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::server" | ||
| 13 | + - "priority::high" | ||
| 14 | +milestone: "v0.4 — TUI" | ||
| 15 | +epic: "TUI mode" | ||
| 16 | +related: | ||
| 17 | + - 51 | ||
| 18 | + - 34 | ||
| 19 | + - 33 | ||
| 20 | + - 26 | ||
| 21 | +body: | | ||
| 22 | + Decided with the user (2026-11-26, #51): the TUI is a second `rzb` process on the same machine. Chat goes through the OpenAI API; models on disk and the configuration file are handled directly (like `rzb models` and `rzb config validate`). What only the server process knows needs a few routes of our own. This revisits the #31 decision "OpenAI-compatible API only": agreed by the user, and it is not Ollama's `/api/*`. | ||
| 23 | + | ||
| 24 | + ## Routes | ||
| 25 | + - `GET /rzb/status`: loaded models (id, kind, memory, last use, keep_alive left, queue length, requests in flight), recent requests (method, path, status, model, tokens, cached, duration), MLX memory of the process (active / cache / peak / limit, #26), uptime, version. Maybe also `GET /rzb/events` (SSE) so the dashboard refreshes without polling; decide in this ticket. | ||
| 26 | + - `POST /rzb/models/{id}/unload`: frees the model now (waits for or refuses while requests are running: decide). The next request loads it again. | ||
| 27 | + - `POST /rzb/config/reload` and `SIGHUP`: re-read the configuration file; refuse (keep the old one) when invalid. Decide what changes live (models, aliases, defaults, locked, limits, keep_alive) and what needs a restart (host, port, API key variable, CORS). | ||
| 28 | + | ||
| 29 | + ## Access | ||
| 30 | + - Answer only connections from the machine itself (loopback peer), even when the server listens on `0.0.0.0`; 403 otherwise. | ||
| 31 | + - The API key is required too when one is set. | ||
| 32 | +tasks: | ||
| 33 | + - id: 1 | ||
| 34 | + title: "Status route (and decide polling or SSE)" | ||
| 35 | + state: open | ||
| 36 | + priority: high | ||
| 37 | + author: | ||
| 38 | + name: k33g | ||
| 39 | + email: ph.charriere@gmail.com | ||
| 40 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 41 | + - id: 2 | ||
| 42 | + title: "Unload route" | ||
| 43 | + state: open | ||
| 44 | + priority: medium | ||
| 45 | + author: | ||
| 46 | + name: k33g | ||
| 47 | + email: ph.charriere@gmail.com | ||
| 48 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 49 | + - id: 3 | ||
| 50 | + title: "Configuration reload (route and SIGHUP), live vs restart keys" | ||
| 51 | + state: open | ||
| 52 | + priority: high | ||
| 53 | + author: | ||
| 54 | + name: k33g | ||
| 55 | + email: ph.charriere@gmail.com | ||
| 56 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 57 | + - id: 4 | ||
| 58 | + title: "Loopback-only access, tests, HTTP API reference EN + FR" | ||
| 59 | + state: open | ||
| 60 | + priority: high | ||
| 61 | + author: | ||
| 62 | + name: k33g | ||
| 63 | + email: ph.charriere@gmail.com | ||
| 64 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 65 | +comments: [] | ||
added
.tickets/issues/0054-tui-foundation-rzb-tui-screens-server-client.yaml +60 -0 | new file mode 100644 | ||
| @@ -0,0 +1,60 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 54 | |
| 3 | +title: "TUI foundation: rzb tui, screens, connection to the local server" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::tui" | |
| 13 | + - "area::cli" | |
| 14 | + - "priority::high" | |
| 15 | +milestone: "v0.4 — TUI" | |
| 16 | +epic: "TUI mode" | |
| 17 | +related: | |
| 18 | + - 51 | |
| 19 | + - 53 | |
| 20 | + - 16 | |
| 21 | +body: | | |
| 22 | + `rzb tui [--url http://127.0.0.1:8080] [--config server.yaml] [--api-key-env RZB_API_KEY]`: a full-screen app with four screens (Chat, Dashboard, Models, Settings), switched by keys (e.g. F1–F4 or Tab), and a status bar (server reachable or not, model, memory). | |
| 23 | + | |
| 24 | + - Bring back from tag `v0.1-agent` (`Sources/RazorbillTUI`): `Terminal` / `PosixTerminal`, `Key`, `TextLayout`, and the pattern pure state + `handle(key) -> Action` + pure renderer, tested on Linux with a fake terminal. | |
| 25 | + - New: screen routing, list and form widgets, a small HTTP client for the server (OpenAI SSE + `/rzb/*`), a clear "server not running" state with the command to start it. | |
| 26 | + - The module stays free of MLX (the TUI never loads a model itself). | |
| 27 | +tasks: | |
| 28 | + - id: 1 | |
| 29 | + title: "Restore the terminal layer from v0.1-agent" | |
| 30 | + state: open | |
| 31 | + priority: high | |
| 32 | + author: | |
| 33 | + name: k33g | |
| 34 | + email: ph.charriere@gmail.com | |
| 35 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 36 | + - id: 2 | |
| 37 | + title: "Screen routing, status bar, list and form widgets" | |
| 38 | + state: open | |
| 39 | + priority: high | |
| 40 | + author: | |
| 41 | + name: k33g | |
| 42 | + email: ph.charriere@gmail.com | |
| 43 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 44 | + - id: 3 | |
| 45 | + title: "HTTP client (SSE, admin routes, API key) and the not-running state" | |
| 46 | + state: open | |
| 47 | + priority: high | |
| 48 | + author: | |
| 49 | + name: k33g | |
| 50 | + email: ph.charriere@gmail.com | |
| 51 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 52 | + - id: 4 | |
| 53 | + title: "rzb tui command, CLI reference EN + FR" | |
| 54 | + state: open | |
| 55 | + priority: medium | |
| 56 | + author: | |
| 57 | + name: k33g | |
| 58 | + email: ph.charriere@gmail.com | |
| 59 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 60 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 54 | ||
| 3 | +title: "TUI foundation: rzb tui, screens, connection to the local server" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::tui" | ||
| 13 | + - "area::cli" | ||
| 14 | + - "priority::high" | ||
| 15 | +milestone: "v0.4 — TUI" | ||
| 16 | +epic: "TUI mode" | ||
| 17 | +related: | ||
| 18 | + - 51 | ||
| 19 | + - 53 | ||
| 20 | + - 16 | ||
| 21 | +body: | | ||
| 22 | + `rzb tui [--url http://127.0.0.1:8080] [--config server.yaml] [--api-key-env RZB_API_KEY]`: a full-screen app with four screens (Chat, Dashboard, Models, Settings), switched by keys (e.g. F1–F4 or Tab), and a status bar (server reachable or not, model, memory). | ||
| 23 | + | ||
| 24 | + - Bring back from tag `v0.1-agent` (`Sources/RazorbillTUI`): `Terminal` / `PosixTerminal`, `Key`, `TextLayout`, and the pattern pure state + `handle(key) -> Action` + pure renderer, tested on Linux with a fake terminal. | ||
| 25 | + - New: screen routing, list and form widgets, a small HTTP client for the server (OpenAI SSE + `/rzb/*`), a clear "server not running" state with the command to start it. | ||
| 26 | + - The module stays free of MLX (the TUI never loads a model itself). | ||
| 27 | +tasks: | ||
| 28 | + - id: 1 | ||
| 29 | + title: "Restore the terminal layer from v0.1-agent" | ||
| 30 | + state: open | ||
| 31 | + priority: high | ||
| 32 | + author: | ||
| 33 | + name: k33g | ||
| 34 | + email: ph.charriere@gmail.com | ||
| 35 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 36 | + - id: 2 | ||
| 37 | + title: "Screen routing, status bar, list and form widgets" | ||
| 38 | + state: open | ||
| 39 | + priority: high | ||
| 40 | + author: | ||
| 41 | + name: k33g | ||
| 42 | + email: ph.charriere@gmail.com | ||
| 43 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 44 | + - id: 3 | ||
| 45 | + title: "HTTP client (SSE, admin routes, API key) and the not-running state" | ||
| 46 | + state: open | ||
| 47 | + priority: high | ||
| 48 | + author: | ||
| 49 | + name: k33g | ||
| 50 | + email: ph.charriere@gmail.com | ||
| 51 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 52 | + - id: 4 | ||
| 53 | + title: "rzb tui command, CLI reference EN + FR" | ||
| 54 | + state: open | ||
| 55 | + priority: medium | ||
| 56 | + author: | ||
| 57 | + name: k33g | ||
| 58 | + email: ph.charriere@gmail.com | ||
| 59 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 60 | +comments: [] | ||
added
.tickets/issues/0055-tui-chat-screen.yaml +53 -0 | new file mode 100644 | ||
| @@ -0,0 +1,53 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 55 | |
| 3 | +title: "TUI chat screen" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::tui" | |
| 13 | + - "priority::high" | |
| 14 | +milestone: "v0.4 — TUI" | |
| 15 | +epic: "TUI mode" | |
| 16 | +related: | |
| 17 | + - 54 | |
| 18 | + - 37 | |
| 19 | + - 48 | |
| 20 | + - 49 | |
| 21 | +body: | | |
| 22 | + Chat with a model of the running server through `/v1/chat/completions` (streaming). | |
| 23 | + | |
| 24 | + - Model picker from `/v1/models`; a new conversation key; the conversation is kept client side and resent whole (the server's prompt cache, #48, makes this cheap). | |
| 25 | + - Reasoning shown, folded or hidden (Settings); Esc cancels the answer being generated. | |
| 26 | + - Stats after each answer: tokens, tokens/s, cached prompt tokens. | |
| 27 | + - Sampling for the chat (temperature, top_p, top_k, min_p, max_tokens, thinking) from the TUI preferences (#58), changeable during the session. | |
| 28 | +tasks: | |
| 29 | + - id: 1 | |
| 30 | + title: "Streaming chat with cancel, model picker, new conversation" | |
| 31 | + state: open | |
| 32 | + priority: high | |
| 33 | + author: | |
| 34 | + name: k33g | |
| 35 | + email: ph.charriere@gmail.com | |
| 36 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 37 | + - id: 2 | |
| 38 | + title: "Reasoning display and stats line" | |
| 39 | + state: open | |
| 40 | + priority: medium | |
| 41 | + author: | |
| 42 | + name: k33g | |
| 43 | + email: ph.charriere@gmail.com | |
| 44 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 45 | + - id: 3 | |
| 46 | + title: "Per-session sampling settings" | |
| 47 | + state: open | |
| 48 | + priority: medium | |
| 49 | + author: | |
| 50 | + name: k33g | |
| 51 | + email: ph.charriere@gmail.com | |
| 52 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 53 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 55 | ||
| 3 | +title: "TUI chat screen" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::tui" | ||
| 13 | + - "priority::high" | ||
| 14 | +milestone: "v0.4 — TUI" | ||
| 15 | +epic: "TUI mode" | ||
| 16 | +related: | ||
| 17 | + - 54 | ||
| 18 | + - 37 | ||
| 19 | + - 48 | ||
| 20 | + - 49 | ||
| 21 | +body: | | ||
| 22 | + Chat with a model of the running server through `/v1/chat/completions` (streaming). | ||
| 23 | + | ||
| 24 | + - Model picker from `/v1/models`; a new conversation key; the conversation is kept client side and resent whole (the server's prompt cache, #48, makes this cheap). | ||
| 25 | + - Reasoning shown, folded or hidden (Settings); Esc cancels the answer being generated. | ||
| 26 | + - Stats after each answer: tokens, tokens/s, cached prompt tokens. | ||
| 27 | + - Sampling for the chat (temperature, top_p, top_k, min_p, max_tokens, thinking) from the TUI preferences (#58), changeable during the session. | ||
| 28 | +tasks: | ||
| 29 | + - id: 1 | ||
| 30 | + title: "Streaming chat with cancel, model picker, new conversation" | ||
| 31 | + state: open | ||
| 32 | + priority: high | ||
| 33 | + author: | ||
| 34 | + name: k33g | ||
| 35 | + email: ph.charriere@gmail.com | ||
| 36 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 37 | + - id: 2 | ||
| 38 | + title: "Reasoning display and stats line" | ||
| 39 | + state: open | ||
| 40 | + priority: medium | ||
| 41 | + author: | ||
| 42 | + name: k33g | ||
| 43 | + email: ph.charriere@gmail.com | ||
| 44 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 45 | + - id: 3 | ||
| 46 | + title: "Per-session sampling settings" | ||
| 47 | + state: open | ||
| 48 | + priority: medium | ||
| 49 | + author: | ||
| 50 | + name: k33g | ||
| 51 | + email: ph.charriere@gmail.com | ||
| 52 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 53 | +comments: [] | ||
added
.tickets/issues/0056-tui-dashboard-screen.yaml +52 -0 | new file mode 100644 | ||
| @@ -0,0 +1,52 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 56 | |
| 3 | +title: "TUI dashboard screen: loaded models, requests, memory, unload" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::tui" | |
| 13 | + - "priority::high" | |
| 14 | +milestone: "v0.4 — TUI" | |
| 15 | +epic: "TUI mode" | |
| 16 | +related: | |
| 17 | + - 54 | |
| 18 | + - 53 | |
| 19 | + - 26 | |
| 20 | + - 28 | |
| 21 | +body: | | |
| 22 | + What the server is doing, from `GET /rzb/status` (#53), refreshed about once per second. | |
| 23 | + | |
| 24 | + - Loaded models: size in memory, last use, keep_alive left, queue, requests in flight; a key to unload the selected model (confirmation while requests are running). | |
| 25 | + - Recent requests: path, model, status, tokens, cached tokens, tokens/s, duration. | |
| 26 | + - Machine: memory pressure and use (#26), GPU load when available (#28). | |
| 27 | +tasks: | |
| 28 | + - id: 1 | |
| 29 | + title: "Loaded models and unload key" | |
| 30 | + state: open | |
| 31 | + priority: high | |
| 32 | + author: | |
| 33 | + name: k33g | |
| 34 | + email: ph.charriere@gmail.com | |
| 35 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 36 | + - id: 2 | |
| 37 | + title: "Recent requests" | |
| 38 | + state: open | |
| 39 | + priority: medium | |
| 40 | + author: | |
| 41 | + name: k33g | |
| 42 | + email: ph.charriere@gmail.com | |
| 43 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 44 | + - id: 3 | |
| 45 | + title: "Memory and GPU panel (#26, #28)" | |
| 46 | + state: open | |
| 47 | + priority: medium | |
| 48 | + author: | |
| 49 | + name: k33g | |
| 50 | + email: ph.charriere@gmail.com | |
| 51 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 52 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 56 | ||
| 3 | +title: "TUI dashboard screen: loaded models, requests, memory, unload" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::tui" | ||
| 13 | + - "priority::high" | ||
| 14 | +milestone: "v0.4 — TUI" | ||
| 15 | +epic: "TUI mode" | ||
| 16 | +related: | ||
| 17 | + - 54 | ||
| 18 | + - 53 | ||
| 19 | + - 26 | ||
| 20 | + - 28 | ||
| 21 | +body: | | ||
| 22 | + What the server is doing, from `GET /rzb/status` (#53), refreshed about once per second. | ||
| 23 | + | ||
| 24 | + - Loaded models: size in memory, last use, keep_alive left, queue, requests in flight; a key to unload the selected model (confirmation while requests are running). | ||
| 25 | + - Recent requests: path, model, status, tokens, cached tokens, tokens/s, duration. | ||
| 26 | + - Machine: memory pressure and use (#26), GPU load when available (#28). | ||
| 27 | +tasks: | ||
| 28 | + - id: 1 | ||
| 29 | + title: "Loaded models and unload key" | ||
| 30 | + state: open | ||
| 31 | + priority: high | ||
| 32 | + author: | ||
| 33 | + name: k33g | ||
| 34 | + email: ph.charriere@gmail.com | ||
| 35 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 36 | + - id: 2 | ||
| 37 | + title: "Recent requests" | ||
| 38 | + state: open | ||
| 39 | + priority: medium | ||
| 40 | + author: | ||
| 41 | + name: k33g | ||
| 42 | + email: ph.charriere@gmail.com | ||
| 43 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 44 | + - id: 3 | ||
| 45 | + title: "Memory and GPU panel (#26, #28)" | ||
| 46 | + state: open | ||
| 47 | + priority: medium | ||
| 48 | + author: | ||
| 49 | + name: k33g | ||
| 50 | + email: ph.charriere@gmail.com | ||
| 51 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 52 | +comments: [] | ||
added
.tickets/issues/0057-tui-models-screen.yaml +51 -0 | new file mode 100644 | ||
| @@ -0,0 +1,51 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 57 | |
| 3 | +title: "TUI models screen: list, download, remove" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::tui" | |
| 13 | + - "area::models" | |
| 14 | + - "priority::medium" | |
| 15 | +milestone: "v0.4 — TUI" | |
| 16 | +epic: "TUI mode" | |
| 17 | +related: | |
| 18 | + - 54 | |
| 19 | + - 53 | |
| 20 | +body: | | |
| 21 | + The models of the Hugging Face cache, handled directly on disk like `rzb models list|pull|rm` (same `ModelStore`, same rules: MLX format only). | |
| 22 | + | |
| 23 | + - List: id, kind (chat / embedding), size on disk, loaded or not in the server (from `/rzb/status`), declared in the configuration or not. | |
| 24 | + - Download a Hugging Face id with a progress bar; remove with confirmation (refused, or unloaded first, while the server has it loaded: decide). | |
| 25 | + - Hint: the model's size against the free memory. | |
| 26 | +tasks: | |
| 27 | + - id: 1 | |
| 28 | + title: "List with loaded / declared marks" | |
| 29 | + state: open | |
| 30 | + priority: high | |
| 31 | + author: | |
| 32 | + name: k33g | |
| 33 | + email: ph.charriere@gmail.com | |
| 34 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 35 | + - id: 2 | |
| 36 | + title: "Download with progress" | |
| 37 | + state: open | |
| 38 | + priority: medium | |
| 39 | + author: | |
| 40 | + name: k33g | |
| 41 | + email: ph.charriere@gmail.com | |
| 42 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 43 | + - id: 3 | |
| 44 | + title: "Remove with confirmation" | |
| 45 | + state: open | |
| 46 | + priority: medium | |
| 47 | + author: | |
| 48 | + name: k33g | |
| 49 | + email: ph.charriere@gmail.com | |
| 50 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 51 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 57 | ||
| 3 | +title: "TUI models screen: list, download, remove" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::tui" | ||
| 13 | + - "area::models" | ||
| 14 | + - "priority::medium" | ||
| 15 | +milestone: "v0.4 — TUI" | ||
| 16 | +epic: "TUI mode" | ||
| 17 | +related: | ||
| 18 | + - 54 | ||
| 19 | + - 53 | ||
| 20 | +body: | | ||
| 21 | + The models of the Hugging Face cache, handled directly on disk like `rzb models list|pull|rm` (same `ModelStore`, same rules: MLX format only). | ||
| 22 | + | ||
| 23 | + - List: id, kind (chat / embedding), size on disk, loaded or not in the server (from `/rzb/status`), declared in the configuration or not. | ||
| 24 | + - Download a Hugging Face id with a progress bar; remove with confirmation (refused, or unloaded first, while the server has it loaded: decide). | ||
| 25 | + - Hint: the model's size against the free memory. | ||
| 26 | +tasks: | ||
| 27 | + - id: 1 | ||
| 28 | + title: "List with loaded / declared marks" | ||
| 29 | + state: open | ||
| 30 | + priority: high | ||
| 31 | + author: | ||
| 32 | + name: k33g | ||
| 33 | + email: ph.charriere@gmail.com | ||
| 34 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 35 | + - id: 2 | ||
| 36 | + title: "Download with progress" | ||
| 37 | + state: open | ||
| 38 | + priority: medium | ||
| 39 | + author: | ||
| 40 | + name: k33g | ||
| 41 | + email: ph.charriere@gmail.com | ||
| 42 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 43 | + - id: 3 | ||
| 44 | + title: "Remove with confirmation" | ||
| 45 | + state: open | ||
| 46 | + priority: medium | ||
| 47 | + author: | ||
| 48 | + name: k33g | ||
| 49 | + email: ph.charriere@gmail.com | ||
| 50 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 51 | +comments: [] | ||
added
.tickets/issues/0058-tui-settings-screen-preferences-and-server-config.yaml +56 -0 | new file mode 100644 | ||
| @@ -0,0 +1,56 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 58 | |
| 3 | +title: "TUI settings screen: TUI preferences and server configuration" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "kind::feature" | |
| 12 | + - "area::tui" | |
| 13 | + - "area::config" | |
| 14 | + - "priority::medium" | |
| 15 | +milestone: "v0.4 — TUI" | |
| 16 | +epic: "TUI mode" | |
| 17 | +related: | |
| 18 | + - 54 | |
| 19 | + - 53 | |
| 20 | + - 33 | |
| 21 | +body: | | |
| 22 | + Both kinds of settings (user, 2026-11-26). | |
| 23 | + | |
| 24 | + ## TUI preferences | |
| 25 | + Server URL, API key variable, reasoning display, chat sampling defaults, colours; stored in `~/.config/razorbill/tui.yaml`, unknown keys refused like the server file. | |
| 26 | + | |
| 27 | + ## Server configuration | |
| 28 | + Edit the file the server was started with (`--config`, or the path given by `/rzb/status`): models and aliases, `defaults`, `locked`, limits, keep_alive. Validate with `ServerConfigLoader` (errors with line numbers), then reload the server (#53) and show what needs a restart. | |
| 29 | + | |
| 30 | + To decide: editing through forms rewrites the YAML and loses its comments (Yams does not keep them); alternatives are opening `$EDITOR` and validating on return, or editing only a few common keys in forms. | |
| 31 | +tasks: | |
| 32 | + - id: 1 | |
| 33 | + title: "TUI preferences file and form" | |
| 34 | + state: open | |
| 35 | + priority: medium | |
| 36 | + author: | |
| 37 | + name: k33g | |
| 38 | + email: ph.charriere@gmail.com | |
| 39 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 40 | + - id: 2 | |
| 41 | + title: "Server configuration editing, validation and reload" | |
| 42 | + state: open | |
| 43 | + priority: medium | |
| 44 | + author: | |
| 45 | + name: k33g | |
| 46 | + email: ph.charriere@gmail.com | |
| 47 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 48 | + - id: 3 | |
| 49 | + title: "Decide forms vs $EDITOR for the server file" | |
| 50 | + state: open | |
| 51 | + priority: high | |
| 52 | + author: | |
| 53 | + name: k33g | |
| 54 | + email: ph.charriere@gmail.com | |
| 55 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 56 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 58 | ||
| 3 | +title: "TUI settings screen: TUI preferences and server configuration" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "kind::feature" | ||
| 12 | + - "area::tui" | ||
| 13 | + - "area::config" | ||
| 14 | + - "priority::medium" | ||
| 15 | +milestone: "v0.4 — TUI" | ||
| 16 | +epic: "TUI mode" | ||
| 17 | +related: | ||
| 18 | + - 54 | ||
| 19 | + - 53 | ||
| 20 | + - 33 | ||
| 21 | +body: | | ||
| 22 | + Both kinds of settings (user, 2026-11-26). | ||
| 23 | + | ||
| 24 | + ## TUI preferences | ||
| 25 | + Server URL, API key variable, reasoning display, chat sampling defaults, colours; stored in `~/.config/razorbill/tui.yaml`, unknown keys refused like the server file. | ||
| 26 | + | ||
| 27 | + ## Server configuration | ||
| 28 | + Edit the file the server was started with (`--config`, or the path given by `/rzb/status`): models and aliases, `defaults`, `locked`, limits, keep_alive. Validate with `ServerConfigLoader` (errors with line numbers), then reload the server (#53) and show what needs a restart. | ||
| 29 | + | ||
| 30 | + To decide: editing through forms rewrites the YAML and loses its comments (Yams does not keep them); alternatives are opening `$EDITOR` and validating on return, or editing only a few common keys in forms. | ||
| 31 | +tasks: | ||
| 32 | + - id: 1 | ||
| 33 | + title: "TUI preferences file and form" | ||
| 34 | + state: open | ||
| 35 | + priority: medium | ||
| 36 | + author: | ||
| 37 | + name: k33g | ||
| 38 | + email: ph.charriere@gmail.com | ||
| 39 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 40 | + - id: 2 | ||
| 41 | + title: "Server configuration editing, validation and reload" | ||
| 42 | + state: open | ||
| 43 | + priority: medium | ||
| 44 | + author: | ||
| 45 | + name: k33g | ||
| 46 | + email: ph.charriere@gmail.com | ||
| 47 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 48 | + - id: 3 | ||
| 49 | + title: "Decide forms vs $EDITOR for the server file" | ||
| 50 | + state: open | ||
| 51 | + priority: high | ||
| 52 | + author: | ||
| 53 | + name: k33g | ||
| 54 | + email: ph.charriere@gmail.com | ||
| 55 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 56 | +comments: [] | ||
added
.tickets/issues/0059-tui-documentation-en-fr.yaml +34 -0 | new file mode 100644 | ||
| @@ -0,0 +1,34 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 59 | |
| 3 | +title: "TUI documentation (EN + FR)" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | |
| 10 | +labels: | |
| 11 | + - "documentation" | |
| 12 | + - "area::docs" | |
| 13 | + - "area::tui" | |
| 14 | + - "priority::medium" | |
| 15 | +milestone: "v0.4 — TUI" | |
| 16 | +epic: "Documentation" | |
| 17 | +related: | |
| 18 | + - 54 | |
| 19 | + - 55 | |
| 20 | + - 56 | |
| 21 | + - 57 | |
| 22 | + - 58 | |
| 23 | +body: | | |
| 24 | + Diátaxis, both languages: a tutorial (start the server, open `rzb tui`, chat, watch the dashboard), how-to guides (manage models, change the server configuration from the TUI), reference (keys and screens, `tui.yaml`, `/rzb/*` routes), explanation (why a second process, what stays local). | |
| 25 | +tasks: | |
| 26 | + - id: 1 | |
| 27 | + title: "Write the TUI docs EN + FR" | |
| 28 | + state: open | |
| 29 | + priority: medium | |
| 30 | + author: | |
| 31 | + name: k33g | |
| 32 | + email: ph.charriere@gmail.com | |
| 33 | + createdAt: 2026-11-26T08:00:00.000Z | |
| 34 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 59 | ||
| 3 | +title: "TUI documentation (EN + FR)" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-26T08:00:00.000Z | ||
| 9 | +updatedAt: 2026-11-26T08:00:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - "documentation" | ||
| 12 | + - "area::docs" | ||
| 13 | + - "area::tui" | ||
| 14 | + - "priority::medium" | ||
| 15 | +milestone: "v0.4 — TUI" | ||
| 16 | +epic: "Documentation" | ||
| 17 | +related: | ||
| 18 | + - 54 | ||
| 19 | + - 55 | ||
| 20 | + - 56 | ||
| 21 | + - 57 | ||
| 22 | + - 58 | ||
| 23 | +body: | | ||
| 24 | + Diátaxis, both languages: a tutorial (start the server, open `rzb tui`, chat, watch the dashboard), how-to guides (manage models, change the server configuration from the TUI), reference (keys and screens, `tui.yaml`, `/rzb/*` routes), explanation (why a second process, what stays local). | ||
| 25 | +tasks: | ||
| 26 | + - id: 1 | ||
| 27 | + title: "Write the TUI docs EN + FR" | ||
| 28 | + state: open | ||
| 29 | + priority: medium | ||
| 30 | + author: | ||
| 31 | + name: k33g | ||
| 32 | + email: ph.charriere@gmail.com | ||
| 33 | + createdAt: 2026-11-26T08:00:00.000Z | ||
| 34 | +comments: [] | ||