Claude Code Now Confirms Before Overwriting an Export, Removing a Worktree or Changing a Repository
Claude Code 2.1.327 adds confirmations before several actions that could lose work. /export asks before overwriting an existing file, ExitWorktree asks before removing a worktree that may hold unsaved work, and /install-github-app confirms before it changes a repository. Removing a plugin marketplace now warns that its plugins' settings and saved data are deleted.
Key Takeaways
/exportno longer overwrites silently: it asks first, and/export <name>keeps the existing file.ExitWorktreeasks before removing a worktree that may hold unsaved work.- Unattended sessions refuse the removal unless an allow rule, auto mode or bypass permissions mode permits it.
/install-github-appconfirms before changing a repository, with clearer steps and errors.- Removing a plugin marketplace now warns that its plugins' settings and saved data are deleted.
- The pattern is more friction exactly where data loss was possible.
Fewer silent overwrites
Claude Code 2.1.327 adds a confirmation in several places where an action used to go ahead without a word. /export previously overwrote an existing file without asking. The dialog now asks, and /export <name> keeps the existing file and tells the user to run /export instead.
ExitWorktree asks first
ExitWorktree now asks before removing a worktree that may hold unsaved work. Where no one can answer, as in don't-ask mode or an unattended run, the removal is refused unless an allow rule, auto mode or bypass permissions mode allows it. This makes a worktree cleanup by the agent harder to turn into lost changes.
Repository and plugin changes
/install-github-app now shows a confirmation before it changes a repository, and its repository, secret and API key steps use the standard list and keys with shorter messages, a spinner and clearer errors. In /plugin, the question before removing a marketplace now says that its plugins' settings and saved data are deleted.