Skip to content

Add local workflow draft cache and restore flow#6923

Open
FinleyGe wants to merge 1 commit into
labring:mainfrom
FinleyGe:feat/local-workflow-cache
Open

Add local workflow draft cache and restore flow#6923
FinleyGe wants to merge 1 commit into
labring:mainfrom
FinleyGe:feat/local-workflow-cache

Conversation

@FinleyGe
Copy link
Copy Markdown
Collaborator

Summary

  • Add a local workflow draft cache with restore/cleanup helpers for login and workflow persistence flows
  • Restore cached workflow drafts during fast login and standard login entry points
  • Update request handling and workflow i18n copy to support the new persistence behavior
  • Add unit coverage for local draft logic, restore hook behavior, and request handling

Testing

  • Added/updated unit tests for localDraft, useWorkflowLocalDraftRestore, and request logic
  • Not run (not requested)

@FinleyGe FinleyGe requested a review from c121914yu May 12, 2026 09:40
@FinleyGe FinleyGe marked this pull request as ready for review May 12, 2026 09:41
@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 14.03% 1140 / 8124
🔵 Statements 14.02% 1195 / 8523
🔵 Functions 12.52% 245 / 1956
🔵 Branches 11.98% 536 / 4472
File CoverageNo changed files found.
Generated in workflow #177 for commit 3628719 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_3628719d55c09b3f637189648eace5bb30ff7d02

🕒 Time: 2026-05-12 17:50:07 (UTC+8)

@github-actions
Copy link
Copy Markdown

Build Successful - Preview fastgpt Image for this PR:

ghcr.io/labring/fastgpt-pr:fastgpt_3628719d55c09b3f637189648eace5bb30ff7d02

🕒 Time: 2026-05-12 17:50:12 (UTC+8)

@github-actions
Copy link
Copy Markdown

Build Successful - Preview code-sandbox Image for this PR:

ghcr.io/labring/fastgpt-pr:code-sandbox_3628719d55c09b3f637189648eace5bb30ff7d02

🕒 Time: 2026-05-12 17:51:21 (UTC+8)

@github-actions
Copy link
Copy Markdown

Build Successful - Preview mcp_server Image for this PR:

ghcr.io/labring/fastgpt-pr:mcp_server_3628719d55c09b3f637189648eace5bb30ff7d02

🕒 Time: 2026-05-12 17:51:33 (UTC+8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant