Problem
Users comparing r-shell with terminal clients such as MobaXterm may expect long-running command output to remain available beyond the in-memory scrollback ring buffer. Increasing xterm.js scrollback indefinitely would reintroduce OOM risk for commands such as iostat -dxm 1 left running overnight.
Proposal
Add an explicit opt-in terminal session logging feature:
- Per-session toggle: record terminal output to a log file.
- Clear distinction between volatile scrollback and durable session transcript.
- Configurable retention: max file size, log rotation, and optional TTL cleanup.
- Default off, so normal terminal tabs do not silently create persistent user data.
- Do not render logs as DOM nodes; keep xterm scrollback bounded.
Why
This keeps interactive scrollback memory bounded while still supporting users who need complete audit/debug transcripts for long-running sessions.
Related
Problem
Users comparing r-shell with terminal clients such as MobaXterm may expect long-running command output to remain available beyond the in-memory scrollback ring buffer. Increasing xterm.js scrollback indefinitely would reintroduce OOM risk for commands such as
iostat -dxm 1left running overnight.Proposal
Add an explicit opt-in terminal session logging feature:
Why
This keeps interactive scrollback memory bounded while still supporting users who need complete audit/debug transcripts for long-running sessions.
Related