Fix resume after retry failing with version_mismatch error#234
Merged
Conversation
The frontend /plan/retry endpoint did not set pipeline_version in task.parameters, unlike the MCP equivalent. This caused the sequence Retry → Stop → Resume to fail with "version_mismatch" because the resume endpoint found no pipeline_version in parameters. Also set pipeline_version during plan creation to prevent the same class of issue for newly created plans. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
/plan/retryendpoint did not setpipeline_versionintask.parameters, unlike the MCP cloud equivalent (mcp_cloud/db_queries.py:199)pipeline_versionwasNonein parameterspipeline_version = PIPELINE_VERSIONin both/plan/retryand plan creation (/run) to match MCP behaviorRoot cause
The frontend had an asymmetry with the MCP cloud endpoints:
mcp_cloudplan_create/plan_retry/plan_resumeall setpipeline_versionin parameters/runand/plan/retrydid not set it, so old plans and retried plans had nopipeline_version/plan/resumechecksparameters.pipeline_versionagainstPIPELINE_VERSION— foundNone != 1→ version mismatchTest plan
pipeline_versionin parameterspipeline_stop_requested.txtis cleaned up by the worker during resume (existing behavior, line 1199)🤖 Generated with Claude Code