Area: AI abilities › global variable categories
Environment
- Bricks 2.4.5
- WordPress 7.1.4, local install
- Active plugins: Gravity Forms 3.2.3, WPCodeBox 2 1.4.1 (site CSS/PHP snippets), Disable Comments, WPS Hide Login
- Custom breakpoints, mobile-first: Mobile portrait is the base breakpoint, then Mobile landscape (min-width 639px), Tablet portrait (1023px), Laptop (1279px), Desktop (1535px)
- Bricks settings › Performance: CSS loading method set to external files
- Bricks AI abilities called through the WordPress MCP adapter, with the Bricks skills pack v0.1.5
Summary
To change a scale category’s ratio (for example a spacing scale’s minScaleRatio) after its variables exist, set-global-variable-categories refuses the write:
{
"code": "bricks_conflict_global_variable_category_scale_atomic_update_unavailable",
"message": "Changing the scale config of a category referenced by variables requires atomically regenerating its variables and references. No category data was changed.",
"categoryId": "spcscl"
}
No ability performs that atomic regenerate-and-update, so the change can’t be made through abilities at all.
Steps to reproduce
- Create a spacing category with a scale config (
minScaleRatio: 1.25) and generate its variables. - Call
set-global-variable-categorieswith the same category andminScaleRatio: 1.5, passing current ownership values.
Expected
Either the ability regenerates the category’s variables as part of the write, or a dedicated ability does (for example update-scale-category that previews and saves both together).
Actual
The write is rejected. The only route left is the builder UI or editing the option directly.
Workaround
Preview the new values with generate-scale-variables (save: false), save them with set-global-variables, then update the category’s ratio directly in the bricks_global_variables_categories option so the builder regenerates consistently later.