Repository navigation
Terminal Bugs We Fixed
github-actions[bot] edited this page Oct 18, 2026
·
2 revisions
The bugs we found in the terminal, why they happened and how we fixed them. How the terminal works is in How the Terminal Works and How Terminal Features Work; the user side is in Terminal.
A black strip under the last row.
- The issue: a thin black band showed at the bottom of the terminal, below the prompt, in every theme.
-
Why it happened: xterm 6 paints the theme background on its scroll area, which ends at the last whole row. The viewport under it fills the rest of the height, and xterm's own CSS gives it
background-color: #000. Whatever was left over after the last row showed that black. -
The fix and why we chose it: The UI library's
TerminalScreengives.xterm-viewportthe--term-backgroundtoken, the same color xterm uses for the rows, so the strip matches in every theme. We kept xterm's layout and only changed the color, since the leftover space is normal: the panel height is rarely a whole number of rows.
Rounded panels hid the edge of a terminal.
- The issue: the terminal list and split terminals hid 6px of the terminal beside them.
- Why it happened: their handles took the Rounded Panels gap margins, meant for gaps between panels.
-
The fix and why we chose it: they pass
inPanel, one switch shared with the Changes tab.
The window froze while a terminal started.
- The issue: typing in a terminal, or resizing the window, could hang while another terminal was starting.
-
Why it happened:
TerminalRegistry::spawnheld the registry lock for the whole shell start.terminal_writeandterminal_resizeare sync commands on the main thread, and they waited for that lock. -
The fix and why we chose it:
spawnnow starts the shell without the lock and takes it only to insert the terminal. A shell that exits before it was added is noted inexited_earlyand removed right after the insert (shells_that_exit_at_once_never_stay_in_the_registry). Keeping slow work out of the lock was safer than making the keystroke commands async, which could reorder input.
The GPU acceleration hint said it costs a few MB.
- The issue: Settings, Terminal said turning GPU acceleration off "saves a few MB of GPU memory per terminal", far too little.
- Why it happened: the number was a guess, written before anything was measured.
- The fix and why we chose it: three cold starts each way measured about 70 MB for the first terminal, mostly graphics memory, and 10 MB for each other one. Settings and the usage pages now show measured numbers (Measuring Setting Memory).
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode