Terminal & AI Agents

Confirm Before ⌘W Closes a Terminal

Turn on Confirm disruptive shortcuts and ⌘W, ⌘K or ⇧⌘H ask before closing, clearing or hiding a terminal. The confirm is built for the keyboard, with focus on Cancel so a stray Enter is safe.

Confirm Before ⌘W Closes a Terminal

Why You Need This

How this feature boosts your daily productivity

⌘W is one key away from ⌘Q and ⌘E, and in 1DevTool it closes the active terminal. If that terminal is an AI agent in the middle of a turn, the agent stops and its work in progress goes with it; ⌘K wipes the scrollback you were about to read. This setting puts one keyboard-friendly question in front of those shortcuts, without slowing down clicks or menu items.

How It Works

Get started in 4 simple steps

1
1

Turn it on

Settings → Terminal → Shortcuts → Confirm disruptive shortcuts. It is off until you turn it on.

2
2

Pick which shortcuts ask

Close Terminal and Clear Terminal are ticked, Hide Terminal is not. The confirm follows your own key bindings.

3
3

Answer from the keyboard

Focus starts on Cancel. ←/→ or Tab move, Enter chooses, Esc cancels, and pressing the shortcut again goes ahead.

4
4

Or stop asking

Don't ask again turns the confirm off for that one shortcut. A tab's close button or a menu item never asks.

Without 1DevTool

The manual way vs. the 1DevTool way

The Hard Way

# meant to press ⌘E, pressed ⌘W
# the agent mid-turn: gone
# start it again, re-explain the task

The 1DevTool Way

⌘W opens Close this terminal? with focus on Cancel; Esc and keep working

Key Capabilities

Everything included with Confirm Before ⌘W Closes a Terminal

Ask before ⌘W closes a terminal
Ask before ⌘K clears its scrollback
Optionally ask before ⇧⌘H hides a terminal
Start with focus on Cancel so Enter is safe
Go ahead by pressing the shortcut again
Turn one shortcut's confirm off with Don't ask again

Why It Matters

The productivity impact of having terminal & ai agents built into your workspace

A Stray ⌘W Costs Nothing

An agent mid-turn keeps working when your finger slips, because the shortcut asks first and Enter means Cancel.

Still Fast When You Mean It

Press the shortcut twice to close at once, or turn the confirm off for one shortcut with Don't ask again.

Clicks Stay Instant

Only the keyboard path asks; a tab's close button and menu items act at once.

Ready to boost your workflow?

Download 1DevTool for free and experience Confirm Before ⌘W Closes a Terminal along with 347 other features — all in one app.