From 6ec477dae27b79f2122e61050365a034ad1b31a6 Mon Sep 17 00:00:00 2001 From: Neha Prasad Date: Thu, 4 Dec 2025 15:59:42 +0530 Subject: [PATCH] fix: enable terminal scrollback to view command history (#11883) --- frontend/src/hooks/use-terminal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/use-terminal.ts b/frontend/src/hooks/use-terminal.ts index b5ffb6baf9..d01132a85f 100644 --- a/frontend/src/hooks/use-terminal.ts +++ b/frontend/src/hooks/use-terminal.ts @@ -44,7 +44,7 @@ export const useTerminal = () => { new Terminal({ fontFamily: "Menlo, Monaco, 'Courier New', monospace", fontSize: 14, - scrollback: 1000, + scrollback: 10000, scrollSensitivity: 1, fastScrollModifier: "alt", fastScrollSensitivity: 5, @@ -62,6 +62,7 @@ export const useTerminal = () => { terminal.current.open(ref.current); // Hide cursor for read-only terminal using ANSI escape sequence terminal.current.write("\x1b[?25l"); + fitAddon.current?.fit(); } } };