[PR #4] Fix resume state lookup for workflow key variants #5

Open
opened 2026-02-15 18:15:37 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openclaw/lobster/pull/4
Author: @brownetw-ai
Created: 2/1/2026
Status: 🔄 Open

Base: mainHead: fix/workflow-resume-key


📝 Commits (1)

  • 876d375 Fix resume state lookup for workflow key variants

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 src/workflows/file.ts (+11 -1)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openclaw/lobster/pull/4 **Author:** [@brownetw-ai](https://github.com/brownetw-ai) **Created:** 2/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/workflow-resume-key` --- ### 📝 Commits (1) - [`876d375`](https://github.com/openclaw/lobster/commit/876d375f858aaf4d8c4cd6858af9d1c526d5a3f7) Fix resume state lookup for workflow key variants ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/workflows/file.ts` (+11 -1) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 18:15:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/lobster#5