If you start Claude Code with a value for --permission-mode that it does not recognise, the error now reads "Unknown permission mode", then the value you gave, then "Use one of:" and the list of valid modes. Before, it read "Invalid permission mode" and "Valid modes:". The old message also had a fault in how its text was built.
The message shown when Claude Code fails to restore its iTerm2 setup has also been reworded.
If you mistype a permission mode, the error now says plainly what went wrong and what you can use instead.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
* **You started in another mode**: if [auto mode is available](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) to you, exit, then run `claude --continue --permission-mode auto` with Code Mode oncode-mode see the edit
Anthropic's documentation has since written up --permission-mode, on Run tool calls from code with Code Mode.