You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal has no clear command: Cmd+K does nothing, and neither keyboard settings nor a plugin can add it #3570
The terminal has no clear command. Cmd+K — the clear-terminal shortcut on
macOS in Terminal.app, iTerm2, and VS Code — does nothing in bb's terminal, and
there is no way for a user or a plugin to add it.
Current behaviour (0.43.0, macOS)
bb settings keyboard list returns 26 bindings; none uses key: "k", and the
only terminal command is terminal.open. APP_COMMAND_IDS in packages/domain/src/app-keybindings.ts has no terminal.clear. Nothing in the
renderer, main process, or server bundles binds a k shortcut, and the renderer
never calls attachCustomKeyEventHandler, so the keystroke is not intercepted
before xterm either. The only terminal.clear string in the app bundle is
xterm's own API, which bb never calls.
The result is that the keypress reaches the shell, where Cmd has no encoding, so
nothing happens at all.
Why this cannot be solved outside core
bb settings keyboard set only rebinds commands that already exist, and no
clear command exists to bind.
Plugins have no keybinding registration API. commandPaletteAction is the
closest slot and it produces a palette row, not a shortcut, and app command
ids are a closed enum plugins cannot extend.
frontend-core-slots.md states plugin surfaces "do not replace its native
chrome, Browser, Terminal, or keyboard commands."
bb.sdk.terminals exposes list, create, get, input, resize, output, rename, restart, and close — there is no clear. Writing \x0c via input is only Ctrl+L and leaves scrollback intact; restart
kills the shell and returns a new terminal ID.
Request
Add a terminal.clear app command that clears the viewport and the scrollback
of the focused terminal, bound by default to Cmd+K on macOS (Ctrl+Shift+K
on other platforms) under the existing terminalFocus context key, which diff.toggle already uses. Being a normal app command, it would then be
rebindable through Settings → Keyboard like every other shortcut.
Ctrl+L is not a substitute: it scrolls the prompt to the top rather than
discarding scrollback, which is the behaviour users reach for Cmd+K to get.
Environment
bb 0.43.0 (desktop app, macOS, Darwin 25.6.0, arm64)
Applied Type Feature, Priority Low, Effort Low, and label ui. No existing classifications needed preservation.
The current command registry lacks a terminal-clearing action; adding one introduces new functionality, consistent with similar terminal-shortcut requests. This is a contained convenience feature using existing keyboard infrastructure.
Final Type verified as Feature. Reproduction report and pull request skipped under the non-bug rule.
Activity
bb-slop-cop commentedon Sep 12, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Type Feature, Priority Low, Effort Low, and label ui. No existing classifications needed preservation.
The current command registry lacks a terminal-clearing action; adding one introduces new functionality, consistent with similar terminal-shortcut requests. This is a contained convenience feature using existing keyboard infrastructure.
Final Type verified as Feature. Reproduction report and pull request skipped under the non-bug rule.