Skip to content

Fix engine lifecycle cleanup and host API boundaries - #36

Draft
ParthJadhav wants to merge 1 commit into
mainfrom
codex/bugbash-host-boundaries
Draft

ParthJadhav wants to merge 1 commit into
mainfrom
codex/bugbash-host-boundaries

Conversation

@ParthJadhav

Copy link
Copy Markdown
Owner

Summary

Custom-tool setup and host callback failures could leak an engine, interrupt cleanup, or leave subscribers stale. Make mounting transactional across vanilla, React, Vue, and custom elements; isolate observer failures; and finish disposal and gesture/audio cleanup when custom tools throw.

Reject nonfinite rate-limiter and history inputs, reject overlapping scripted strikes, and preserve state after invalid elapsed times. Add 20 regression tests, API documentation, and a patch changeset.

Verification

  • bun run check passes: 432 tests, type checking, lint, coverage, builds, and package checks.
  • Chrome runtime suite: all 20 checks pass using bun scripts/browser-test.mjs.
  • Lifecycle memory check: 80 cycles pass with no listener or document growth and complete disposed-state cleanup.
  • User-visible changes include a Changeset.
  • Documentation updated; bun run docs:build and the hosted docs drift/link checks pass.

Notes

The Node 24 browser-harness runs lost their Chrome connection before reporting checks. The same unmodified suite completed successfully under Bun with Google Chrome. The memory harness completed under Node.

@ParthJadhav ParthJadhav mentioned this pull request Nov 7, 2026

This branch has not been deployed

No deployments
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