cap scrollback to avoid unbounded memory usage
scroll to bottom on input