Repository navigation
feat(automations): add topicId to send_email steps - #1192
Conversation
The API accepts topic_id on send_email step configs. The SDK dropped it, so automations.create and automations.update removed the topic from every send_email step.
commit: |
klotty
left a comment
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds an optional topicId to send_email automation steps and maps it to API topic_id, fixing the SDK silently dropping topics when steps are sent through it. The change is focused, additive, and covered by tests.
View guided diff | Re-trigger cubic
Each step type now renames its fields through a map typed as Record<keyof Config, string>. A new config field without a map entry, or a map entry that is not a config field, fails the build. Before, a new field compiled and the serializer dropped it, which is how topic_id was lost.
klotty
left a comment
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds optional topicId to send_email automation steps, serializes it as topic_id, and refactors step config mapping to typed key maps so dropped fields fail the build. The fix is focused, additive, and covered by unit tests.
View guided diff | Re-trigger cubic
Automation send_email steps can now carry a topic through the Node SDK. Before, the SDK left the topic out of every request. An update that sent steps through the SDK removed the topic from each send_email step in the live automation, with no error. The CLI and both MCP servers send steps through the SDK, so they need this release to keep topics.
Summary by cubic
Fixes the Node SDK dropping
topicIdfromsend_emailsteps in automations, which silently removed topics from live automations when steps were updated through the SDK. The CLI and both MCP servers depend on this release to keep topics intact.Written for commit e5785e1. Summary will update on new commits.