Skip to content

Fix resume after retry failing with version_mismatch error#234

Merged
neoneye merged 1 commit intomainfrom
fix/resume-after-retry-version-mismatch
Mar 10, 2026
Merged

Fix resume after retry failing with version_mismatch error#234
neoneye merged 1 commit intomainfrom
fix/resume-after-retry-version-mismatch

Conversation

@neoneye
Copy link
Member

@neoneye neoneye commented Mar 10, 2026

Summary

  • The frontend /plan/retry endpoint did not set pipeline_version in task.parameters, unlike the MCP cloud equivalent (mcp_cloud/db_queries.py:199)
  • This caused the flow Retry → Stop → Resume to fail with "Resume unavailable — plan was created with a different PlanExe version" because pipeline_version was None in parameters
  • Fix: set pipeline_version = PIPELINE_VERSION in both /plan/retry and plan creation (/run) to match MCP behavior

Root cause

The frontend had an asymmetry with the MCP cloud endpoints:

  • mcp_cloud plan_create / plan_retry / plan_resume all set pipeline_version in parameters
  • Frontend /run and /plan/retry did not set it, so old plans and retried plans had no pipeline_version
  • Frontend /plan/resume checks parameters.pipeline_version against PIPELINE_VERSION — found None != 1 → version mismatch

Test plan

  • Take an old failed plan without pipeline_version in parameters
  • Click Retry → let it process a few steps → click Stop
  • Click Resume → verify it starts resuming (no version_mismatch error)
  • Create a new plan → stop it → verify Resume works
  • Verify the pipeline_stop_requested.txt is cleaned up by the worker during resume (existing behavior, line 1199)

🤖 Generated with Claude Code

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>
@neoneye neoneye merged commit c703fc8 into main Mar 10, 2026
3 checks passed
@neoneye neoneye deleted the fix/resume-after-retry-version-mismatch branch March 10, 2026 09: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