chore(webview): align console buffers with RFC defaults

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-03 07:37:51 +00:00
parent b993fc18f3
commit e6a7ecf4f5
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ type consoleHandlerRegistration struct {
func NewConsoleWatcher(wv *Webview) *ConsoleWatcher {
cw := &ConsoleWatcher{
wv: wv,
messages: make([]ConsoleMessage, 0, 100),
messages: make([]ConsoleMessage, 0, 1000),
filters: make([]ConsoleFilter, 0),
limit: 1000,
handlers: make([]consoleHandlerRegistration, 0),

View file

@ -114,7 +114,7 @@ func New(opts ...Option) (*Webview, error) {
ctx: ctx,
cancel: cancel,
timeout: 30 * time.Second,
consoleLogs: make([]ConsoleMessage, 0, 100),
consoleLogs: make([]ConsoleMessage, 0, 1000),
consoleLimit: 1000,
}