Skip to content

Version Packages#1051

Merged
threepointone merged 1 commit into
mainfrom
changeset-release/main
Mar 2, 2026
Merged

Version Packages#1051
threepointone merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Mar 2, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

agents@0.7.2

Patch Changes

  • #1050 6157741 Thanks @ask-bonk! - Fix Agent alarm() bypassing PartyServer's initialization

    The Agent class defined alarm as a public readonly arrow function property, which completely shadowed PartyServer's alarm() prototype method. This meant #ensureInitialized() was never called when a Durable Object woke via alarm (e.g. from scheduleEvery), causing this.name to throw and onStart to never run.

    Converted alarm from an arrow function property to a regular async method that calls super.alarm() before processing scheduled tasks. Also added an onAlarm() no-op override to suppress PartyServer's default warning log.

  • #1052 f1e2bfa Thanks @ask-bonk! - Make scheduleEvery() idempotent

    scheduleEvery() now deduplicates by the combination of callback name, interval, and payload: calling it multiple times with the same arguments returns the existing schedule instead of creating a duplicate. A different interval or payload creates a separate, independent schedule.

    This fixes the common pattern of calling scheduleEvery() inside onStart(), which runs on every Durable Object wake. Previously each wake created a new interval schedule, leading to a thundering herd of duplicate executions.

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 8b0f5cb to b96e7c3 Compare March 2, 2026 22:49
@threepointone threepointone merged commit 03fada6 into main Mar 2, 2026
@threepointone threepointone deleted the changeset-release/main branch March 2, 2026 22:57
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.

1 participant