#51 spike: v0.4 TUI scope recorded, v0.1 TUI layer inventoried
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ab0f687 parent: 4879667 modified
.memory/handoffs/2026-11-25-v0-2-server-foundation.md +2 -1 | @@ -127,5 +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 — start with spike #51 (ask the user which TUI: chat client / dashboard / both); v1.0.0 | |
| 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 | |
| 131 | 132 | signing #52. #47 leftovers have no milestone. |
| @@ -127,5 +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 — start with spike #51 (ask the user which TUI: chat client / dashboard / both); v1.0.0 | 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 | ||
| 131 | signing #52. #47 leftovers have no milestone. | 132 | signing #52. #47 leftovers have no milestone. |
modified
.memory/history.md +8 -0 | @@ -320,3 +320,11 @@ Distribution. Rejected: zip (tar.gz is what curl+tar users expect; zip comes bac | ||
| 320 | 320 | notarization in #52), copying rzb alone (bundles must sit next to it). Not tagged: waits for the |
| 321 | 321 | Mac build of the archive and a Mac compat run. Tests Linux 172; gate PASS; links 0 broken. Docs: |
| 322 | 322 | how-to package-a-release / preparer-une-release, build guide, README, indexes. |
| 323 | + | |
| 324 | +## 2026-11-26 — v0.4 TUI scope (spike #51, tasks 1–2) | |
| 325 | + | |
| 326 | +User: the TUI should be both a chat client and a server dashboard, plus model management and | |
| 327 | +settings. Recorded on #51 (comment 1) with the inventory of the v0.1 TUI layer (Terminal, Key, | |
| 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 | |
| 330 | +API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers. | |
| @@ -320,3 +320,11 @@ Distribution. Rejected: zip (tar.gz is what curl+tar users expect; zip comes bac | |||
| 320 | notarization in #52), copying rzb alone (bundles must sit next to it). Not tagged: waits for the | 320 | notarization in #52), copying rzb alone (bundles must sit next to it). Not tagged: waits for the |
| 321 | Mac build of the archive and a Mac compat run. Tests Linux 172; gate PASS; links 0 broken. Docs: | 321 | Mac build of the archive and a Mac compat run. Tests Linux 172; gate PASS; links 0 broken. Docs: |
| 322 | how-to package-a-release / preparer-une-release, build guide, README, indexes. | 322 | how-to package-a-release / preparer-une-release, build guide, README, indexes. |
| 323 | + | ||
| 324 | +## 2026-11-26 — v0.4 TUI scope (spike #51, tasks 1–2) | ||
| 325 | + | ||
| 326 | +User: the TUI should be both a chat client and a server dashboard, plus model management and | ||
| 327 | +settings. Recorded on #51 (comment 1) with the inventory of the v0.1 TUI layer (Terminal, Key, | ||
| 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 | ||
| 330 | +API (revisits #31 "OpenAI-compatible API only") vs. server inside the TUI; what "settings" covers. | ||
modified
.tickets/issues/0051-spike-what-the-tui-is-for-in-the-server.yaml +24 -4 | @@ -6,7 +6,7 @@ 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-26T06:00:00.000Z | |
| 9 | +updatedAt: 2026-11-26T07:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - "spike" |
| 12 | 12 | - "needs-decision" |
| @@ -34,20 +34,24 @@ body: | | ||
| 34 | 34 | tasks: |
| 35 | 35 | - id: 1 |
| 36 | 36 | title: "Clarify the scope with the user" |
| 37 | - state: open | |
| 37 | + state: closed | |
| 38 | 38 | priority: high |
| 39 | 39 | author: |
| 40 | 40 | name: k33g |
| 41 | 41 | email: ph.charriere@gmail.com |
| 42 | 42 | createdAt: 2026-11-26T06:00:00.000Z |
| 43 | + updatedAt: 2026-11-26T07:00:00.000Z | |
| 44 | + closedAt: 2026-11-26T07:00:00.000Z | |
| 43 | 45 | - id: 2 |
| 44 | 46 | title: "Inventory the v0.1 TUI layer (tag v0.1-agent) and what can be reused" |
| 45 | - state: open | |
| 47 | + state: closed | |
| 46 | 48 | priority: medium |
| 47 | 49 | author: |
| 48 | 50 | name: k33g |
| 49 | 51 | email: ph.charriere@gmail.com |
| 50 | 52 | createdAt: 2026-11-26T06:00:00.000Z |
| 53 | + updatedAt: 2026-11-26T07:00:00.000Z | |
| 54 | + closedAt: 2026-11-26T07:00:00.000Z | |
| 51 | 55 | - id: 3 |
| 52 | 56 | title: "Propose the screens, the commands and any server endpoint; write the v0.4 tickets" |
| 53 | 57 | state: open |
| @@ -56,4 +60,20 @@ tasks: | ||
| 56 | 60 | name: k33g |
| 57 | 61 | email: ph.charriere@gmail.com |
| 58 | 62 | createdAt: 2026-11-26T06:00:00.000Z |
| 59 | -comments: [] | |
| 63 | +comments: | |
| 64 | + - id: 1 | |
| 65 | + author: | |
| 66 | + name: k33g | |
| 67 | + email: ph.charriere@gmail.com | |
| 68 | + createdAt: 2026-11-26T07:00:00.000Z | |
| 69 | + body: | | |
| 70 | + Scope given by the user (2026-11-26): "les 2, plus gestion des modèles, settings, ...": chat client **and** server dashboard, plus model management and settings. | |
| 71 | + | |
| 72 | + ## Inventory of the v0.1 TUI layer (tag v0.1-agent, Sources/RazorbillTUI, ~780 lines + ~380 lines of tests) | |
| 73 | + - Reusable as is: `Terminal` protocol + `PosixTerminal` (raw mode, alternate screen, size, signal handlers that restore the terminal), `Key` (escape-sequence decoding), `TextLayout` (wrapping), and the pattern "pure state + `handle(key) -> Action` + pure renderer -> `Screen`", which made everything testable on Linux with a fake terminal. | |
| 74 | + - To rewrite: `ChatState` / `TUIApp` are tied to the agent (agent events, bash-tool confirmations). The renderer knows one screen only; v0.4 needs several screens (tabs) and lists / forms. | |
| 75 | + | |
| 76 | + ## 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. | |
| 78 | + 2. What "settings" means: TUI preferences, the server configuration file, or both. | |
| 79 | + | |
| @@ -6,7 +6,7 @@ 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-26T06:00:00.000Z | 9 | +updatedAt: 2026-11-26T07:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - "spike" | 11 | - "spike" |
| 12 | - "needs-decision" | 12 | - "needs-decision" |
| @@ -34,20 +34,24 @@ body: | | |||
| 34 | tasks: | 34 | tasks: |
| 35 | - id: 1 | 35 | - id: 1 |
| 36 | title: "Clarify the scope with the user" | 36 | title: "Clarify the scope with the user" |
| 37 | - state: open | 37 | + state: closed |
| 38 | priority: high | 38 | priority: high |
| 39 | author: | 39 | author: |
| 40 | name: k33g | 40 | name: k33g |
| 41 | email: ph.charriere@gmail.com | 41 | email: ph.charriere@gmail.com |
| 42 | createdAt: 2026-11-26T06:00:00.000Z | 42 | createdAt: 2026-11-26T06:00:00.000Z |
| 43 | + updatedAt: 2026-11-26T07:00:00.000Z | ||
| 44 | + closedAt: 2026-11-26T07:00:00.000Z | ||
| 43 | - id: 2 | 45 | - id: 2 |
| 44 | title: "Inventory the v0.1 TUI layer (tag v0.1-agent) and what can be reused" | 46 | title: "Inventory the v0.1 TUI layer (tag v0.1-agent) and what can be reused" |
| 45 | - state: open | 47 | + state: closed |
| 46 | priority: medium | 48 | priority: medium |
| 47 | author: | 49 | author: |
| 48 | name: k33g | 50 | name: k33g |
| 49 | email: ph.charriere@gmail.com | 51 | email: ph.charriere@gmail.com |
| 50 | createdAt: 2026-11-26T06:00:00.000Z | 52 | createdAt: 2026-11-26T06:00:00.000Z |
| 53 | + updatedAt: 2026-11-26T07:00:00.000Z | ||
| 54 | + closedAt: 2026-11-26T07:00:00.000Z | ||
| 51 | - id: 3 | 55 | - id: 3 |
| 52 | 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" |
| 53 | state: open | 57 | state: open |
| @@ -56,4 +60,20 @@ tasks: | |||
| 56 | name: k33g | 60 | name: k33g |
| 57 | email: ph.charriere@gmail.com | 61 | email: ph.charriere@gmail.com |
| 58 | createdAt: 2026-11-26T06:00:00.000Z | 62 | createdAt: 2026-11-26T06:00:00.000Z |
| 59 | -comments: [] | 63 | +comments: |
| 64 | + - id: 1 | ||
| 65 | + author: | ||
| 66 | + name: k33g | ||
| 67 | + email: ph.charriere@gmail.com | ||
| 68 | + createdAt: 2026-11-26T07:00:00.000Z | ||
| 69 | + body: | | ||
| 70 | + Scope given by the user (2026-11-26): "les 2, plus gestion des modèles, settings, ...": chat client **and** server dashboard, plus model management and settings. | ||
| 71 | + | ||
| 72 | + ## Inventory of the v0.1 TUI layer (tag v0.1-agent, Sources/RazorbillTUI, ~780 lines + ~380 lines of tests) | ||
| 73 | + - Reusable as is: `Terminal` protocol + `PosixTerminal` (raw mode, alternate screen, size, signal handlers that restore the terminal), `Key` (escape-sequence decoding), `TextLayout` (wrapping), and the pattern "pure state + `handle(key) -> Action` + pure renderer -> `Screen`", which made everything testable on Linux with a fake terminal. | ||
| 74 | + - To rewrite: `ChatState` / `TUIApp` are tied to the agent (agent events, bash-tool confirmations). The renderer knows one screen only; v0.4 needs several screens (tabs) and lists / forms. | ||
| 75 | + | ||
| 76 | + ## 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. | ||
| 78 | + 2. What "settings" means: TUI preferences, the server configuration file, or both. | ||
| 79 | + | ||