Skip to content

Make workflows executable and schedulable - #143

Merged
wmeddie merged 3 commits into
mainfrom
feature/workflow-execution
Aug 2, 2026
Merged

Make workflows executable and schedulable#143
wmeddie merged 3 commits into
mainfrom
feature/workflow-execution

Conversation

@wmeddie

@wmeddie wmeddie commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

  • make manual workflow execution a first-class UI action from both the Automations list and workflow editor
  • let New Work choose No workflow for a direct task or an agent-compatible workflow, passing the composer text as goal and opening the generated task
  • add declared string, number, boolean, and json inputs with descriptions, defaults, required validation, and typed run forms
  • add optional five-field cron triggers with saved inputs, persisted trigger state, atomic duplicate prevention, pause/resume controls, and visible trigger errors
  • prevent connector-backed legacy workflows from running through the scheduler and skip paused cron occurrences when re-enabled
  • update starter templates, workflow documentation, and the architecture decision record

Why

The workflow engine and run endpoint already existed, but users could not discover or operate them through XpressClaw. Definitions also lacked a caller-facing input contract or an automatic trigger that did not depend on the deferred channels model.

This makes workflows usable now while retaining compatibility with existing free-form workflow payloads. New Work offers workflows whose first executable step uses the selected agent and whose remaining required inputs have defaults; workflows needing a richer input form remain available from Automations. Legacy connector triggers and notification sinks remain readable but cannot be enabled, run manually, or started by the scheduler until channels return.

Validation

  • npm run check
  • npm run build
  • full Playwright suite: 28 passed, including mobile coverage
  • ./scripts/rustfmt.sh --check
  • cargo test -p xpressclaw-core -p xpressclaw-server: 516 passed
  • cargo clippy -p xpressclaw-core -p xpressclaw-server --all-targets -- -D warnings

@wmeddie
wmeddie force-pushed the feature/workflow-execution branch from d51c038 to 33762fb Compare August 2, 2026 01:26

@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: d51c038a0b

ℹ️ 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 crates/xpressclaw-core/src/workflows/scheduler.rs
Comment thread crates/xpressclaw-core/src/workflows/scheduler.rs Outdated
Comment thread crates/xpressclaw-core/src/workflows/definition.rs
@wmeddie
wmeddie merged commit 07b70e0 into main Aug 2, 2026
4 checks passed
@wmeddie
wmeddie deleted the feature/workflow-execution branch August 2, 2026 02:23
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.

1 participant