forked from vhaudiquet/rhema-together
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.
This commit is contained in:
1 parent
808a78afa8
commit
3f61dd4db8
7 files changed
+58
-58
No files matched your search
@@ -386,11 +386,12 @@ when the shell ends. There is no server-side ring buffer; a reconnect
|
||||
starts a fresh shell. Closing the socket closes the channel, which
|
||||
hangs up the remote shell.
|
||||
|
||||
The emulator is xterm.js in the browser. The server parses no escape
|
||||
sequences. A server-side libghostty-vt is a later option: it gives screen
|
||||
snapshots on reconnect and a way to let the model read the terminal, and
|
||||
it costs an FFI crate that allows `unsafe`. That crate would live in this
|
||||
project, not in the framework.
|
||||
The emulator is ghostty-web in the browser, which runs Ghostty's VT
|
||||
parser as WebAssembly behind an xterm.js-compatible API. The server
|
||||
parses no escape sequences. A server-side libghostty-vt is a later
|
||||
option: it gives screen snapshots on reconnect and a way to let the
|
||||
model read the terminal, and it costs an FFI crate that allows `unsafe`.
|
||||
That crate would live in this project, not in the framework.
|
||||
|
||||
### Editor (read-only)
|
||||
|
||||
@@ -664,7 +665,7 @@ This repository, as committed:
|
||||
- SSE event feed with durable replay (`?since=`) and transient deltas;
|
||||
a WS presence socket with online and typing state.
|
||||
- Read-only files tree and file view, `git status` and `git diff`.
|
||||
- xterm.js terminal over a WebSocket PTY.
|
||||
- ghostty-web terminal over a WebSocket PTY.
|
||||
- Preview proxy over ssh `direct-tcpip`, signed wildcard hosts, no
|
||||
rewriting.
|
||||
- No approval prompts: the sandbox is the boundary, so `AllowAll`.
|
||||
|
||||
Reference in new issue
Block a user