Skip to content

dsh-session-cleaner v0.2.4 — fix idle-agent disposal

Choose a tag to compare

@fountunt fountunt released this 14 Aug 13:15
· 1 commit to main since this release

v0.2.4 — fix idle-agent disposal

The previous release used ctx.dispose to stop idle agents, but cordis contexts are proxies and dispose is not a valid property there (cannot get property "dispose" without inject).

Now the plugin unloads the agent through its fiber: agent.ctx.fiber._unload() — the same teardown path the runtime itself uses, running the agent-loop effect cleanup (and the ordered session teardown) correctly.

  • idle agents are stopped before their session is deleted
  • running sessions are still refused
  • unit tests updated for the fiber API (4/4 passing)