The dispose() method was not cleaning up _extensionErrorUnsubscriber, causing the extension error handler to remain subscribed after session disposal. This leads to memory leaks across session reloads as old error handlers accumulate on the extension runner. Also wrap the unsubscriber call in _applyExtensionBindings() with try-catch so that if the previous unsubscriber throws, the new subscription is still set up correctly. |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||