fix(terminal): reduce default scrollback from 2500 to 1000 lines#3365
Merged
gregpriday merged 1 commit intodevelopfrom Mar 16, 2026
Merged
fix(terminal): reduce default scrollback from 2500 to 1000 lines#3365gregpriday merged 1 commit intodevelopfrom
gregpriday merged 1 commit intodevelopfrom
Conversation
- Change SCROLLBACK_DEFAULT from 2500 to 1000 (matches VS Code/iTerm2) - Reduce agent scrollback policy maxLines from 10000 to 5000, minLines from 1000 to 500 - Update Settings UI presets to [500, 1000, 2500, 5000] with updated labels - Add migration 007 to migrate existing users from old 2500 default to 1000 - Fix memory estimate to include opencode agent type in calculation - Replace hardcoded 2500 in SettingsDialog with SCROLLBACK_DEFAULT constant - Update all affected tests and search index
gregpriday
added a commit
that referenced
this pull request
Mar 16, 2026
- Align with PR #3365 which reduces SCROLLBACK_DEFAULT from 2500 to 1000 - At 1000, background reduction would be a no-op since both values match - 500 lines preserves meaningful memory savings for background terminals
Collaborator
Author
|
Review status: Ready
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SCROLLBACK_DEFAULTfrom 2500 to 1000 lines, cutting per-terminal buffer memory by 60% and bringing Canopy in line with VS Code's defaultResolves #3278
Changes
shared/config/scrollback.ts—SCROLLBACK_DEFAULT2500 → 1000electron/store.ts— default store value updated to matchsrc/utils/scrollbackConfig.ts— agent max cap 10,000 → 5,000; UI slider max updatedelectron/services/migrations/007-reduce-default-terminal-scrollback.ts— new migration that resets the stored value when it matches the old defaultsrc/components/Settings/TerminalSettingsTab.tsx— memory estimate and slider label reflect new boundsscrollback.test.ts,StoreMigrations.test.ts, andTerminalInstanceService.scrollback.test.tsTesting
npm run checkpasses clean (0 errors, warnings only from pre-existing patterns)