mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
The plugin context only tracked contribution/socket disposers, so a plugin's other side effects (store subscriptions) leaked across disable/re-enable. Add ctx.onDispose(fn) — an arbitrary cleanup collected alongside the rest and run on deactivate. bindApi now returns a disposer (unsubscribes its persisted-atom listeners, closes the socket, drops the rest handle) and the kanban plugin registers it via ctx.onDispose, so a toggle leaves nothing behind and never duplicates listeners. Also DRYs the atom-persistence into one `persist` helper. |
||
|---|---|---|
| .. | ||
| react | ||
| events.ts | ||
| index.ts | ||
| plugin.test.ts | ||
| plugin.ts | ||
| plugins-store.ts | ||
| plugins.ts | ||
| registry.ts | ||
| runtime-loader.test.ts | ||
| runtime-loader.ts | ||
| types.ts | ||