Skip to content

Commit 25a14a8

Browse files
committed
docs(spec): 同步 ActionRef 注释里 formatZodError 的到达面 (#4971)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FTszibd6C8sUCCZnM4VcrL
1 parent 1a7f283 commit 25a14a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/spec/src/automation/state-machine.zod.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const STATE_MACHINE_STRIP_HISTORY =
8787
* real issues nested one level down in `issue.errors[]`. That payload survives
8888
* everywhere the issues are carried structurally (`ZodError.message`, the REST
8989
* error body); until #4971 the flatten-to-one-line consumers dropped it, and
90-
* `formatZodError` — the CLI's formatter — was one, so this schema rendered a
91-
* bare `✗ (root): Invalid input` where `TransitionSchema` (a plain
90+
* `formatZodError` — what `defineStack` throws through — was one, so this
91+
* schema rendered a bare `✗ (root): Invalid input` where `TransitionSchema` (a plain
9292
* `strictObject`) rendered its full prescription. `formatZodError` now expands
9393
* the union's most informative branch, so both render the prescription; what
9494
* remains union-shaped is the extra `Invalid input` line above it.

0 commit comments

Comments
 (0)