diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2026-06-09 22:35:40 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2026-06-09 22:35:40 -0600 |
| commit | d396692de571445537e617ac31627d7bd7ab84aa (patch) | |
| tree | c60570493f03addf770b7df5b49e69363fc69b80 /ui/control_editor.py | |
| parent | f8b5e47ffe9a52bd28ad5d953a551ccb92cbbb09 (diff) | |
Fix custom_script execution + add templates for expression/function kinds
- custom_script now uses exec-style (assign to `result`) matching the
built-in templates — previously auto-wrapped in def compute() which
had no return statement, causing state and channel vars to silently fail
- function kind unchanged: auto-wraps body as def compute(x,t); use return
- Add SCRIPT_TEMPLATES for expression, function, custom_script kinds;
shown automatically when user switches to a script kind (replacing stale
code from previous kind)
- New channels default to template when no saved code exists
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'ui/control_editor.py')
0 files changed, 0 insertions, 0 deletions
