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:
2026-02-14 13:26:27 -06:00
parent 2a01574d00
commit 2766cbfd0b
2 changed files with 3 additions and 3 deletions

View File

@@ -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 }))
}
}