Skip to content

Commit b9f894c

Browse files
os-zhuangclaude
andcommitted
chore(changeset): action body composite fix
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 110c699 commit b9f894c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@objectstack/spec": patch
3+
---
4+
5+
fix(spec): render action `body` as a composite editor (language + source) instead of a flat code field
6+
7+
An action's `body` is a discriminated union (`HookBodySchema`), the same shape hooks use, but `action.form.ts` mapped the whole field to `{ widget: 'code' }`, so the Studio inspector fed the union object to a single JS editor and rendered `[object Object]`. The layout now mirrors the working `hook.form.ts`: a composite with a `language` select, a `source` code editor, and the L2-only capability/timeout knobs.

0 commit comments

Comments
 (0)