Commit 03166e7
wasm-gui terminal: implement pty_open in the sidecar (wire kernel.open_pty via __pty_open sync-RPC)
Replaced the FAULT stub with a real implementation modeled on the existing kernel-pipe path. 3 edits in the
WASMGUI workspace: (1) node_import_cache.rs pty_open import -> callSyncRpc("__pty_open") -> {masterFd,slaveFd}
range-encoded KERNEL_PIPE_FD_BASE+kernelFd (fd_read/write/poll route to the kernel pty discipline); (2)
execution.rs dispatch "__pty_open" => service_javascript_pty_open_sync_rpc; (3) the handler calls
kernel.open_pty(EXECUTION_DRIVER_NAME, process.kernel_pid) -> (master,slave,path). Bumped
NODE_IMPORT_CACHE_ASSET_VERSION 111->112.
In-scope (constraint #5): a kernel pty is kernel-virtual like the kernel pipe (used by brush/pty-shell), not
a host-fd expansion -- wiring existing kernel.open_pty to a FAULT-stub import. Rebuild + re-run in progress.
Next: shell spawn via proc_spawn with the pty slave as stdio. VTE already renders (02b). XU6; not 100% (XU7).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0a0d3e7 commit 03166e7
3 files changed
Lines changed: 34 additions & 1 deletion
File tree
- crates
- execution/src
- sidecar/src
- experiments/wasm-gui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12835 | 12835 | | |
12836 | 12836 | | |
12837 | 12837 | | |
12838 | | - | |
| 12838 | + | |
| 12839 | + | |
| 12840 | + | |
| 12841 | + | |
| 12842 | + | |
| 12843 | + | |
| 12844 | + | |
| 12845 | + | |
| 12846 | + | |
| 12847 | + | |
| 12848 | + | |
| 12849 | + | |
| 12850 | + | |
| 12851 | + | |
| 12852 | + | |
| 12853 | + | |
| 12854 | + | |
| 12855 | + | |
12839 | 12856 | | |
12840 | 12857 | | |
12841 | 12858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13872 | 13872 | | |
13873 | 13873 | | |
13874 | 13874 | | |
| 13875 | + | |
13875 | 13876 | | |
13876 | 13877 | | |
13877 | 13878 | | |
| |||
16523 | 16524 | | |
16524 | 16525 | | |
16525 | 16526 | | |
| 16527 | + | |
| 16528 | + | |
| 16529 | + | |
| 16530 | + | |
| 16531 | + | |
| 16532 | + | |
| 16533 | + | |
| 16534 | + | |
| 16535 | + | |
| 16536 | + | |
| 16537 | + | |
| 16538 | + | |
| 16539 | + | |
| 16540 | + | |
16526 | 16541 | | |
16527 | 16542 | | |
16528 | 16543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
0 commit comments