Slash commands marked sensitive, and hidden pastes, are now kept out of your prompt history.
What's wrong with this entry?
Commands that declare themselves sensitive, including invocations whose arguments are hidden pastes, are now skipped when prompt history is written rather than stored. History entries also get strictly increasing timestamps, and undo is only armed when the caller asked for it. CLAUDE_CODE_SKIP_PROMPT_HISTORY still turns history writing off entirely.
- Hidden pastes are recognised from the
[Pasted text #N]and[...Truncated text #N]placeholders that stand in for the real content. - Commands that are blocked or handled immediately now record their history entry explicitly instead of relying on the normal path.
- Headless "command unavailable" echoes redact sensitive arguments as
***.
registerSensitiveCommands, /\[(?:Pasted text|\.\.\.Truncated text) #\d+/
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.224
Prompt history remembers pasted content and how you submitted
Both mention skip prompt history
-
v2.1.236
Prompt history checks pasted content for secrets
Both mention skip prompt history
-
v2.1.229
Prompt history search shows what it is doing
Both mention prompt history