The visibilitychange handler was registered with an anonymous arrow function, making it impossible to remove via removeEventListener. Extracted it to a named variable (onVisibilityChange) and added proper cleanup, matching the pattern already used for onError / onRejection / onUnload. Added two new tests in the cleanup suite: - removes visibilitychange event listener - no longer flushes on visibilitychange after cleanup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent-orchestrator | ||
| cli | ||
| core | ||
| integration-tests | ||
| plugins | ||
| web | ||