fix(terminal): bound websocket input frames

This commit is contained in:
naiba
2026-08-12 02:27:12 +00:00
parent 71d43c6a6e
commit c3c165c146
3 changed files with 16 additions and 1 deletions
@@ -0,0 +1,9 @@
package controller
import "testing"
func TestTerminalWebSocketInputLimitAllowsBoundedPaste(t *testing.T) {
if terminalWebSocketInputLimit != 512*1024+64 {
t.Fatalf("terminal WebSocket input limit = %d, want 512 KiB plus control-byte allowance", terminalWebSocketInputLimit)
}
}