Repository navigation
Delete the session class that LeafSession replaced - #6559
Merged
Merged
Conversation
#6550 moved leaf.page's sessions to `LeafSession` and kept `LeafWebsiteSession` as an empty export: Cloudflare refuses to delete a class while its container application stands (10061), and refuses a version that leaves out a class it keeps (10064). The maintainer chose to delete both once #6550 was live. Its container applications, `leaf-website-leafexamplesession` and `leaf-website-dev-leafexamplesession`, are deleted, with no container active or assigned in either, so migration v4 deletes the class, with every object and record it held, and the export goes. The `LeafSession` header now says the maintainer chose to stop a container still on the previous image at the session's first request after a deploy, over letting it run until it idles, and why that alternative fails. Letting it run worked on dev, where a tab held through a deploy got all 16 answers without reloading, but a review found the previous image's saves can fail with no reload to rescue them, a page the deploy adds answers 404, and an open tab keeps its container busy so the visitor never reaches the deployed release. Checked: `pnpm run check:worker`, and a dev deploy whose site check passed and after which dev's namespace for the old class is gone.
leaf-agent
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deletes
LeafWebsiteSession, the session class that #6550 replaced withLeafSession, through Durable Object migration v4, and removes its empty export from the Worker. #6550 had to keep the export because Cloudflare won't delete a class while its container application stands, nor accept a version that leaves out a class it keeps. Both old container applications, on production and dev, are now deleted, and neither had a container active or assigned.The migration deletes every object of the old class and the records they held. Nothing reads them: since #6550 every visitor's records live in
LeafSession.The
LeafSessionheader now records that the maintainer chose to stop a container still on the previous image at the first request after a deploy, rather than letting it run until it idles, and why that alternative fails.Asked for by the maintainer on the deploy page. Checked with
pnpm run check:workerand a dev deploy that applied v4.