Skip to content

Cancel quit and close when unsaved-file consent changes scope - #1279

Merged
nedtwigg merged 2 commits into
mainfrom
audit-teardown-consent
Oct 21, 2026
Merged

nedtwigg merged 2 commits into
mainfrom
audit-teardown-consent

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

An unsaved-file prompt previously outlived changes to the window's Workspace membership. Saving or discarding could then let quit or window close proceed over a different scope than the request began with.

Watch Workspace membership during that first consent gate, cancel on arrivals or departures, and release the watch on every exit. Focus, rename, and reorder preserve consent. The standalone spec now makes the existing cancellation rule explicit for unsaved-file prompts.

Validation: four new regression cases fail before the fix; all 61 quit, close, arbitration, confirmation, and consent tests pass afterward. Standalone TypeScript, spec lint, Markdown lint, and diff checks pass.

Both consent gates now use one Workspace membership watcher, so their scope rules stay aligned. The same 61 tests and standalone type/spec checks pass after consolidation.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: a02016c
Status: ✅  Deploy successful!
Preview URL: https://9968a404.mouseterm.pages.dev
Branch Preview URL: https://audit-teardown-consent.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new membership watch duplicates the running-work dialog's scope check (inline).

Comment thread standalone/src/teardown-flow.ts Outdated
@nedtwigg
nedtwigg merged commit d2911e7 into main Oct 21, 2026
14 checks passed
@nedtwigg
nedtwigg deleted the audit-teardown-consent branch October 21, 2026 16:19

This branch was successfully deployed

No deployments
hosted-preview — a02016c6 Deployed Oct 21, 2026 by nedtwigg via cleanup #1830
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