HF RL Explorer

fix(terminal): trim the replay buffer when output has no newline

fix(terminal): trim the replay buffer when output has no newline: a task in github-trending-environments-10k (Harbor dataset). Title: fix(terminal): trim the replay buffer when output has no newline

The task

**Title:** fix(terminal): trim the replay buffer when output has no newline

Part of scalingX/github-trending-environments-10k.