feat(cli): auto-resolve queueable step when --step omitted#88
Merged
chubes4 merged 2 commits intoFeb 3, 2026
Merged
Conversation
Fixes Extra-Chill#82. When a flow has exactly one step with queue_enabled=true, the CLI queue commands now auto-detect it: wp datamachine flows queue add 29 "My prompt" wp datamachine flows queue list 29 The --step flag is still required when: - Flow has no queueable steps (error with guidance) - Flow has multiple queueable steps (error lists step IDs) Affects: queueAdd, queueList, queueClear, queueRemove, queueUpdate, queueMove
chubes4
reviewed
Feb 3, 2026
Member
chubes4
left a comment
There was a problem hiding this comment.
Main logic looks good and the auto-resolve behavior is sensible. One request: please update the CLI usage strings and examples in FlowsCommand so they no longer imply --step is required for queue add/list/clear/remove/update/move. Right now multiple error/usage messages still hard-require --step, which conflicts with the new auto-resolve path.
- Updated --step parameter description to note auto-resolution - Simplified examples to show --step as optional - Added example showing explicit --step for multiple queueable steps
Contributor
Author
|
Updated CLI usage strings (
Ready for re-review. |
chubes4
approved these changes
Feb 3, 2026
Member
chubes4
left a comment
There was a problem hiding this comment.
Updates look good. Usage text now matches the auto-resolve behavior and includes an explicit --step example for multi-queue flows. Approving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #82 - Simplify queue CLI for single-step flows
Before
wp datamachine flows queue add 29 --step=12_e5eda239-5bd7-4ae6-89f1-e21909115c98_29 "My prompt"After
wp datamachine flows queue add 29 "My prompt"How It Works
Added
resolveQueueableStep()helper that:queue_enabled=trueMethods Updated
Testing
Tested locally on Flow 29 (single queueable AI step):
Backward Compatibility
--stepflag still works when provided, enabling explicit step selection for flows with multiple queueable steps.