perf: Use tail-only replay by default for faster terminal loading
- Change default to tailOnly=true (was false) - Reduce chunks from 500 to 200 - Applies to both FloatingTerminal and TerminalPage
This commit is contained in:
@@ -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 }))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user