Skip to content

fix(editor): cancel toast work when the website editor closes - #4670

Merged
hellofrequencylab merged 1 commit into
mainfrom
codex/website-editor-toast-lifecycle-20261104
Nov 4, 2026
Merged

hellofrequencylab merged 1 commit into
mainfrom
codex/website-editor-toast-lifecycle-20261104

Conversation

@hellofrequencylab

Copy link
Copy Markdown
Owner

The website editor left its 2.6-second toast callback active after unmount. That callback could run after the test browser was torn down and fail an otherwise passing CI test job; late async completions could also schedule a new toast after the editor closed.

The shell now cancels/resets its toast timer on cleanup and ignores toast-only work after unmount, resetting the mounted marker on effect setup for StrictMode. Existing messages, duration, replacement timing and save/publish/Vera requests stay unchanged.

Validation: 35 unchanged editor tests and five disposable actual-shell lifecycle cases pass. Pristine source fails the three teardown/late-completion cases while passing the two duration/replacement controls. ESLint, one-list, ADR, static backlog and diff checks pass. No protected tests/probes/pins or environment/timeouts changed. The new manual ledger row stays OPEN pending exact CI, READY preview and production verification.

Coordination: #4306 (comment). Root owns merging; auto-merge stays off.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
frequency-web Ready Ready Preview Nov 4, 2026 9:01pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 6d65c7c4 Deployed Nov 4, 2026 by vercel[bot]
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.

2 participants