Under the hood
Messages created from slash commands now explicitly carry the current permission mode
What
The internal function that builds user-message objects when Claude Code dispatches a slash command now takes a permissionMode parameter and stamps it directly onto every message it creates.
Why
This ensures messages generated by slash commands carry an explicit record of the permission mode active at the time, keeping that state consistent with how it's already tracked elsewhere in the settings change-log system.