wails-ui
Throwaway prototype for ADR 0002 — UI stack: one Wails v3 window with resizable panels (paneforge), a streamed Markdown conversation (markdown-it + Shiki + DOMPurify), a YAML editor (CodeMirror 6) and a terminal (xterm.js + a real PTY with creack/pty).

Run it on macOS
Requirements: Go ≥ 1.26, Node ≥ 20, Xcode command line tools, and the Wails CLI:
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
wails3 doctor
Then:
cd spikes/wails-ui
wails3 dev # hot reload
# or
wails3 package && open bin/wails-ui.app # build + .app bundle
What to check
- Drag the separators; quit and relaunch: the layout is restored.
- Simuler (50 chunks/s) and (500 chunks/s): the answer streams, the Go code block is coloured while still open, the HTML in the quote is shown as text, and the counter shows the elapsed time.
- Type in the terminal:
ls,htop,vim(resize the panel whilehtopruns). - Switch macOS between light and dark mode: every panel follows.
Where it was verified
Built and run on Linux arm64 (Ubuntu 26.04, GTK4 + WebKitGTK 6.0, Xvfb) inside the development sandbox on 2026-10-29: layout, streaming at 50 and 500 chunks/s, Shiki colouring, sanitisation and the PTY terminal work. It was then run on macOS by the project owner on 2026-10-29, following How to test milestone Initialize on macOS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|