Prompts containing secrets are kept out of your history in more cases, including ! commands.
What's wrong with this entry?
The check that keeps a prompt with a secret in it out of your history now also inspects shell commands typed with a leading !, scans long text in overlapping pieces so a secret spanning a boundary is still caught, and only looks at pasted blocks the typed text actually refers to.
- The old helper that only examined slash commands was removed.
- Runs unconditionally, aside from the existing
CLAUDE_CODE_SKIP_PROMPT_HISTORYopt-out.
CLAUDE_CODE_SKIP_PROMPT_HISTORY
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.229
Prompt history search shows what it is doing
Both mention prompt history
-
v2.1.234
Prompt history arrow keys survive another session writing history
Both mention prompt history
-
v2.1.234
Automatic history writes no longer eat your next history undo
Both mention prompt history