Setting CLAUDE_CODE_RESTRICTED now restricts a session exactly as --restricted does.
What's wrong with this entry?
The check that decides how session options such as permission mode, model, fallback model, effort, agent list, settings and appended system prompt are handled now also trips when CLAUDE_CODE_RESTRICTED is set in the environment, not only via --restricted. A new message states that cloud sessions cannot be created from a restricted session because they would not enforce the restriction.
Cloud sessions cannot be created from a --restricted session: they would not enforce it.
Strings lifted out of the shipped bundle, so the claim above can be checked against them.