From bcf392e95a1de04a8e6862661e8c7f933f7dbf21 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 16 Nov 2026 14:45:54 +0100 Subject: [PATCH] docs(mind): record collapsible parameters (#13) --- .agents/mind/architecture.md | 1 + .agents/mind/gotchas.md | 2 ++ .agents/mind/index.md | 6 +++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.agents/mind/architecture.md b/.agents/mind/architecture.md index 03bc277..d7fe90d 100644 --- a/.agents/mind/architecture.md +++ b/.agents/mind/architecture.md @@ -15,5 +15,6 @@ - [2026-11-16] **Chained notebooks (#11):** `::use` is flattened in core (`composeNotebook`): alias-prefixed params/ids/captures with `scope`, so render/run keep one notebook model and one substitution path. Server loads files and injects builtins (`shellbook.*`, server-only); `:::when` gates display and execution; `::host` adds to Hosts via the host-management API. Required params/secrets gate only their own scope, identically in core render and server `prepareRun`. - [2026-11-16] **Template delivery:** `install.sh` offers each shipped notebook template once (`/etc/shellbook/templates-offered`), copied as the service user, never overwriting or restoring deleted files. - [2026-11-16] **Web UI shell (#12):** top bar (tabs, live state, Chat/Terminal), notebook sidebar only on Notebooks, parameter panel beside the notebook via a container query (above it when narrow), dialogs/menus from `ui.tsx`. Page and notebook live in the URL hash (`route.ts`); typed non-secret values are remembered per notebook in localStorage (`paramMemory.ts`, secrets and undeclared names are dropped on read and write). +- [2026-11-16] **Collapsible parameters (#13):** the form and each included group collapse (remembered via `uiPrefs.ts`). Collapsed, only missing required values and values changed from their default are listed as chips; untouched defaults are just counted, so the bar stays one line. ## Archive diff --git a/.agents/mind/gotchas.md b/.agents/mind/gotchas.md index d3c100a..de48651 100644 --- a/.agents/mind/gotchas.md +++ b/.agents/mind/gotchas.md @@ -17,5 +17,7 @@ - [2026-11-16] **CJS named imports in the bundle:** `import { utils } from "ssh2"` passes Vitest but crashes `node dist/main.js`; import CommonJS packages via default export. `test/bundle.test.ts` starts the real bundle. - [2026-11-16] **Capture defaults deadlock if required in the same scope:** a required param whose default waits for a capture of its own notebook blocks the step producing it. Make such params optional (e.g. `ctid: default "{{nextid}}"`). - [2026-11-16] **Bash tool heredocs with apostrophes fail** in this harness ("unexpected EOF"); write scripts to the scratchpad and run them instead. +- [2026-11-16] **Commas in YAML flow-mapping labels:** `{ label: Key (optional, else x) }` splits at the comma into a valueless key; quote such values. The parser now says so at the parameter line. +- [2026-11-16] **Stopping a background dev server task leaves its Node child running** on Windows (ports 8080/5173 stay taken); reuse it or kill the process. ## Archive diff --git a/.agents/mind/index.md b/.agents/mind/index.md index 360e471..b9a2e54 100644 --- a/.agents/mind/index.md +++ b/.agents/mind/index.md @@ -2,7 +2,7 @@ > Always-loaded. Everything else is on-demand. Update TOC when files change. ## Current Focus -- [2026-11-16] M0–M3 (#1–#4), UI-first follow-ups (#7–#10) and chained notebooks (#11: when/use/host, LXC + web-server templates) and the UI/UX overhaul (#12) closed. +- [2026-11-16] M0–M3 (#1–#4), UI-first follow-ups (#7–#10) and chained notebooks (#11: when/use/host, LXC + web-server templates) the UI/UX overhaul (#12) and collapsible parameters (#13) closed. - [2026-11-16] Open: #5/#6 need a real CT 501 deploy (bootstrap.sh one-liner, setup token, real SSH run, tmux terminal). Not yet verified in a real browser or against real OpenSSH. ## Invariants @@ -15,7 +15,7 @@ - Everything doable from the web UI; files are storage, not the only way in. ## Table of Contents -- `architecture.md` — 14 entries — why custom app, stack, AI integration, workspace split, deploy/update, chained notebooks, template delivery, web UI shell +- `architecture.md` — 15 entries — why custom app, stack, AI integration, workspace split, deploy/update, chained notebooks, template delivery, web UI shell, collapsible params - `attempts.md` — 4 entries — marimo + marimo-pair trial and why it was dropped - `open.md` — 2 entries — open design questions (sudo password, chat history) -- `gotchas.md` — 15 entries — integration foot-guns (CRLF, host-key events, tmux/systemd, env names, pct exec PATH, TUN, chat paths, watcher timing, capture-default deadlock, heredocs) +- `gotchas.md` — 17 entries — integration foot-guns (CRLF, host-key events, tmux/systemd, env names, pct exec PATH, TUN, chat paths, watcher timing, capture-default deadlock, heredocs, YAML flow commas, orphaned dev servers)