mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-12 16:40:05 +00:00
## Summary - Fixes incorrect workflow loading after page refresh when the active workflow is saved and unmodified - Adds saved-workflow fallback in `loadPreviousWorkflowFromStorage()` before falling back to latest draft - Calls `openWorkflow()` in `restoreWorkflowTabsState()` to activate the correct tab after restoration - Fixes #9317 ## Test plan - [x] Unit tests for saved-workflow fallback (draft missing, saved workflow exists) - [x] Unit tests for correct tab activation after restoration - [x] Unit tests for existing behavior preservation (draft preferred over saved, no-session-path fallback) - [x] `pnpm typecheck` passes - [x] `pnpm lint` passes - [x] All 117 persistence tests pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9318-fix-restore-correct-workflow-on-page-reload-3166d73d365081ba9139f7c23c917aa4) by [Unito](https://www.unito.io) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Alexander Brown <drjkl@comfy.org> Co-authored-by: GitHub Action <action@github.com>
102 lines
1.5 KiB
Plaintext
102 lines
1.5 KiB
Plaintext
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
lerna-debug.log*
|
|
|
|
# Package manager lockfiles (allow users to use different package managers)
|
|
bun.lock
|
|
bun.lockb
|
|
yarn.lock
|
|
|
|
# Cache files
|
|
.eslintcache
|
|
.prettiercache
|
|
.stylelintcache
|
|
|
|
node_modules
|
|
.pnpm-store
|
|
dist
|
|
dist-ssr
|
|
*.local
|
|
# Claude configuration
|
|
.claude/*.local.json
|
|
.claude/*.local.md
|
|
.claude/*.local.txt
|
|
.claude/worktrees
|
|
CLAUDE.local.md
|
|
|
|
# Editor directories and files
|
|
.vscode/*
|
|
*.code-workspace
|
|
!.vscode/extensions.json
|
|
!.vscode/tailwind.json
|
|
!.vscode/custom-css.json
|
|
!.vscode/settings.json.default
|
|
!.vscode/launch.json.default
|
|
.idea
|
|
.DS_Store
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|
|
components.d.ts
|
|
|
|
# Ignore test data.
|
|
tests-ui/data/*
|
|
tests-ui/ComfyUI_examples
|
|
tests-ui/workflows/examples
|
|
coverage/
|
|
|
|
# Browser tests
|
|
/test-results/
|
|
/playwright-report/
|
|
/blob-report/
|
|
/playwright/.cache/
|
|
browser_tests/**/*-win32.png
|
|
browser_tests/local/
|
|
|
|
.env
|
|
|
|
dist.zip
|
|
|
|
/temp/
|
|
/tmp/
|
|
|
|
# Generated JSON Schemas
|
|
/schemas/
|
|
|
|
# Workflow templates assets
|
|
# Hosted on https://github.com/Comfy-Org/workflow_templates
|
|
/public/templates/
|
|
|
|
# Temporary repository directory
|
|
templates_repo/
|
|
|
|
# Vite's timestamped config modules
|
|
vite.config.mts.timestamp-*.mjs
|
|
|
|
# Linux core dumps
|
|
/core
|
|
|
|
*storybook.log
|
|
storybook-static
|
|
|
|
# MCP Servers
|
|
.playwright-mcp/*
|
|
|
|
.nx/cache
|
|
.nx/workspace-data
|
|
.cursor/rules/nx-rules.mdc
|
|
.github/instructions/nx.instructions.md
|
|
vite.config.*.timestamp*
|
|
vitest.config.*.timestamp*
|
|
|
|
# Weekly docs check output
|
|
/output.txt
|
|
|
|
.amp |