Skip to content

🤖 refactor: remove workflow agentType option#3618

Merged
ThomasK33 merged 1 commit into
mainfrom
refactor/remove-workflow-agenttype
Jun 23, 2026
Merged

🤖 refactor: remove workflow agentType option#3618
ThomasK33 merged 1 commit into
mainfrom
refactor/remove-workflow-agenttype

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

Remove the legacy agentType workflow-agent option so workflow authors must use agentId consistently.

Background

The workflow authoring skill still advertised legacy agentType as an optional alias. This removes the alias from new workflow runs to avoid two names for the same workflow-agent selector.

Implementation

  • Reject new agent(..., { agentType: ... }) calls with a clear error directing authors to agentId.
  • Preserve replay/resume compatibility for persisted workflow run source snapshots that already contain agentType, including current-schema runs created before this change.
  • Store a new-run marker so runs created after this change reject the alias, while older run records that lack the marker can still replay.
  • Keep agentId, model, and thinking normalization unchanged.
  • Update workflow-authoring skill content and tests to use agentId only.

Validation

  • bun test src/node/services/workflows/WorkflowRunner.test.ts
  • bun test src/node/services/workflows/WorkflowRunStore.test.ts
  • make typecheck
  • MUX_ESLINT_CONCURRENCY=1 make lint
  • make fmt-check
  • make static-check
  • git diff --check

Risks

Low. New workflow runs intentionally fail on the legacy agentType alias, while existing persisted runs keep enough compatibility to replay or resume their original source snapshots.


Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh • Cost: $2.84

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

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

ℹ️ 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/node/services/workflows/WorkflowRunner.ts Outdated
@ThomasK33 ThomasK33 force-pushed the refactor/remove-workflow-agenttype branch from bc3557a to 4194f48 Compare June 23, 2026 16:46
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

Addressed the replay concern by rejecting agentType for new workflow runs while preserving alias normalization for legacy persisted workflow run source snapshots.

@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: 4194f48cda

ℹ️ 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/node/services/workflows/WorkflowRunner.ts Outdated
Stop accepting the legacy workflow agentType alias and require workflow authors to use agentId.

---

_Generated with `mux` • Model: `openai:gpt-5.5` • Thinking: `xhigh` • Cost: `$2.84`_

<!-- mux-attribution: model=openai:gpt-5.5 thinking=xhigh costs=2.84 -->
@ThomasK33 ThomasK33 force-pushed the refactor/remove-workflow-agenttype branch from 4194f48 to a30e675 Compare June 23, 2026 16:55
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

Addressed the current-schema replay concern by adding a new-run marker: fresh runs reject agentType, while older persisted run records that lack the marker can still normalize agentType while replaying their source snapshot.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: a30e675ae9

ℹ️ 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".

@ThomasK33 ThomasK33 added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit 44ef109 Jun 23, 2026
23 of 24 checks passed
@ThomasK33 ThomasK33 deleted the refactor/remove-workflow-agenttype branch June 23, 2026 17:20
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