Skip to content

Add opt-in terminal session logging with retention policy #35

@htazq

Description

@htazq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions