You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.337,
ImprovementsSection of the release
What
Headless mode runs Claude Code without its interactive screen, for example from a script. Some sessions run in the cloud by default rather than on your own computer. Claude Code already reported when that cloud default was not allowed. It now also recognises a second case, where the workspace is restricted. It reports this as cloud_session_default with the reason workspace_restricted.
The existing refusal of --restricted for cloud, remote environment and SSH sessions is unchanged.
Why
A workspace's policy can now stop sessions from running in the cloud by default, and headless runs say when that is the reason.
Read from
Names in the bundlecloud_session_defaultworkspace_restricted