# feat\(web\): make terminal close confirmation optional · PR \#16615 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/16615)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: open

Source repository: Unavailable fork

Source branch: t3/terminal-close-confirmation-setting

Target branch: main

Head commit: 1e0c04d4d177857ea5e8c11c2dc416b6be88372d

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/16615)

[Commits](https://git.cafe/pingdotgg/t3code/pull/16615/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/16615/diffs?format=markdown)

## Description

---

Terminal close actions always prompted, even for users who prefer closing terminals immediately.

Adds **Terminal close confirmation** under Settings → General → Confirmations. It stays enabled by default and can be disabled, searched for, or reset. The shared confirmation helper applies the preference to drawer and panel buttons, terminal tabs, and the terminal close keybinding on web and desktop.

[Watch the demo video (23 seconds)](https://github.com/jakeleventhal/t3code/releases/download/pr-evidence-terminal-close-confirmation/demo.mp4): default confirmation → disable the setting → close a terminal immediately.

<video src="https://github.com/jakeleventhal/t3code/releases/download/pr-evidence-terminal-close-confirmation/demo.mp4" controls></video>

| Default confirmation | Setting disabled | Terminal closed without a prompt |
| --- | --- | --- |
| ![Default close confirmation](https://github.com/jakeleventhal/t3code/releases/download/pr-evidence-terminal-close-confirmation/before.png) | ![Terminal close confirmation disabled](https://github.com/jakeleventhal/t3code/releases/download/pr-evidence-terminal-close-confirmation/setting.png) | ![Terminal closed immediately](https://github.com/jakeleventhal/t3code/releases/download/pr-evidence-terminal-close-confirmation/after.png) |

Validation: 231 focused tests passed; web and contracts typechecks passed; scoped lint passed with warnings in existing SettingsPanels code. Verified in the real web client that disabled confirmation survives a reload and resetting the preference restores the dialog. Desktop uses the same helper; mobile currently has no equivalent user-triggered terminal close confirmation. No server, provider, or wire behavior changed.

Model: gpt-6.1-sol. Harness: Codex in T3 Code.


## Closes discussions

- [#18779](https://github.com/pingdotgg/t3code/discussions/18779)

