Description
While planning the fix for #139, I noticed a small API documentation mismatch around the scrollback option:
lib/terminal.ts currently defaults options.scrollback to 10000 lines.
lib/interfaces.ts documents scrollback?: number; // Default: 1000.
This can confuse API users and reviewers when reasoning about scrollback-related behavior.
Expected behavior
The ITerminalOptions.scrollback comment should document the actual default used by Terminal, or the code and docs should be reconciled intentionally.
Actual behavior
The interface comment says the default is 1000, while the constructor uses 10000.
Reproduction / evidence
rg -n "scrollback" lib/interfaces.ts lib/terminal.ts
Relevant current lines:
// lib/interfaces.ts
scrollback?: number; // Default: 1000
// lib/terminal.ts
scrollback: options.scrollback ?? 10000,
Why this is out of scope for #139
Issue #139 is about runtime corruption caused by WASM viewport row pin resolution and scrollback line-count-to-byte conversion. This is a documentation/default consistency cleanup and should not expand the #139 implementation scope.
Related planning context: #139
Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh
Description
While planning the fix for #139, I noticed a small API documentation mismatch around the scrollback option:
lib/terminal.tscurrently defaultsoptions.scrollbackto10000lines.lib/interfaces.tsdocumentsscrollback?: number; // Default: 1000.This can confuse API users and reviewers when reasoning about scrollback-related behavior.
Expected behavior
The
ITerminalOptions.scrollbackcomment should document the actual default used byTerminal, or the code and docs should be reconciled intentionally.Actual behavior
The interface comment says the default is
1000, while the constructor uses10000.Reproduction / evidence
rg -n "scrollback" lib/interfaces.ts lib/terminal.tsRelevant current lines:
Why this is out of scope for #139
Issue #139 is about runtime corruption caused by WASM viewport row pin resolution and scrollback line-count-to-byte conversion. This is a documentation/default consistency cleanup and should not expand the #139 implementation scope.
Related planning context: #139
Generated with
mux• Model:openai:gpt-5.5• Thinking:xhigh