Skip to content

fix(flows): save pending flow changes on exit - #1603

Merged
realcodesiman merged 3 commits into
mainfrom
guillemot
Oct 31, 2026
Merged

realcodesiman merged 3 commits into
mainfrom
guillemot

Conversation

@realcodesiman

@realcodesiman realcodesiman commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Preserve pending flow edits when the editor unmounts so navigation does not discard draft changes.
  • Prevent focused test commands from unexpectedly running an entire workspace suite and consuming excessive memory.

Changes

  • Configure the flow editor autosave callback to flush on unmount.
  • Add flushOnUnmount support to useDebouncedCallback.
  • Add regression coverage for flow-editor exit saving and debounce cleanup behavior.
  • Document direct, worker-bounded Vitest commands for focused tests.

Test plan

  • Lefthook pre-commit checks (pnpm ultracite fix and workspace typecheck)
  • pnpm check:agent-instructions
  • Focused Builder regression: 1 file / 1 passing test with VITEST_MAX_WORKERS=1
  • Builder Vitest suite: 1,043 files / 9,430 passing tests (2 skipped)
  • UI Vitest suite: 22 files / 97 passing tests
  • pnpm lint (not run)
  • Manual flow-editor verification (not run)

@github-actions github-actions Bot added the bug Something isn't working as expected label Oct 30, 2026
@realcodesiman
realcodesiman merged commit f327468 into main Oct 31, 2026
14 checks passed
@realcodesiman
realcodesiman deleted the guillemot branch October 31, 2026 00:12
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
* fix(flows): save pending flow changes on exit

* docs(testing): bound focused Vitest runs

* fix(vitest): cap local test workers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant