mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-13 14:25:17 +03:00
baefeaa05b
expand:false was silently ignored because `if (expand || toggle)` evaluates to false when expand=false. Now uses `expand != null` to enter the branch, checks current state (gridListH/gridListV for groups, backgroundImage gx=0 for tree nodes), and only clicks when the state needs to change. - expand:true on collapsed → expand (click) - expand:true on expanded → noop (idempotent) - expand:false on expanded → collapse (click) - expand:false on collapsed → noop (idempotent) - toggle → always click (unchanged) Returns `toggled: true/false` in result to indicate whether click happened. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>