Skip to content

Create an automation by describing it in chat (#1589) - #1593

Merged
currentbits merged 1 commit into
mainfrom
coder/automations-natural-language-authoring-d-0fb339
Oct 11, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/automations-natural-language-authoring-d-0fb339

Conversation

@currentbits

Copy link
Copy Markdown
Owner

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

  • Added a coder-threads automation_create tool that calls the existing addAutomation validation.
  • Agents get a standing note so they know to use it when the user asks.
  • The tool result renders as a transcript card with Open in Automations.

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.ts and test/toolGroups.test.ts — 13/13 passed (parse MCP result, keep the card out of collapsed tool groups).
  • ThreadView static render covers the card copy and Open in Automations button.
  • Not tested: live click-through in the desktop app.

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

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T19:12:00.155512Z 101908a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@currentbits
currentbits merged commit 426064f into main Oct 11, 2026
6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/automationCard.ts
/** 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automations: natural-language authoring (describe it in chat, Solenta generates the config)

1 participant