mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 05:59:43 +02:00
Monkey-patching the instance's _onSessionDeleted inside a DOMContentLoaded listener races connectSSE()'s handler-wrapper cache, which captures the function reference by value on first connect and never re-reads it. Patching CodemanApp.prototype at module-evaluation time (synchronous script-tag order) is unraceable: it completes before any instance exists or connectSSE() ever runs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>