Skip to content

fix(event_manager): prevent duplicate listeners on restart#278

Open
jensenojs wants to merge 1 commit intosudo-tee:mainfrom
jensenojs:pr/event-manager-dedupe
Open

fix(event_manager): prevent duplicate listeners on restart#278
jensenojs wants to merge 1 commit intosudo-tee:mainfrom
jensenojs:pr/event-manager-dedupe

Conversation

@jensenojs
Copy link
Contributor

EventManager:start() was registering anonymous state.opencode_server listeners that couldn't be unsubscribed. On restart (e.g., during UI toggle), multiple listeners would accumulate, causing duplicate event handling.

Store listener reference to enable proper unsubscribe/resubscribe cycle.

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