Problem Statement
Rusty-Framework includes a frontend terminal.rs widget, but lacks the backend server-side PTY process lifecycle manager (port of Ivy.Hooks.Pty).
Without a server PTY process manager, the frontend terminal widget cannot connect to native OS shell sessions (bash/zsh/cmd/powershell) on the server.
Missing Functionality
- Server-side PTY process lifecycle manager (spawn, resize, write, signal, terminate).
- WebSocket binary/text streaming handler connecting PTY stdout/stdin/stderr to
terminal.rs.
- Terminal window size synchronization (cols, rows, pixel dimensions).
- Process isolation and security execution sandboxing settings.
Proposed Architecture & Design
- Integrate
portable-pty or tokio-pty into rusty-server.
- Add PTY session management handlers to the WebSocket routing module.
- Handle terminal resize events (
SIGWINCH / TIOCSWINSZ) received over WebSocket messages.
- Provide security configuration options (allowed binaries, working directory restrictions, environment variable filtering).
Acceptance Criteria
Problem Statement
Rusty-Frameworkincludes a frontendterminal.rswidget, but lacks the backend server-side PTY process lifecycle manager (port ofIvy.Hooks.Pty).Without a server PTY process manager, the frontend terminal widget cannot connect to native OS shell sessions (bash/zsh/cmd/powershell) on the server.
Missing Functionality
terminal.rs.Proposed Architecture & Design
portable-ptyortokio-ptyintorusty-server.SIGWINCH/TIOCSWINSZ) received over WebSocket messages.Acceptance Criteria
terminal.rswidget without latency or framing issues.