Skip to content

fix(examples): stop idle ydoc alarm loops - #73

Merged
agcty merged 1 commit into
mainfrom
codex/fix-idle-ydoc-alarms
May 18, 2026
Merged

agcty merged 1 commit into
mainfrom
codex/fix-idle-ydoc-alarms

Conversation

@agcty

@agcty agcty commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • stop example YDocServer alarms from rescheduling when no WebSockets are connected
  • use the PartyServer onAlarm lifecycle hook instead of overriding alarm directly
  • keep the scheduled demo reset behavior for active rooms

Verification

  • bun oxfmt examples/sticky-notes/worker/index.ts examples/todos/worker/index.ts examples/simple/worker/index.ts examples/minecraft/worker/index.ts examples/whiteboard/worker/app.ts
  • bun tsc -p examples/sticky-notes/tsconfig.worker.json --noEmit
  • bun tsc -p examples/todos/tsconfig.worker.json --noEmit
  • bun tsc -p examples/simple/tsconfig.worker.json --noEmit
  • bun tsc -p examples/minecraft/tsconfig.worker.json --noEmit
  • bun tsc -p examples/whiteboard/tsconfig.worker.json --noEmit

Deployments

  • valtio-y-stickynotes: ddbba555-8cf2-4d92-84bd-642de05375cb
  • valtio-y-todos: 67ff5141-21f2-4c71-b668-023d17fb5c75
  • valtio-y-simple: c27dd509-352e-4515-b030-8e091f6c756d
  • valtio-y-minecraft: f76457f8-7cad-4650-aff6-1aa9c6649825
  • valtio-y-whiteboard: d59bcbcb-c1b4-42c0-af32-8649fe0f8b3e

@agcty
agcty marked this pull request as ready for review May 18, 2026 15:01
@agcty
agcty merged commit e1339df into main May 18, 2026
2 checks passed
@agcty
agcty deleted the codex/fix-idle-ydoc-alarms branch May 18, 2026 15:01
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