Repository navigation
Create an automation by describing it in chat (#1589) - #1593
Conversation
Give any provider an automation_create tool so a user can describe a workflow in chat and Solenta stores the config, then show the result as a card that opens Automations. Co-authored-by: Cursor <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 101908ade6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /** MCP names look like mcp__coder-threads__automation_create. */ | ||
| export function isAutomationCreateName(name: string | undefined): boolean { | ||
| if (!name) return false; | ||
| return /(?:^|__)automation_create$/i.test(name); |
There was a problem hiding this comment.
Recognize Codex's slash-delimited MCP tool name
When the calling thread uses Codex, electron/codex.js records this MCP call as coder-threads/automation_create, but this regex only accepts the bare name or a __automation_create suffix. Consequently isGroupable treats the successful result as an ordinary tool and MessageBlock never renders AutomationCreatedCard, so Codex users lose the dedicated result and “Open in Automations” action.
Useful? React with 👍 / 👎.
Describe a workflow in a Solenta thread and the agent can now create the automation: name, prompt, provider, and a schedule or GitHub trigger. Closes #1589.
Changes
automation_createtool that calls the existingaddAutomationvalidation.Verification
node --test electron/test/automation-create-mcp.test.js— 8/8 passed (create schedule, create CI trigger, provider default/override, cross-project reject, bad trigger).test/automationCard.test.tsandtest/toolGroups.test.ts— 13/13 passed (parse MCP result, keep the card out of collapsed tool groups).Notes for reviewers
Create is immediate — there is no draft-then-approve step. Opening Automations does not highlight the new row.
cursor-grok-4.6 via Cursor
Made with Cursor