diff --git a/frontend/src/hooks/use-terminal.ts b/frontend/src/hooks/use-terminal.ts index e247b8e5d499..640e58ac59fe 100644 --- a/frontend/src/hooks/use-terminal.ts +++ b/frontend/src/hooks/use-terminal.ts @@ -131,7 +131,9 @@ export const useTerminal = ({ content = content.replaceAll(secret, "*".repeat(10)); }); - terminal.current?.writeln(parseTerminalOutput(content)); + terminal.current?.writeln( + parseTerminalOutput(content.replaceAll("\n", "\r\n").trim()), + ); if (type === "output") { terminal.current.write(`\n$ `);