fix(cloud): the settings cloud pages and mobile's environments query follow the cloud flag

Merged
SA
2mo ago
+31-15

Found in the merge-safety audit for #7548. The Settings Environments and Agents entries were gated on the v2-app variant rather than the cloud-workspaces flag, and mobile's environments query ran for every signed-in user; the server refuses both without the flag, so users without it saw an error state where they should see nothing. Both now check the flag the sidebar and the device picker already use.

https://claude.ai/code/session_01FK6rLzBEUiHHXZWNmpQ2BP


Summary by cubic

Stops the Settings Environments and Agents entries and the mobile environments query from running for users without the cloud-workspaces flag; they previously saw server errors where they should have seen nothing, and now they match the sidebar and device picker behavior. Also makes environment rows without a repositories field render safely in the desktop new-workspace form, the Settings list, and the mobile branches flow.