What
A permission mode controls how much Claude Code may do without asking you first. When a program asks Claude Code to change it with set_permission_mode, the successful answer can now include the mode. claude -p fills it in with the mode actually in effect.
A new error message also appears when Claude Code cannot remove an expired login: "Couldn't remove your expired login, so you're not signed in. Try again."
Why
Programs that run Claude Code through its SDK can now read back which permission mode was really applied instead of assuming the request worked as sent.
Names in the bundleset_permission_mode
Documented inclaude-code/agent-sdk/permissions