Skip to content

Fix resume state lookup for workflow key variants#4

Merged
vignesh07 merged 2 commits into
openclaw:mainfrom
brownetw-ai:fix/workflow-resume-key
Apr 11, 2026
Merged

Fix resume state lookup for workflow key variants#4
vignesh07 merged 2 commits into
openclaw:mainfrom
brownetw-ai:fix/workflow-resume-key

Conversation

@brownetw-ai
Copy link
Copy Markdown

Summary

  • Allow Lobster workflow resume to load state keys that use either workflow_resume_ or workflow-resume_ prefix.
  • Fixes approval resume failures when token key uses hyphen variant.

Context

Observed resume tokens containing workflow-resume_… while state files were saved as workflow_resume_…, leading to Workflow resume state not found.

Changes

  • Fallback lookup in loadWorkflowResumeState to try both key prefixes.

Testing

  • Reproduced failure locally; approvals failed until this patch.
  • After patch, approvals succeed and remediation completes.

@happyclaw-agent

This comment was marked as spam.

@vignesh07 vignesh07 force-pushed the fix/workflow-resume-key branch from 876d375 to 2639297 Compare April 11, 2026 23:42
@vignesh07 vignesh07 merged commit a95f133 into openclaw:main Apr 11, 2026
@vignesh07
Copy link
Copy Markdown
Contributor

Landed via rebase onto current main.\n\n- Gate: env -u OPENAI_API_KEY -u ANTHROPIC_API_KEY -u OPENCLAW_TOKEN pnpm lint && pnpm build && pnpm test\n- Land commits: 14e46b3, a95f133\n- Merge commit: a95f133\n\nThanks @brownetw-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.

3 participants