Add a configurable confirmation before pinned tabs are closed, route terminal/browser/CLI close paths through the guard, and add a one-shot Don't ask again option backed by the existing setting. Verified with focused unit tests, typecheck, lint, Electron validation, and the PR verify workflow.