Commit Graph
4 Commits
Author SHA1 Message Date
vhaudiquet a8f7e74ba0 feat(web): render messages as markdown
ci / checks (push) Successful in 1m58s
ci / test (push) Successful in 1m54s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 18s
ci / docker (push) Successful in 16s
ci / publish-edge-image (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 3s
Messages were plain text, so headings, lists, code, tables, and links
from people and the agent showed as literal markup. Render them with
markdown-it, with raw HTML off and unsafe link schemes blocked.
External links open in a new tab, and @rhema stays highlighted.

Code, tables, quotes, and images get styles that fit the message body.
2026-11-28 22:23:41 +01:00
vhaudiquet 05660a244b revert: keep xterm.js for the terminal
ghostty-web 0.4.0 corrupts cell positions after the pane resizes or remounts. In testing, seq output became a diagonal staircase and reopening at a new width mixed the prompt with old output. The release also has open bugs for Alt-key input and idle repainting. Keep xterm.js until those are fixed.
2026-11-28 10:37:57 +01:00
vhaudiquet 3f61dd4db8 feat: render the terminal with ghostty-web
ghostty-web runs Ghostty's VT parser as WebAssembly behind an xterm-compatible API. The component keeps its lifecycle; the imports and the WASM bootstrap change. The emulator imports on demand, so the 624 KB chunk loads only when the terminal pane opens.

The CSP needs wasm-unsafe-eval for WebAssembly compilation and data: in connect-src for the inlined module the library fetches. The terminal renders to a canvas, so the xterm stylesheet and FitAddon package are gone.
2026-11-28 10:36:17 +01:00
vhaudiquet 0035f4e031 feat: add the multiplayer room server and client
A room is one conversation, one ssh sandbox, and one agent. Accounts
create rooms; friends join through a single-use invite link and a
display name; the agent speaks only through the message tool.

The server is Axum and SQLite. It serves the built Nuxt client, streams
room events over SSE, and runs one serialized turn loop per room with
turn-level steering copied from rhema-code. The client has the chat,
preview iframe, read-only file pane, xterm terminal, and presence.

Preview URLs are signed wildcard hosts, and the proxy tunnels HTTP over
ssh direct-tcpip. HostAgent::step remains deferred in the framework.
2026-11-28 01:09:37 +01:00