fix(daemon): accept string triggerPayload in workflow thread #75

Merged
xiaomo merged 1 commits from fix/trigger-payload-string-support into main 2026-04-23 11:50:49 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 01d2185495 fix(daemon): accept string triggerPayload in workflow thread
The original code only accepted object-type triggerPayload, silently
discarding string values by replacing them with {}. This meant
`nerve workflow trigger <name> --payload '"some string"'` would
lose the payload entirely.

Changed to `triggerPayload ?? {}` so strings (and other non-null
values) pass through correctly.

小橘 🍊(NEKO Team)
2026-04-23 11:48:05 +00:00