Skip to content

fix(cli): nest workflow run config in update_run_config request body - #11

Draft
anamhira47 wants to merge 1 commit into
mainfrom
cursor/cli-workflow-config-request-body-a91e
Draft

fix(cli): nest workflow run config in update_run_config request body#11
anamhira47 wants to merge 1 commit into
mainfrom
cursor/cli-workflow-config-request-body-a91e

Conversation

@anamhira47

Copy link
Copy Markdown
Contributor

Summary

Fixes REV-377: revyl workflow config set failed with validation errors because the CLI sent a flat run-config payload instead of the nested shape the API expects.

Changes

  • Wrap UpdateWorkflowRunConfig body as { "run_config": { ... }, "override_run_config": <bool> }, consistent with UpdateWorkflowLocationConfig and UpdateWorkflowBuildConfig.
  • CLI workflow config set passes override_run_config: true when applying parallelism/retries.
  • TUI workflow settings pass wf.OverrideRunConfig and set it when editing parallelism or max retries.
  • Add OverrideRunConfig to the Workflow API model for parity with other override flags.

Test plan

  • go test ./internal/api/... ./cmd/revyl/... ./internal/tui/...
  • revyl workflow config set <workflow> --parallel 3 --retries 1 against staging/production API

Linear Issue: REV-377

Open in Web Open in Cursor 

The API expects run_config and override_run_config at the top level.
The CLI was sending a flat WorkflowRunConfig payload, causing validation
errors on workflow config set.

Co-authored-by: Anam Hira <anam@revyl.ai>
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.

2 participants