diff --git a/frontend/src/components/FloatingTerminal.vue b/frontend/src/components/FloatingTerminal.vue index 9f92fff..305baed 100644 --- a/frontend/src/components/FloatingTerminal.vue +++ b/frontend/src/components/FloatingTerminal.vue @@ -547,9 +547,9 @@ function scrollTerminal(direction: 'up' | 'down' | 'end') { else renderer.scrollToBottom() } -function requestReplay(tailOnly = false) { +function requestReplay(tailOnly = true) { if (socket?.readyState === WebSocket.OPEN) { - socket.send(JSON.stringify({ type: 'request-replay', tailOnly, chunks: 500 })) + socket.send(JSON.stringify({ type: 'request-replay', tailOnly, chunks: 200 })) } } diff --git a/frontend/src/pages/TerminalPage.vue b/frontend/src/pages/TerminalPage.vue index 0102b82..7828c08 100644 --- a/frontend/src/pages/TerminalPage.vue +++ b/frontend/src/pages/TerminalPage.vue @@ -85,7 +85,7 @@ async function connect() { isResumedSession.value = !msg.isNew if (msg.hasHistory) { - socket?.send(JSON.stringify({ type: 'request-replay', tailOnly: false })) + socket?.send(JSON.stringify({ type: 'request-replay', tailOnly: true, chunks: 200 })) } else if (!msg.isNew) { renderer.writeln('\x1b[36m[Reconnected to existing session]\x1b[0m') }