Skip to content

fix: electron adapter filter & dispose issue#19

Open
leaft wants to merge 5 commits intomoeru-ai:mainfrom
leaft:fix/electron-adapter-two-channel
Open

fix: electron adapter filter & dispose issue#19
leaft wants to merge 5 commits intomoeru-ai:mainfrom
leaft:fix/electron-adapter-two-channel

Conversation

@leaft
Copy link
Copy Markdown

@leaft leaft commented Mar 9, 2026

修复electron main adpater 中 sender 的过滤逻辑
现在使用两个channel eventa-message(双向) 和 eventa-push(单向),分类处理send

Code by Claude Sonnet 4.6,如果有问题在review里评论或者直接改都可以

Claude 顺带修复了预存 bug:原来所有 ipcRenderer.on 监听器都是匿名函数,无法被 dispose() 清理;现在所有监听器都推入 cleanupRemoval,dispose() 会正确移除

@nekomeowww nekomeowww changed the title Fix/electron-adapter-two-channel fix: electron adapter filter & dispose issue Mar 10, 2026
feat: enhance IPC context with push event support and shared message handling
@nekomeowww nekomeowww force-pushed the fix/electron-adapter-two-channel branch from 0b2631f to 5c83463 Compare March 10, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant