Skip to content

Delete the session class that LeafSession replaced - #6559

Merged
max-sixty merged 1 commit into
mainfrom
delete-old-session-class
Nov 20, 2026
Merged

max-sixty merged 1 commit into
mainfrom
delete-old-session-class

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Deletes LeafWebsiteSession, the session class that #6550 replaced with LeafSession, 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 LeafSession header 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:worker and a dev deploy that applied v4.

This was written by Claude Code on behalf of max-sixty

#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.
@max-sixty
max-sixty merged commit 7b94945 into main Nov 20, 2026
6 checks passed
@max-sixty
max-sixty deleted the delete-old-session-class branch November 20, 2026 02:05
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